AWS Certified SysOps Administrator – Associate (legacy) — Question 347

A user has configured Auto Scaling with 3 instances. The user had created 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?

Answer options

Correct answer: D

Explanation

The command as-terminate-instance-in-auto-scaling-group terminates a specified instance, and using the --no-decrement-desired-capacity flag ensures that Auto Scaling automatically provisions a replacement instance using the new launch configuration to maintain the desired capacity. Option C is incorrect because decrementing the capacity would prevent a new instance from being launched. Options A and B are incorrect because they use invalid commands or parameters.