AWS SysOps Admin SOA-C02 · Reliability and Business Continuity · medium
An Amazon EC2 Auto Scaling group uses a Target Tracking Scaling Policy set to keep average CPUUtilization at 50%. However, two specific EC2 instances in the group hold active in-memory stateful batch jobs that take 3 hours to finish and must not be terminated if the Auto Scaling group scales in, while all other instances in the group can scale in normally. Which Auto Scaling feature protects only those active batch instances during scale-in?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: B. Enable Auto Scaling Instance Scale-In Protection (SetInstanceProtection) on those instances
Amazon EC2 Auto Scaling Instance Scale-In Protection (SetInstanceProtection API / CLI aws autoscaling set-instance-protection --protected-from-scale-in) can be enabled dynamically per instance (or on the group) by the batch worker when a job starts and disabled when the job finishes, preventing the Auto Scaling group from terminating that specific instance during scale-in events.
Why the other options are wrong
- A. Enable EC2 Termination Protection (DisableApiTermination) on the AMI without scale-in protection — Auto Scaling overrides standard EC2 DisableApiTermination; you must use Auto Scaling Instance Scale-In Protection (ProtectedFromScaleIn).
- C. Delete the Target Tracking Scaling Policy and set MaxSize = 0 on the group — Setting MaxSize = 0 immediately terminates every instance in the Auto Scaling group.
- D. Attach an Elastic IP address to the Auto Scaling launch template network interface — Attaching an Elastic IP does not stop Auto Scaling from terminating an instance during scale-in.
More Reliability and Business Continuity questions
- An Application Load Balancer (ALB) distributes HTTPS requests across an Amazon EC2 Auto Scaling group. Most API calls…
- An Amazon EC2 Auto Scaling group (ASG) sits behind an Application Load Balancer (ALB). During scale-in events, users…
- A production Amazon RDS for PostgreSQL database is deployed in a Single-AZ configuration. The company requires two…
- To comply with SEC Rule 17a-4 and protect against ransomware where an attacker compromises an AWS account's…
- An Amazon EC2 Auto Scaling group runs a proprietary financial analytics server whose UserData bootstrap script…
All Reliability and Business Continuity questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.