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?

A.
as-delete-instance-in-auto-scaling-group <Instance ID> –no-decrement-desired-capacity
B.
as-terminate-instance-in-auto-scaling-group <Instance ID> –update-desired-capacity
C.
as-terminate-instance-in-auto-scaling-group <Instance ID> –decrement-desired-capacity
D.
as-terminate-instance-in-auto-scaling-group <Instance ID> –no-decrement-desired-capacity
Explanation:
The Auto Scaling command as-terminate-instance-in-auto-scaling-group <Instance ID> will terminate the
specific instance ID. The user is required to specify the 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.
D
0
0
command expired. amazon updated CLI
0
0
d
0
0
https://docs.aws.amazon.com/cli/latest/reference/autoscaling/terminate-instance-in-auto-scaling-group.html
0
0
D
Synopsis¶
terminate-instance-in-auto-scaling-group
–instance-id
–should-decrement-desired-capacity | –no-should-decrement-desired-capacity
[–cli-input-json ]
[–generate-cli-skeleton ]
0
0