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

Question:
True or false: The irate function in PromQL calculates the per-second rate of increase of a counter.

  1. TRUE
  2. FALSE
Answer:
A - is correct answer. The irate function calculates the per-second rate of increase of a counter by looking at the rate of change between the last two data points