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

Question:
Which PromQL query returns the rate of change of the cpu_usage metric over the past 5 minutes?

  1. rate(cpu_usage[5m])
  2. delta(cpu_usage[5m])
  3. increase(cpu_usage[5m])
Answer:
A - The rate() function is used to calculate the rate of change of a metric over a specified time period.
In this case, it calculates the rate of change of cpu_usage over the past 5 minutes.