Q57 — AWS SOA-C02 Ch.1
Question 57 of 100 | ← Chapter 1
A company hosts an application on Amazon EC2 instances. The instances are in an Amazon EC2 Auto Scaling group that uses a launch template. The amount of application trac changes throughout the day. Scaling events happen frequently. A SysOps administrator needs to help developers troubleshoot the application. When a scaling event removes an instance, EC2 Auto Scaling terminates the instance before the developers can log in to the instance to diagnose issues. Which solution will prevent termination of the instance so that the developers can log in to the instance?
- A. Ensure that the Delete on termination setting is turned off in the UserData section of the launch template.
- B. Update the Auto Scaling group by enabling instance scale-in protection for newly launched instances. ✓
- C. Use Amazon Inspector to Configure a rules package to protect the instances from termination.
- D. Use Amazon GuardDuty to Configure rules to protect the instances from termination.
Correct Answer: B. Update the Auto Scaling group by enabling instance scale-in protection for newly launched instances.
Explanation
启用实例缩容保护(instance scale-in protection)后,新启动的实例在自动扩展组的缩容事件(即移除实例时)不会被终止,这为开发者留出了登录实例并进行问题诊断的时间窗口。此方法直接针对Auto Scaling的缩容机制,确保特定实例在需要诊断期间保持运行。