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?
- X-Prometheus-Scrape-Interval
- X-Prometheus-Scrape-Interval-Seconds
- X-Prometheus-Scrape-Timeout
- 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