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

Question:
What is the purpose of a Pushgateway in Prometheus?

  1. To collect metrics from external systems that cannot be instrumented directly
  2. To store and forward metrics from applications that are offline or unavailable
  3. To provide a centralized repository for metrics that are collected from multiple sources
  4. To allow applications to push metrics to Prometheus on an ad-hoc basis
Answer:
D - is the correct answer. The Pushgateway is a component of the Prometheus ecosystem that allows applications to push metrics to Prometheus on an ad-hoc basis. This is useful for applications that are not running continuously or are unable to be instrumented directly