Bird
0
0

If an alerting policy has a condition with "duration": "300s" and "thresholdValue": 0.5, what does this mean?

medium📝 Predict Output Q5 of 15
GCP - Cloud Monitoring and Logging
If an alerting policy has a condition with "duration": "300s" and "thresholdValue": 0.5, what does this mean?
AThe condition checks metric below 50% for 300 seconds
BThe alert triggers immediately when metric exceeds 50%
CThe alert triggers after 300 alerts
DThe condition must be true for 5 minutes with metric above 50%
Step-by-Step Solution
Solution:
  1. Step 1: Understand duration and threshold meaning

    Duration 300s means the condition must hold for 5 minutes continuously. Threshold 0.5 means 50% metric value.
  2. Step 2: Interpret the alert trigger condition

    The alert triggers only if the metric stays above 50% for the full 5 minutes.
  3. Final Answer:

    The condition must be true for 5 minutes with metric above 50% -> Option D
  4. Quick Check:

    Duration 300s + threshold 0.5 = sustained 50%+ for 5 min [OK]
Quick Trick: Duration means sustained condition time, not instant trigger [OK]
Common Mistakes:
  • Thinking alert triggers immediately
  • Confusing threshold direction
  • Misunderstanding duration as alert count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes