A SysOps Administrator is configuring an automated remediation workflow for an application running on a standalone Amazon EC2 instance. The administrator wants to execute a custom AWS Systems Manager (SSM) Automation document to reboot the instance when the `CPUUtilization` metric exceeds for consecutive -minute periods. Currently, default monitoring is enabled on the instance. During testing, the alarm remains in the `INSUFFICIENT_DATA` state and fails to trigger the remediation workflow.
Which of the following actions should the administrator take to resolve this issue and execute the remediation workflow? (Select TWO.)
- Enable detailed monitoring on the EC2 instance.Answer
- Create an Amazon EventBridge rule that is triggered by the CloudWatch alarm state change to ALARM, and set the SSM Automation document as the target.Answer
- CChange the CloudWatch alarm evaluation period to minutes, and add the SSM Automation document directly as an alarm action.
- DConfigure the CloudWatch alarm to send a message to an Amazon Simple Queue Service (Amazon SQS) queue, and configure the queue to directly invoke the SSM Automation document.
- EModify the Auto Scaling group cooldown period to allow the alarm to execute the SSM Automation document.
Answer
To resolve the issues, the administrator must enable detailed monitoring on the EC2 instance to receive metric updates every minute, and construct an Amazon EventBridge rule that intercepts the CloudWatch alarm state change to trigger the Systems Manager Automation document.
To resolve the metric data issue, detailed monitoring must be enabled on the EC2 instance. Detailed monitoring changes the data aggregation frequency from minutes to minute, satisfying the alarm's requirement for consecutive -minute evaluation periods. To resolve the execution failure, an Amazon EventBridge rule must be created to intercept the CloudWatch alarm transition to the ALARM state and trigger the Systems Manager Automation document, as CloudWatch alarms cannot directly invoke Automation runbooks.
Step-by-Step Solution
Key Concept
CloudWatch detailed monitoring configuration and EventBridge-based automated remediation.