A SysOps administrator is managing an application running on Amazon EC2 instances inside an Auto Scaling group (ASG). The ASG uses a target tracking scaling policy based on the default `ASGAverageCPUUtilization` metric, with a target utilization of . The application experiences sudden, high-intensity traffic spikes that typically last for to minutes. However, during these spikes, the ASG takes to minutes to begin launching new instances, causing the existing instances to become overloaded and fail health checks. The launch template for the ASG does not explicitly configure monitoring.
Which of the following describes the root cause of this delayed scaling behavior, and the correct remediation step?
- AThe default instance warmup period for the target tracking policy is set to the default value of seconds, preventing the ASG from launching new instances until the warmup expires. The administrator should decrease the default cooldown period of the Auto Scaling group to seconds.
- The EC2 instances are reporting metrics at the default -minute interval, causing a delay in the aggregation of the `ASGAverageCPUUtilization` metric. The administrator should enable detailed monitoring in the launch template.Answer
- CThe Auto Scaling group metrics collection is disabled, which prevents CloudWatch from gathering metrics at a -minute frequency. The administrator should enable group metrics collection in the Auto Scaling group configuration.
- DThe service-linked role for Auto Scaling lacks the `iam:PassRole` permission to pass the execution role to the new instances, causing CloudWatch alarm action executions to time out. The administrator should attach a policy allowing `iam:PassRole` to the Auto Scaling service role.
Answer
The correct answer is that the EC2 instances are reporting metrics at the default -minute interval, and detailed monitoring must be enabled in the launch template.
The correct answer is the option indicating that the instances are reporting metrics at the default -minute interval, and detailed monitoring must be enabled in the launch template. By default, EC2 instances send CPU utilization metrics to CloudWatch every minutes. Because target tracking scaling policies rely on the aggregated `ASGAverageCPUUtilization` metric, the underlying alarm is bound by this -minute reporting interval. Consequently, a sudden load spike is not registered quickly enough, leading to a scaling delay. Enabling detailed monitoring in the launch template changes this reporting interval to minute, resolving the delay.
Step-by-Step Solution
Key Concept
The difference between Standard and Detailed Monitoring on EC2 instances and its impact on Auto Scaling responsiveness.
Estimated Time:3m 0s