A SysOps Administrator is monitoring a critical processing application running on a fleet of Amazon EC2 instances. The application publishes a custom CloudWatch metric named `QueueProcessingLatency` at 5-minute intervals. The administrator configures a CloudWatch alarm for this metric with a threshold of milliseconds, a period of minute, and `EvaluationPeriods` set to . The alarm is configured to treat missing data as `nonBreaching`.
During a peak traffic event, the latency increases to milliseconds and remains high for an hour, but the alarm never transitions to the `ALARM` state.
Which of the following is the reason for this behavior, and how should it be resolved?
- AEnable detailed monitoring on the EC2 instances hosting the application. This will force all custom metrics published from the instances to report at 1-minute intervals, allowing the alarm to evaluate complete data.
- BConfigure an Amazon EventBridge rule that detects when the custom metric is published, and route the raw metric data directly to an Auto Scaling scaling policy, bypassing the CloudWatch alarm evaluation.
- Change the alarm period to 5 minutes to align with the metric's publication frequency, or modify the application code to publish the metric at 1-minute intervals so that there is no missing data.Cevap
- DDecrease the Auto Scaling group's cooldown period to 60 seconds to match the 1-minute alarm evaluation period, allowing the instances to report metrics faster.
Cevap
Change the alarm period to 5 minutes to align with the metric's publication frequency, or modify the application code to publish the metric at 1-minute intervals.
The correct option is to align the alarm period with the metric frequency (5 minutes) or modify the application to publish at 1-minute intervals. Because the custom metric is only published every 5 minutes, a 1-minute alarm period means at least two out of the three evaluation periods will contain no data. Since missing data is treated as non-breaching, the alarm will never see three consecutive breaching periods to trigger.
Adım Adım Çözüm
Anahtar Kavram
CloudWatch Alarm Evaluation and Metric Resolution Alignment