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

  • AEnable EC2 Termination Protection (DisableApiTermination) on the AMI without scale-in protection
  • BEnable Auto Scaling Instance Scale-In Protection (SetInstanceProtection) on those instancesCorrect answer
  • CDelete the Target Tracking Scaling Policy and set MaxSize = 0 on the group
  • DAttach an Elastic IP address to the Auto Scaling launch template network interface

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.

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.