Soru

Zorluk: OrtaCloudWatch Metrics and Alarms

A SysOps Administrator is designing an automated remediation workflow for a web application running on an Amazon EC2 instance. The administrator needs to configure an Amazon CloudWatch alarm to monitor the EC2 instance's CPU utilization (CPUUtilizationCPUUtilization). The alarm must trigger an automated response if the CPU utilization exceeds 85%85\% for three consecutive 11-minute periods. The automated response must execute an AWS Systems Manager (SSM) Automation runbook. Which actions should the administrator take to meet these requirements? (Select TWO.)

  1. Enable detailed monitoring on the EC2 instance to ensure CPU metric data is sent to CloudWatch at 11-minute intervals.Cevap
  2. Create an Amazon EventBridge rule that detects when the CloudWatch alarm transitions to the ALARM state and targets the Systems Manager Automation runbook.Cevap
  3. C
    Keep standard monitoring enabled on the EC2 instance and set the alarm's evaluation period to 11 minute, relying on CloudWatch to interpolate the 11-minute values.
  4. D
    Configure the CloudWatch alarm's notification action to directly trigger the Systems Manager Automation runbook using an IAM execution role.
  5. E
    Configure a scaling cooldown period within the Systems Manager Automation runbook configuration to prevent it from executing again if the metric remains high.

Cevap

Enable detailed monitoring on the EC2 instance to ensure CPU metric data is sent to CloudWatch at 1-minute intervals, and create an Amazon EventBridge rule that detects when the CloudWatch alarm transitions to the ALARM state and targets the Systems Manager Automation runbook.
To evaluate a CloudWatch alarm at 11-minute intervals for default EC2 metrics (like CPU utilization), detailed monitoring must be enabled on the EC2 instance. Without it, data is only published every 55 minutes. Additionally, CloudWatch alarms do not support direct invocation of Systems Manager Automation runbooks as an alarm action. An Amazon EventBridge rule must be created to detect the alarm state change event and target the runbook.

Adım Adım Çözüm

1
Determine metric resolution requirement
Identify that a 11-minute alarm period requires detailed monitoring (11-minute interval) rather than standard monitoring (55-minute interval) for EC2 instances.
Standard EC2 monitoring only sends metrics every 55 minutes, which is insufficient for a 11-minute period alarm.
2
Determine alarm target trigger flow
Select Amazon EventBridge as the event router since CloudWatch alarms cannot directly invoke Systems Manager Automation runbooks.
CloudWatch alarms natively support only SNS, EC2 actions, and Auto Scaling actions, making EventBridge necessary to route the state change event to Systems Manager.

Anahtar Kavram

Configuring CloudWatch alarms with detailed monitoring and routing alerts to AWS Systems Manager Automation via Amazon EventBridge.
Bu soruyu puanla