PCA (Prometheus Certified Associate) sample exam question with answer 122
Question:
How can the count of observations in each bucket of a histogram be queried in PromQL?
- Using the sum function
- Using the count function
- Using the histogram function
- Using the histogram_quantile function
Answer:
B - The count function in PromQL returns the number of samples in the range vector. When applied to a histogram metric, it returns the count of observations in each bucket