A SysOps Administrator is managing an Amazon EC2 Auto Scaling group where the instances are launched with standard monitoring enabled by default. To react to sudden load spikes, the administrator configures an Amazon CloudWatch alarm to trigger a scale-out policy. The alarm is defined with the CPUUtilization metric, a period of 60 seconds (1 minute), and evaluation periods set to 3. During a load test, the actual CPU utilization on the instances stays at 90% for 15 minutes, but the alarm remains in the INSUFFICIENT_DATA state and fails to trigger the scaling policy. Which of the following is the root cause of this behavior?
- With standard monitoring enabled, Amazon EC2 metrics are only generated and sent to CloudWatch at 5-minute intervals, meaning there are no 1-minute data points available for the alarm to evaluate.Cevap
- BStandard monitoring collects CPU utilization data at 1-minute intervals but only publishes the aggregated data to CloudWatch once every 5 minutes, causing a delay in the alarm evaluation.
- CThe Auto Scaling group is currently within a scale-out cooldown period, which automatically suspends CloudWatch metric evaluation and forces associated alarms into the INSUFFICIENT_DATA state.
- DThe CloudWatch alarm is attempting to send the state change notification directly to the Auto Scaling group via an Amazon SQS queue, which is not a supported event flow target for Auto Scaling remediation.
Cevap
With standard monitoring enabled, Amazon EC2 metrics are only generated and sent to CloudWatch at 5-minute intervals, meaning there are no 1-minute data points available for the alarm to evaluate.
The correct answer is that with standard monitoring enabled, Amazon EC2 metrics are only generated and sent to CloudWatch at 5-minute intervals, meaning there are no 1-minute data points available for the alarm to evaluate. In standard monitoring, metric data is sent to CloudWatch at 5-minute intervals. If an alarm is configured with a 1-minute period, it expects metric data every 1 minute. Without detailed monitoring enabled, the lack of 1-minute data points causes the alarm to remain in the INSUFFICIENT_DATA state.
Adım Adım Çözüm
Anahtar Kavram
CloudWatch Standard vs Detailed Monitoring Intervals
Tahmini Süre:2m 0s