Bird
0
0

You want to create an alerting policy that notifies your team only if CPU usage is above 70% for 10 minutes, but only during business hours (9 AM to 5 PM). Which approach best achieves this?

hard📝 Best Practice Q15 of 15
GCP - Cloud Monitoring and Logging
You want to create an alerting policy that notifies your team only if CPU usage is above 70% for 10 minutes, but only during business hours (9 AM to 5 PM). Which approach best achieves this?
ASet the alert threshold to 70% and rely on team to ignore alerts outside business hours
BCreate an alerting policy without conditions and manually check CPU usage during business hours
CUse an alerting policy with a condition on CPU usage and add a time window using an uptime check or schedule-based notification channel
DConfigure the alerting policy to notify continuously regardless of time
Step-by-Step Solution
Solution:
  1. Step 1: Define CPU usage condition with duration

    Set condition threshold to >70% CPU usage sustained for 10 minutes.
  2. Step 2: Limit notifications to business hours

    Use scheduling features like uptime checks or notification channel schedules to restrict alerts to 9 AM-5 PM.
  3. Final Answer:

    Use an alerting policy with a condition on CPU usage and add a time window using an uptime check or schedule-based notification channel -> Option C
  4. Quick Check:

    Combine metric condition + time window for precise alerts [OK]
Quick Trick: Combine metric condition with time-based notification [OK]
Common Mistakes:
  • Ignoring time restrictions in alerting policy
  • Relying on manual checks instead of automation
  • Not setting duration for CPU usage condition

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes