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?
- Instrumentation is a one-time process and does not require any code changes
- The client libraries are language-agnostic and can be used with any programming language
- The client libraries expose a HTTP endpoint that can be scraped by Prometheus
- 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.