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?
- rate(cpu_usage[5m])
- delta(cpu_usage[5m])
- 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.