exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 241 discussion

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

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

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
albert_kuo
4 months, 3 weeks ago
Selected Answer: D
To terminate specific instances in an Auto Scaling group and ensure that Auto Scaling replaces them with new instances using the new launch configuration, the user should use the "as-terminate-instance-in-auto-scaling-group" command. The "--no-decrement-desired-capacity" option should be included to prevent the desired capacity of the Auto Scaling group from being decremented.
upvoted 1 times
...
Finger41
1 year, 3 months ago
Selected Answer: D
https://docs.aws.amazon.com/cli/latest/reference/autoscaling/terminate-instance-in-auto-scaling-group.html Terminates the specified instance from the specified Auto Scaling group without updating the size of the group.
upvoted 1 times
...
TroyMcLure
2 years ago
Correct Answer: D
upvoted 1 times
...
awscertified
2 years, 1 month ago
D. as-terminate-instance-in-auto-scaling-group <Instance ID> --no-decrement-desired-capacity
upvoted 2 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