AWS Certified SysOps Administrator – Associate (legacy) — Question 71
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?
Answer options
- 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
Correct answer: C
Explanation
The correct answer is C, as setting the minimum size and desired capacity to 0 is a necessary step before deleting the Auto Scaling group to ensure that no instances remain running. Options A and B suggest terminating instances without adjusting the Auto Scaling settings, which is not sufficient. Option D incorrectly states that no changes are needed, but those changes are crucial to prevent issues during deletion.