Soru

Zorluk: OrtaCloudWatch Metrics and Alarms

A SysOps Administrator is configuring an Amazon EC2 Auto Scaling group (ASG) to dynamically scale out. The ASG is currently using standard monitoring. The administrator needs to configure a CloudWatch alarm that will trigger the scale-out policy when the average CPU utilization exceeds 80%80\% for two consecutive 1-minute periods. Which two configurations or actions must the administrator perform to achieve this?

  1. Enable detailed monitoring in the Auto Scaling group launch template to ensure metric data is available at 1-minute granularityCevap
  2. Configure the CloudWatch alarm with a period of 6060 seconds and evaluation periods of 22Cevap
  3. C
    Leave standard monitoring enabled and configure the CloudWatch alarm with a period of 300300 seconds and evaluation periods of 22
  4. D
    Configure the CloudWatch alarm to trigger the scale-out policy by directly targeting an Amazon Kinesis Data Firehose delivery stream when the alarm state changes
  5. E
    Configure the scaling policy cooldown period to 00 seconds to ensure the scaling policy executes immediately when the alarm triggers

Cevap

To configure the alarm to trigger on two consecutive 1-minute CPU utilization periods, the administrator must enable detailed monitoring on the Auto Scaling group launch template to get 1-minute metric granularity, and configure the CloudWatch alarm with a period of 60 seconds and an evaluation period of 2.
To resolve this requirement, the administrator must ensure that CPU utilization metrics are reported to CloudWatch at 1-minute intervals by enabling detailed monitoring. Then, they must configure the CloudWatch alarm with a period of 60 seconds and an evaluation period of 2 so that it evaluates two consecutive 1-minute datapoints before triggering the scaling policy.

Adım Adım Çözüm

1
Enable detailed monitoring for the EC2 instances in the Auto Scaling group launch template.
EC2 metric data (including CPU utilization) is sent to CloudWatch at 1-minute intervals instead of the default 5-minute intervals.
Standard monitoring does not support the 1-minute granularity required for this alarm.
2
Configure the CloudWatch alarm with a period of 60 seconds (1 minute) and evaluation periods set to 2.
The alarm will evaluate the CPU utilization metric over two consecutive 1-minute windows.
This satisfies the requirement to trigger the alarm when CPU utilization exceeds the threshold for two consecutive 1-minute periods.

Anahtar Kavram

Enabling detailed monitoring is required to monitor EC2 metrics at 1-minute granularity, and the alarm period and evaluation periods must be configured to match the desired window of observation.
Bu soruyu puanla