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

Question:
Which PromQL function is used to calculate the standard deviation of a metric over a specific time range?

  1. stddev()
  2. count_over_time()
  3. max_over_time()
  4. quantile()
Answer:
A - The stddev() function calculates the standard deviation of a metric over a specific time range. It is commonly used to detect anomalies in metric values that deviate significantly from the expected average