Which solution will prevent termination of the instance so that the developers can log in to the instance?
Ensure that the Delete on termination setting is turned off in the UserData section of the launch template.
Update the Auto Scaling group by enabling instance scale-in protection for newly launched instances.
Use Amazon Inspector to configure a rules package to protect the instances from termination.
Use Amazon GuardDuty to configure rules to protect the instances from termination.
Explanations:
The “Delete on termination” setting refers to whether the associated EBS volume should be deleted when the instance is terminated. It does not prevent the termination of the EC2 instance itself.
Enabling instance scale-in protection prevents EC2 Auto Scaling from terminating the instance during scale-in events, allowing developers time to troubleshoot the instance before it is terminated.
Amazon Inspector is a security assessment service and does not offer functionality to prevent instance termination. It is focused on identifying vulnerabilities and security issues.
Amazon GuardDuty is a threat detection service for monitoring malicious activity and does not provide functionality for protecting instances from termination during scaling events.