exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 62 discussion

Exam question from Amazon's AWS-SysOps
Question #: 62
Topic #: 1
[All AWS-SysOps Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
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.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
onlinebaba
Highly Voted 2 years, 6 months ago
C If we don't set the minimum and desired capacity to 0, Auto Scaling will not allow for the deletion of the group from CLI. However from Console, Auto Scaling will automatically set the desired capacity to 0
upvoted 5 times
...
albert_kuo
Most Recent 9 months ago
Selected Answer: C
The correct steps are: 1. Set the minimum size and desired capacity of the Auto Scaling group to 0. 2. Wait for any existing instances to be terminated by the Auto Scaling group. 3. Use the as-delete-group command to delete the Auto Scaling group.
upvoted 1 times
...
Finger41
1 year, 8 months ago
Selected Answer: C
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html#as-shutdown-lbs-delete-asg-cli "When you delete an Auto Scaling group, its desired, minimum, and maximum values are set to 0."
upvoted 1 times
...
gispankaj
2 years, 6 months ago
If the group has instances or scaling activities in progress, use the delete-auto-scaling-group command with the --force-delete option. This will also terminate the Amazon EC2 instances. aws autoscaling delete-auto-scaling-group --auto-scaling-group-name my-asg --force-delete
upvoted 3 times
...
Lukaseffen
2 years, 6 months ago
The answer is D
upvoted 1 times
...
tetural
2 years, 6 months ago
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html#as-shutdown-lbs-delete-asg-cli
upvoted 1 times
...
newbie2019
2 years, 6 months ago
Outdated. You can delete through a single line command -- aws autoscaling delete-auto-scaling-group --auto-scaling-group-name my-asg
upvoted 4 times
karmaah
2 years, 6 months ago
Correction. If you use aws autoscaling delete-auto-scaling-group [--force-delete --auto-scaling-group-name my-asg only , It will delete the group. By default Force will not be active. To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity. This ensures that Amazon EC2 Auto Scaling does not launch replacement instances. Ref : https://docs.aws.amazon.com/cli/latest/reference/autoscaling/delete-auto-scaling-group.html
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago