A SysOps Administrator is configuring an Amazon CloudWatch alarm to monitor the CPUUtilization metric of an Amazon EC2 instance. The administrator wants the alarm to trigger within 2 minutes of the CPU utilization exceeding 90%. The alarm is configured with a period of 60 seconds and an evaluation period of 2 consecutive periods. During testing, CPU utilization is sustained at 95% for 4 minutes, but the alarm fails to transition to the ALARM state.
Which action will resolve this issue and meet the monitoring requirement?
- Enable detailed monitoring on the EC2 instance.Answer
- BChange the alarm period to 30 seconds to force CloudWatch to retrieve the CPU utilization data points at a higher frequency.
- CCreate an Amazon EventBridge rule that detects when the CPU utilization threshold is exceeded and invokes an AWS Systems Manager Automation runbook to transition the alarm state.
- DReduce the scale-in cooldown period of the Auto Scaling group associated with the instance to 60 seconds to speed up alarm evaluation.
Answer
Enable detailed monitoring on the EC2 instance.
Enabling detailed monitoring on the Amazon EC2 instance changes the metric reporting frequency from 5 minutes (standard monitoring) to 1 minute. Since the alarm is configured with a 60-second period and requires 2 consecutive periods to breach (totaling 2 minutes), detailed monitoring ensures that CloudWatch receives the necessary data points at 1-minute intervals to evaluate and trigger the alarm within the 2-minute window.
Step-by-Step Solution
Key Concept
CloudWatch Standard vs. Detailed Monitoring for EC2