A SysOps Administrator is troubleshooting a CloudWatch alarm designed to initiate an automated remediation workflow when a custom application metric, `DatabaseQueryLatency`, exceeds . The application runs on Amazon EC2 instances with standard monitoring enabled. The alarm is configured with a 1-minute evaluation period and is intended to trigger an AWS Systems Manager (SSM) Automation runbook. However, the administrator notices that the alarm remains in the `INSUFFICIENT_DATA` state even when latency is high, and the runbook is never executed.
Which TWO actions should the administrator take to resolve these issues?
- Modify the CloudWatch alarm to specify the exact dimensions, such as `InstanceId` and `DatabaseName`, that are published with the custom metric.Answer
- Create an Amazon EventBridge rule that detects when the CloudWatch alarm transitions to the `ALARM` state, and configure it to target the Systems Manager Automation runbook.Answer
- CEnable detailed monitoring on the Amazon EC2 instances to allow the custom application metric to be evaluated at 1-minute intervals.
- DConfigure the Systems Manager Automation runbook ARN directly within the CloudWatch alarm actions configuration.
- EIncrease the Auto Scaling group cooldown period to match the 1-minute CloudWatch alarm evaluation period.
Answer
The correct actions are to configure the CloudWatch alarm with the exact dimensions published with the custom metric, and to create an Amazon EventBridge rule to route the alarm state change event to the Systems Manager Automation runbook.
The correct actions are configuring the alarm with the exact dimensions associated with the custom metric, which resolves the dimension mismatch causing the INSUFFICIENT_DATA state, and implementing an Amazon EventBridge rule to handle the alarm state change, which correctly connects the alarm to the Systems Manager Automation target.
Step-by-Step Solution
Key Concept
CloudWatch custom metrics require matching dimensions to alarm properly, and automated remediation workflows using Systems Manager Automation runbooks must be triggered via Amazon EventBridge.