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

Question:
Which of the following is a popular way to instrument an application for Prometheus monitoring?

  1. Manually adding instrumentation code to each application endpoint
  2. Using an APM (Application Performance Monitoring) tool
  3. Using client libraries provided by Prometheus
  4. Running the application in a containerized environment
Answer:
C - Prometheus provides client libraries in various programming languages that make it easy to instrument an application.
These libraries provide functions for collecting and exposing metrics that can be scraped by Prometheus.