PCA (Prometheus Certified Associate) sample exam question with answer 410
Question:
Which of the following PromQL expressions can be used to calculate the rate of HTTP requests per minute over the past 5 minutes?
- rate(http_requests_total[5m]) * 60
- delta(http_requests_total[5m]) / 300
- increase(http_requests_total[5m]) / 300
- sum(rate(http_requests_total[5m])) / 60
Answer:
D - is the correct answer. This expression first calculates the rate of HTTP requests per second over the past 5 minutes using the rate() function, and then uses the sum() function to add up those rates and divide by 60 to get the rate per minute