A user has configured Auto Scaling with 3 instances. The user had c
reated a new AMI after updating one of the instances. If the user wants to terminate two specific instances to ensure that Auto Scaling launches an instances with the new launch configuration, which command should he run?
A. as-delete-instance-in-auto-sca
ling-group
B. as-terminate-instance-in-auto-scaling-group
C. as-terminate-instance-in-auto-scaling-group
D. as-terminate-instan
ce-in-auto-scaling-group
Explanation:
The Auto Scaling command as-terminate-instance-in-auto-scaling-group
parameter as -no-decrement-desired-capacity to ensure that it launches a new instance from the launch config after terminating the instance. If the user specifies the parameter –decrement-desired-capacity then Auto Scaling will terminate the instance and
decrease the desired capacity by 1.