PCA (Prometheus Certified Associate) sample exam question with answer 575

Question:
Which of the following is an HTTP header set by Prometheus on each scrape?

  1. X-Prometheus-Scrape-Interval
  2. X-Prometheus-Scrape-Interval-Seconds
  3. X-Prometheus-Scrape-Timeout
  4. X-Prometheus-Scrape-Timeout-Seconds
Answer:
D - is the correct answer. This header is often used in Prometheus exporters (such as the Blackbox Exporter) to ensure the exporter completes its work before Prometheus times out the scrape
A, B - are incorrect as the scrape interval is not provided as a header
C - is incorrect as the correct header also includes the unit of measure (seconds) as part of the name