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

Question:
Which of the following statements are true about the irate function in PromQL? Select all that apply.

  1. The irate function calculates the per-second rate of increase of a counter metric
  2. The irate function is more accurate than the rate function for short time intervals
  3. The irate function requires a range vector as an argument
  4. The irate function is only applicable to counter metrics
Answer:
A, B, C - The irate function calculates the per-second rate of increase of a counter metric and is more accurate than the rate function for short time intervals because it uses a more accurate algorithm.
The irate function requires a range vector as an argument, and it can be applied to both counter and gauge metrics