exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 267 discussion

A company is running Amazon EC2 On-Demand Instances in an Auto Scaling group. The instances process messages from an Amazon Simple Queue Service (Amazon SQS) queue. The Auto Scaling group is set to scale based on the number of messages in the queue. Messages can take up to 12 hours to process completely. A SysOps administrator must ensure that instances are not interrupted during message processing.

What should the SysOps administrator do to meet these requirements?

  • A. Enable instance scale-in protection for the specific instance in the Auto Scaling group at the start of message processing by calling the Amazon EC2 Auto Scaling API from the processing script. Disable instance scale-in protection after message processing is complete by calling the Amazon EC2 Auto Scaling API from the processing script.
  • B. Set the Auto Scaling group's termination policy to OldestInstance.
  • C. Set the Auto Scaling group's termination policy to OldestLaunchConfiguration.
  • D. Suspend the Launch and Terminate scaling processes for the specific instance in the Auto Scaling group at the start of message processing by calling the Amazon EC2 Auto Scaling API from the processing script. Resume the scaling processes after message processing is complete by calling the Amazon EC2 Auto Scaling API from the processing script.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Gomer
Highly Voted 12 months ago
Selected Answer: A
I found some info on disabling scaling for a specific instance rather than the entire group. This would be important if you needed the instance to finish something it started. # Enable instance scale-in protection for specific instance. aws autoscaling set-instance-protection --instance-ids i-5f2e8a0d --auto-scaling-group-name my-asg --protected-from-scale-in # Disable instance scale-in protection for the specified instance. aws autoscaling set-instance-protection --instance-ids i-5f2e8a0d --auto-scaling-group-name my-asg --no-protected-from-scale-in https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html
upvoted 9 times
...
JamesF92
Most Recent 8 months, 2 weeks ago
Selected Answer: A
It appears from the link that Suspending Launch scaling process applies to the WHOLE ASG. This isn't what we want ... so D is wrong. Scale-in protection (choice A) prevents an indvidual instance from being lost if the ASG decides to scale in (remove instances). So A is the way to launch an instance in an ASG and then keep it around until it finishes the job, then remove the protection and it can then be terminated by a scale in operation once it is done. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html
upvoted 2 times
...
AndyMartinez
1 year ago
Selected Answer: A
Option A
upvoted 1 times
...
wooyourdaddy
1 year ago
Selected Answer: A
When a scaling policy is disabled, the Auto Scaling group does not scale out or scale in for the metric alarms that are breached while the scaling policy is disabled. However, any scaling activities still in progress are not stopped. Ref link: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html
upvoted 1 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