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

Question:
Which of the following is true about instrumenting applications with the Prometheus client libraries?

  1. Instrumentation is a one-time process and does not require any code changes
  2. The client libraries are language-agnostic and can be used with any programming language
  3. The client libraries expose a HTTP endpoint that can be scraped by Prometheus
  4. The client libraries allow developers to collect custom metrics from their applications
Answer:
C, D - Instrumenting applications with the Prometheus client libraries involves adding code to the application to collect metrics and exposing a HTTP endpoint that can be scraped by Prometheus.
The client libraries are language-specific and cannot be used with any programming language.
Developers can use the client libraries to collect custom metrics from their applications.