An application is hosted on Amazon EC2 instances that are part of an Auto Scaling group using a launch template. Traffic varies during the day and scale-in events occur frequently. When an instance is removed during scale-in, EC2 Auto Scaling terminates it before developers can SSH in to investigate. What change will prevent an instance from being terminated so developers have time to log in and debug it?
Choose an answer
Tap an option to check your answer.
Correct answer: Modify the Auto Scaling group to turn on instance scale-in protection for instances as they are launched..
Why this is the answer
Modifying the Auto Scaling group to turn on instance scale-in protection for instances as they are launched is the correct solution. This feature prevents Auto Scaling from terminating an instance during a scale-in event, giving developers time to investigate. They can then manually remove the instance from the Auto Scaling group or disable protection when done. Disabling "Delete on termination" in the launch template's UserData section is incorrect because this option applies to attached EBS volumes, not the instance itself. Deploying Amazon Inspector or enabling Amazon GuardDuty are security services that detect vulnerabilities and threats, respectively; they do not control Auto Scaling group termination behavior.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed