A SysOps Administrator is setting up an automated remediation workflow to stop an Amazon EC2 instance when its CPU utilization exceeds 90%. The administrator needs the instance's CPU metric to be evaluated at 1-minute intervals to ensure rapid response, and wants to execute a custom Systems Manager Automation runbook as the remediation action. Which configuration will meet these requirements?
- AKeep standard monitoring enabled on the EC2 instance. Configure the CloudWatch alarm with a 1-minute period and set the alarm to trigger an Amazon EventBridge rule that executes the Systems Manager Automation runbook.
- Enable detailed monitoring on the EC2 instance. Configure the CloudWatch alarm with a 1-minute period and set the alarm to trigger an Amazon EventBridge rule that executes the Systems Manager Automation runbook.Cevap
- CEnable detailed monitoring on the EC2 instance. Configure the CloudWatch alarm to deliver the state change event directly to an Amazon Simple Storage Service (Amazon S3) bucket to initiate the Systems Manager Automation runbook.
- DKeep standard monitoring enabled on the EC2 instance. Configure the CloudWatch alarm to publish to an Amazon Simple Queue Service (Amazon SQS) queue that directly triggers the Systems Manager Automation runbook.
Cevap
Enable detailed monitoring on the EC2 instance, configure the CloudWatch alarm with a 1-minute period, and set the alarm to trigger an Amazon EventBridge rule that executes the Systems Manager Automation runbook.
To evaluate a metric at 1-minute intervals, detailed monitoring must be enabled on the EC2 instance. Once enabled, the CPU utilization metric is delivered to CloudWatch every minute. The CloudWatch alarm can then be configured with a 1-minute period. To trigger the automated remediation runbook, EventBridge should be used as it natively receives CloudWatch alarm state change events and can target Systems Manager Automation runbooks.
Adım Adım Çözüm
Anahtar Kavram
CloudWatch Detailed Monitoring intervals and automated remediation routing via EventBridge