A SysOps administrator manages an Amazon EC2 Auto Scaling group (ASG) behind an Application Load Balancer. The ASG is configured with a target tracking scaling policy based on the metric at a target value of . Standard monitoring is enabled on the EC2 instances in the launch template. During sudden traffic spikes, CPU utilization rises to , triggering a scale-out. However, the administrator observes that the ASG launches multiple consecutive batches of instances before the first batch has finished initializing and registering with the load balancer, leading to significant over-provisioning. The application on the instances requires minutes to become fully operational and begin processing requests. Which action should the administrator take to prevent this over-provisioning behavior?
- Enable detailed monitoring in the launch template used by the ASG, and configure the estimated instance warm-up for the target tracking scaling policy to 240 seconds.Cevap
- BKeep standard monitoring enabled, and reduce the target tracking scaling policy's estimated instance warm-up to 60 seconds to allow the ASG to recalculate the metrics more frequently.
- CIncrease the default cooldown period of the Auto Scaling group to 240 seconds to prevent the group from executing subsequent scale-out actions while instances are initializing.
- DModify the EC2 instance profile role to grant the iam:PassRole permission to the Auto Scaling service, ensuring that the instances can pass their monitoring roles to CloudWatch without delay.