AWS Certified SysOps Administrator – Associate (legacy) — Question 382
A user has enabled termination protection on an EC2 instance. The user has also set Instance initiated shutdown behavior to terminate. When the user shuts down the instance from the OS, what will happen?
Answer options
- A. The OS will shutdown but the instance will not be terminated due to protection
- B. It will terminate the instance
- C. It will not allow the user to shutdown the instance from the OS
- D. It is not possible to set the termination protection when an Instance initiated shutdown is set to Terminate
Correct answer: B
Explanation
Termination protection is designed to prevent accidental termination via the AWS Management Console, CLI, or API, but it does not override instance-initiated shutdowns. If the instance-initiated shutdown behavior is explicitly configured to terminate, shutting down the operating system directly will bypass termination protection and terminate the instance.