A user has enabled termination protection on an EC2 instance. The user has also set Instance initiated
shutdown behaviour to terminate. When the user shuts down the instance from the OS, what will happen?

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
Explanation:
It is always possible that someone can terminate an EC2 instance using the Amazon EC2 console, command
line interface or API by mistake. If the admin wants to prevent the instance from being accidentally
terminated, he can enable termination protection for that instance. The user can also setup shutdown
behaviour for an EBS backed instance to guide the instance on what should be done when he initiates
shutdown from the OS using Instance initiated shutdown behaviour. If the instance initiated behaviour is set to
terminate and the user shuts off the OS even though termination protection is enabled, it will still terminate
the instance.
D
0
0
B.
It will terminate the instance
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingDisableAPITermination
1
0
I meant to say A
The DisableApiTermination attribute does not prevent you from terminating an instance by initiating shutdown from the instance (using an operating system command for system shutdown) when the InstanceInitiatedShutdownBehavior attribute is set.
0
0
Questions is wrong.
0
1
Answer is B, just did it in AWS. Took 3 mins to test.
Termination Protection is actually called “accidental termination protection”.
Setting an instance to terminate on shutdown and then shutting it down is not accidental, so it is allowed.
2
0
B
0
0
B , like Jenny did the quick practical test.
0
0
b
1
0