Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A DevOps engineer is configuring proactive alerting policies in Google Cloud Monitoring using Prometheus Query Language (PromQL) to detect performance anomalies across a microservices cluster. The engineer defines an alerting condition with an Evaluation interval set to 120 seconds (2 minutes).
During a test, a brief anomaly causes the PromQL condition to evaluate to true, opening a new incident. On subsequent evaluations, the metric normalizes and no longer meets the condition. The engineer observes that the incident does not follow the standard incident autoclose duration configured at the policy level.
How does Cloud Monitoring determine when to automatically close an incident created by this PromQL-based alerting policy?
In Google Cloud Monitoring, alerting policies created using Prometheus Query Language (PromQL) have a specialized incident resolution lifecycle. Unlike standard metric-threshold conditions or log-based alerts, PromQL-based alerting conditions do not rely on user-defined incident autoclose durations configured in the policy settings. Instead, Cloud Monitoring calculates an automatic incident closure time based on the condition's Evaluation interval and the last moment the condition was satisfied.
This built-in mechanism aligns Cloud Monitoring's incident management engine with Prometheus alerting semantics, ensuring reliable alert state transitions while preventing premature closures during transient recovery phases.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.