A SysOps Administrator is setting up automated remediation for an Amazon EC2 instance. The administrator configures an Amazon CloudWatch alarm to monitor the `CPUUtilization` metric. The alarm has a period of () and is set to transition to the `ALARM` state if the CPU utilization exceeds for consecutive evaluation periods. An Amazon EventBridge rule is configured to detect this alarm state transition and trigger an AWS Systems Manager (SSM) Automation runbook to restart the instance. During testing, the CPU utilization remains at for over , but the alarm stays in the `INSUFFICIENT_DATA` state and the remediation runbook is never executed. What is the most likely cause of this issue, and how should it be resolved?
- The EC2 instance has standard monitoring enabled, which sends metrics to CloudWatch every . The administrator must enable detailed monitoring on the instance to send metrics at intervals.Answer
- BThe EC2 instance is utilizing standard monitoring. The administrator must change the CloudWatch alarm period to to force CloudWatch to pull CPU metrics from the instance at a higher rate.
- CThe EventBridge rule is unable to receive triggers from CloudWatch. The administrator must configure the CloudWatch alarm to directly execute the Systems Manager Automation runbook as an alarm action without using EventBridge.
- DThe Auto Scaling group cooldown period is preventing the instance state change from being evaluated. The administrator must decrease the cooldown period to allow the alarm to transition states within the evaluation window.
Answer
The EC2 instance is using standard monitoring, which sends metrics to CloudWatch every 5 minutes. Enabling detailed monitoring on the instance will publish metrics at 1-minute intervals, providing the necessary data for the 1-minute alarm to evaluate properly.
The correct option correctly identifies that standard monitoring publishes CPU metrics at intervals, which is insufficient for a period alarm. Enabling detailed monitoring changes the reporting interval to , allowing the alarm to evaluate properly and transition states.
Step-by-Step Solution
Key Concept
CloudWatch Standard vs. Detailed Monitoring Granularity