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

Question:
Which of the following functions can be used to calculate a rolling average over a specific time range in PromQL?

  1. avg_over_time
  2. increase
  3. rate
  4. sum
Answer:
A - The avg_over_time() function calculates the average value of a metric over a specified time range.
It is useful for calculating rolling averages over a specific period of time