0
0
GCPcloud~20 mins

Alerting policies in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Alerting Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Alerting Policy Behavior

You have created an alerting policy in Google Cloud Monitoring that triggers when CPU usage exceeds 80% for 5 minutes. What will happen if the CPU usage spikes to 85% for 3 minutes and then drops back to 50%?

AThe alert will not trigger because the CPU usage did not exceed 80% for the full 5 minutes.
BThe alert will trigger after the CPU usage drops back below 80%.
CThe alert will trigger immediately when CPU usage hits 85%.
DThe alert will trigger only if CPU usage stays above 90% for 5 minutes.
Attempts:
2 left
💡 Hint

Think about how the duration condition affects alert triggering.

Configuration
intermediate
2:00remaining
Correct Configuration of Notification Channels

You want to receive email notifications when an alerting policy triggers. Which configuration step is necessary to ensure emails are sent?

ACreate a Pub/Sub topic and subscribe your email to it.
BAdd your email address as a notification channel and link it to the alerting policy.
CEnable Stackdriver Logging to forward alerts to your email.
DSet up a Cloud Function to send emails when alerts occur.
Attempts:
2 left
💡 Hint

Consider the built-in ways Google Cloud Monitoring sends notifications.

Architecture
advanced
3:00remaining
Designing a Multi-Region Alerting Strategy

You manage a multi-region application and want to create alerting policies that notify you only if an issue affects more than one region simultaneously. Which approach best achieves this?

ACreate separate alerting policies per region and combine notifications manually.
BSet up alerting policies per region and configure a Cloud Function to check if multiple alerts are active before sending notifications.
CUse a single alerting policy with a metric that aggregates data across all regions and triggers only if multiple regions report issues.
DConfigure alerting policies with a short duration threshold to catch issues quickly in each region.
Attempts:
2 left
💡 Hint

Think about how to aggregate metrics across regions for alerting.

security
advanced
2:00remaining
Securing Alerting Policies Access

Which IAM role should you assign to a team member who needs to create and edit alerting policies but should not have permission to delete notification channels?

AMonitoring Editor (roles/monitoring.editor)
BProject Owner (roles/owner)
CMonitoring Viewer (roles/monitoring.viewer)
DMonitoring Admin (roles/monitoring.admin)
Attempts:
2 left
💡 Hint

Consider the permissions included in each role.

Best Practice
expert
3:00remaining
Optimizing Alerting Policies to Reduce Noise

You notice your team receives too many alert notifications for transient issues that resolve quickly. Which configuration change best reduces alert noise without missing critical incidents?

ADisable alerting policies during off-hours to avoid unnecessary alerts.
BLower the threshold to catch issues earlier and resolve them faster.
CRemove all notification channels except email to reduce alert volume.
DIncrease the alerting policy's condition duration to require the issue to persist longer before triggering.
Attempts:
2 left
💡 Hint

Think about how alert duration affects alert triggering.