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

Question:
The metric http_errors_total has 3 labels, path, method, error. Which of the following queries will give the total number of errors for a path of /auth, method of POST, and error code of 401?

  1. http_errors_total{path="/auth",method="PUT",code="401"}
  2. http_errors_total{path="/auth",method="POST"}
  3. http_errors_total{path="/auth",method="POST",code="401"}
  4. http_errors_total
Answer:
C - is the correct query