Question

Difficulty: HardAuto Scaling and Elasticity

A SysOps administrator is troubleshooting an Amazon EC2 Auto Scaling group (ASG) that is scaling out too slowly during sudden traffic spikes. The ASG is configured with a step scaling policy based on the average CPU utilization of the group. The associated CloudWatch alarm has a period of 60 seconds and an evaluation period of 1. However, during high-load events, the ASG takes approximately 5 minutes to trigger the scale-out action. What is the root cause of this delay?

  1. Detailed monitoring is disabled in the launch template, resulting in EC2 metric data being sent to CloudWatch at 5-minute intervals.Answer
  2. B
    The default cooldown period of the Auto Scaling group is set to 300 seconds, which blocks the initial metric evaluation and alarm execution.
  3. C
    The Amazon EventBridge rule routing the alarm state change to the Auto Scaling group has a default propagation latency of 5 minutes.
  4. D
    The IAM role assigned to the Auto Scaling group is missing the iam:PassRole permission, causing AWS to fall back to a 5-minute polling interval.

Answer

Detailed monitoring is disabled in the launch template, resulting in EC2 metric data being sent to CloudWatch at 5-minute intervals.
The correct answer is that detailed monitoring is disabled. By default, EC2 instances are configured with standard monitoring, which sends metrics to CloudWatch at 5-minute intervals. Even if a CloudWatch alarm is configured with a 1-minute period, it cannot evaluate new data points faster than they are sent. To achieve 1-minute scaling response times, detailed monitoring must be enabled on the EC2 instances via the launch template.

Step-by-Step Solution

1
Analyze the CloudWatch alarm settings and the reported delay.
The alarm has a period of 60 seconds (1 minute), but the scale-out action takes 5 minutes to trigger.
This indicates that the alarm is not receiving metric data at the 1-minute frequency it is configured to evaluate.
2
Verify the default monitoring configuration for EC2 instances.
Standard monitoring sends data to CloudWatch at 5-minute intervals.
If detailed monitoring (1-minute intervals) is not explicitly enabled, CloudWatch will only receive updates every 5 minutes.
3
Correlate launch template settings with metric frequency.
The launch template needs detailed monitoring enabled to publish 1-minute metrics.
Enabling detailed monitoring ensures the alarm has timely data points to evaluate and trigger the scale-out policy immediately when the threshold is exceeded.

Key Concept

Auto Scaling policies rely on the resolution of the underlying CloudWatch metrics. Without detailed monitoring enabled, EC2 metrics are sent at 5-minute intervals, delaying alarm evaluation and subsequent scaling actions.
Estimated Time:2m 0s
Rate this question