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

Question:
What is the primary function of a Prometheus exporter?

  1. To scrape and store metrics from targets
  2. To generate alerts based on defined rules
  3. To push metrics to the system
  4. To collect log data from targets
Answer:
A - An exporter is responsible for scraping and exposing metrics from a specific service or system that can be consumed by the Prometheus server