PCA (Prometheus Certified Associate) sample exam question with answer 289
Question:
A car reports the number of miles it has been driven with the metric car_total_miles
Which query returns what is the average rate of miles the car has driven the past 2 hours. Use a 4m sample range and a query interval of 1m.
- avg_over_time(rate(car_total_miles[4h]))
- avg_over_time(rate(car_total_miles[4m]) [2h:1m])
- avg_over_time(rate(car_total_miles[4m]) [1m:2h])
- avg_over_time(rate(car_total_miles[4m])) [2h:1m]
Answer:
B - correct answer