A SysOps Administrator is managing an application on a standalone Amazon EC2 instance. The administrator configures a custom script on the instance to publish a custom metric named ActiveConnections to Amazon CloudWatch every 10 seconds. The administrator then creates a CloudWatch alarm with a period of 10 seconds and an evaluation period of 3 to monitor this metric. The goal is to automatically trigger an AWS Systems Manager (SSM) Automation runbook to reboot the instance if active connections exceed 500.
During a traffic spike, the active connections exceeded 500 for several minutes, but the alarm remained in the INSUFFICIENT_DATA state and the instance did not reboot.
Which two of the following configuration changes will resolve these issues and ensure the automated reboot executes successfully? (Select TWO.)
- Modify the custom script to publish the metric with the StorageResolution parameter set to 1.Answer
- Configure an Amazon EventBridge rule that intercepts the CloudWatch alarm state change and targets the Systems Manager Automation runbook.Answer
- CEnable detailed monitoring on the EC2 instance to allow the custom metric to be evaluated at 1-minute intervals.
- DAdd a direct action in the CloudWatch alarm configuration to trigger the Systems Manager Automation runbook.
- EAdjust the Auto Scaling group cooldown period to prevent the alarm from entering the INSUFFICIENT_DATA state during reboots.