0
0
AWScloud~20 mins

CloudWatch alarms in AWS - Practice Problems & Coding Challenges

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

What is the state of a CloudWatch alarm immediately after it is created but before any metric data is received?

AINSUFFICIENT_DATA
BOK
CALARM
DDISABLED
Attempts:
2 left
💡 Hint

Think about what happens when there is no data to evaluate the alarm.

Configuration
intermediate
2:00remaining
Alarm Configuration for CPU Utilization

You want to create a CloudWatch alarm that triggers when the average CPU utilization of an EC2 instance exceeds 70% for 5 consecutive minutes. Which configuration below correctly sets the evaluation period and threshold?

AEvaluationPeriods=1, Threshold=70, Statistic=Average, Period=300
BEvaluationPeriods=1, Threshold=70, Statistic=Maximum, Period=300
CEvaluationPeriods=5, Threshold=70, Statistic=Sum, Period=60
DEvaluationPeriods=5, Threshold=70, Statistic=Average, Period=60
Attempts:
2 left
💡 Hint

Remember that the period is in seconds and evaluation periods count how many periods must breach the threshold.

security
advanced
2:00remaining
IAM Permissions for CloudWatch Alarm Actions

Which IAM permission is required to allow a user to create and manage CloudWatch alarms that send notifications to an SNS topic?

Acloudwatch:CreateAlarm and sns:Subscribe
Bcloudwatch:PutMetricAlarm and sns:Publish
Ccloudwatch:PutAlarm and sns:SendMessage
Dcloudwatch:CreateMetricAlarm and sns:Notify
Attempts:
2 left
💡 Hint

Check the exact IAM actions for CloudWatch alarms and SNS publishing.

Architecture
advanced
2:00remaining
Designing a Multi-Region Alarm System

You want to monitor an application deployed in two AWS regions and trigger a single alarm if the error rate exceeds 5% in either region. Which architecture best achieves this?

ACreate CloudWatch alarms in each region and configure each to send notifications to separate SNS topics without aggregation.
BCreate a single CloudWatch alarm in one region monitoring metrics from both regions directly.
CCreate separate CloudWatch alarms in each region and use an SNS topic subscribed by a Lambda function that aggregates and triggers a global alarm.
DUse CloudWatch cross-region dashboards to view both regions but create alarms only in the primary region.
Attempts:
2 left
💡 Hint

Consider how CloudWatch alarms work regionally and how to aggregate alerts.

Best Practice
expert
2:00remaining
Optimizing CloudWatch Alarm Costs and Accuracy

You have many CloudWatch alarms monitoring various metrics. To reduce costs without losing critical alert accuracy, which approach is best?

AIncrease the alarm evaluation period and number of evaluation periods to reduce alarm state changes and API calls.
BSet all alarms to use the Maximum statistic and a short period to catch spikes quickly.
CDelete alarms for low-priority metrics and rely on manual monitoring for those.
DUse composite alarms to combine multiple alarms and reduce the number of notifications.
Attempts:
2 left
💡 Hint

Think about combining alarms to reduce noise and cost.