A user is trying to delete an Auto Scaling group from CLI. Which of the below mentioned steps are to be
performed by the user?
A.
Terminate the instances with the ec2-terminate-instance command
B.
Terminate the Auto Scaling instances with the as-terminate-instance command
C.
Set the minimum size and desired capacity to 0
D.
There is no need to change the capacity. Run the as-delete-group command and it will reset all values to 0
Explanation:
If the user wants to delete the Auto Scaling group, the user should manually set the values of the minimum
and desired capacity to 0. Otherwise Auto Scaling will not allow for the deletion of the group from CLI. While
trying from the AWS console, the user need not set the values to 0 as the Auto Scaling console will
automatically do so.
Answer – C
http://docs.aws.amazon.com/cli/latest/reference/autoscaling/delete-auto-scaling-group.html
To terminate all instances before deleting the Auto Scaling group, call update-auto-scaling-group and set the minimum size and desired capacity of the Auto Scaling group to zero.
C
It’s seems to be C. See http://docs.aws.amazon.com/es_es/autoscaling/latest/userguide/as-process-shutdown.html
Answer is D . See https://docs.aws.amazon.com/cli/latest/reference/autoscaling/delete-auto-scaling-group.html
answer is C
If don’t set the desired capacity to 0 the CLI need to use –force-delete option.
I want to pick D but there is no “as-delete-group” command, the command should be
aws autoscaling delete-auto-scaling-group –auto-scaling-group-name my-auto-scaling-group
so i guess i would pick C
If the question was delete launch config then you can directly use the delete command from CLI.
That is correct. http://docs.aws.amazon.com/cli/latest/reference/autoscaling/delete-auto-scaling-group.html
The question is incomplete.
c
c
D – You are wanting to delete the group and not necessarily the running instances. If you make 0 the instances will die but the group will still be there.
D