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

Question:
What is meant by Prometheus instrumentation?

  1. Configuring Prometheus to scrape an exporter
  2. Writing an application to expose Prometheus metrics from a different application that does not natively expose Prometheus metrics
  3. Configuring Prometheus to scrape an application that natively exposes Prometheus metrics
  4. Writing application code to expose desired aspects of the app as Prometheus metrics
Answer:
D - is the correct answer. More at instrumentation and clientlibs
A - is incorrect as this is the process of configuring a scrape. Instrumentation must happen before Prometheus is configured to scrape
B - is incorrect as this is the process of writing a Prometheus exporter
C - is incorrect as the process of configuring a scrape is not instrumentation. Instrumentation must happen before Prometheus is configured to scrape