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

Question:
What is the role of a Prometheus client library?

  1. To scrape and store metrics from targets
  2. To generate alerts based on defined rules
  3. To provide a way for services to expose metrics to the Prometheus server
  4. To collect log data from targets
Answer:
C - Prometheus client libraries provide an easy way for services to instrument their code and expose metrics to the Prometheus server using a variety of different programming languages