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

Question:
What is the purpose of the Prometheus Pushgateway?

  1. The Pushgateway acts as an HTTP proxy for metrics that are pushed to Prometheus
  2. The Pushgateway acts as an intermediary for proxying scrapes
  3. There is no such thing as a Prometheus Pushgateway
  4. The Pushgateway acts as an intermediary service which allows you to push metrics from jobs which cannot be scraped
Answer:
D - is the correct answer. More at when-to-use-the-pushgateway and pushing-metrics
A - is incorrect as the Pushgateway does not act as an HTTP proxy. While instrumented applications can push metrics to the Pushgateway, they are not immediately proxied to Prometheus. Prometheus must scrape the Pushgateway to retrieve the pushed metrics
B - is incorrect as the Pushgateway cannot be used as an HTTP proxy for proxying scrapes
C - is incorrect as the Pushgateway is a core component of Prometheus