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

Question:
Which of the following is NOT a best practice when it comes to writing a Prometheus exporter?

  1. Follow the Prometheus best practices on metric naming
  2. Drop statistical aggregations such as mean or median
  3. Include a version label on all exported metrics
  4. Include a landing HTML page that links to the metrics path
Answer:
C - is the correct answer. This is not a best practice as it is recommend to use a designated build_info metric with a version label and dynamically attach it via PromQL grouping as-needed.
A - this is a best practice.
B - t is a best practice to not expose statistical aggregations as metrics and instead calculate them via PromQL.
D - this is a best practice