A SysOps Administrator configures a CloudWatch alarm to monitor the CPUUtilization metric of an Amazon EC2 instance. The alarm is set to trigger if the CPU utilization exceeds for a period of 1 minute. However, the administrator notices that the alarm frequently enters the INSUFFICIENT_DATA state because the instance is using standard monitoring, which only sends metric data to CloudWatch every 5 minutes. Which of the following actions will resolve this issue by ensuring the instance reports CPU metrics every minute?
- Enable detailed monitoring for the EC2 instance.Cevap
- BConfigure the alarm with a period of 10 seconds to force CloudWatch to collect the metric more frequently.
- CCreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to poll the CPU metric every minute.
- DReduce the Auto Scaling group cooldown period to 60 seconds to force the instance to update its metrics more frequently.
Cevap
Enable detailed monitoring for the EC2 instance.
Enabling detailed monitoring for the EC2 instance changes the metric reporting frequency from the default 5-minute interval to a 1-minute interval. This allows the CloudWatch alarm with a 1-minute period to receive data points consistently and function as designed.
Adım Adım Çözüm
Anahtar Kavram
CloudWatch Standard vs. Detailed Monitoring for EC2