A company is hosting a file-sharing application on an Amazon EC2 instance that runs with standard monitoring enabled. To detect sudden spikes in outbound data transfer, a SysOps Administrator creates an Amazon CloudWatch alarm for the NetworkOut metric. The alarm is configured with a threshold of bytes, a period of minute, and an evaluation period of . During a testing window, a large file transfer causes the NetworkOut metric to exceed the threshold for exactly minutes, but the alarm remains in the OK state.
Which action will resolve this issue and ensure the alarm triggers during future traffic spikes?
- Activate detailed monitoring on the EC2 instance.Answer
- BAdjust the CloudWatch alarm period to minutes.
- CCreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to query the network metrics of the instance every seconds.
- DReduce the Auto Scaling group cooldown period to seconds to increase the frequency of metric reporting.
Answer
Activate detailed monitoring on the EC2 instance.
The correct action is to activate detailed monitoring on the EC2 instance. Standard monitoring only publishes metrics to CloudWatch every 5 minutes. Because the alarm is configured with a 1-minute period and requires 2 consecutive breaching periods, it cannot trigger without detailed monitoring, which increases the reporting frequency to 1-minute intervals.
Step-by-Step Solution
Key Concept
CloudWatch Detailed Monitoring vs. Standard Monitoring for EC2 instances