A user has launched an EC2 instance and deployed a production application in it. The user wants to prohibit any mistakes from the production team to avoid accidental termination. How can the user achieve this?
A.
The user can the set DisableApiTermination attribute to avoid accidental termination
B.
It is not possible to avoid accidental termination
C.
The user can set the Deletion termination flag to avoid accidental termination
D.
The user can set the InstanceInitiatedShutdownBehavior flag to avoid accidental termination
Suggested Answer:A🗳️
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 DisableApiTermination attribute controls whether the instance can be terminated using the console, CLI or API. By default, termination protection is disabled for an EC2 instance. When it is set it will not allow the user to terminate the instance from CLI, API or the console.
The DisableApiTermination attribute is a setting that can be applied to an EC2 instance to prevent it from being terminated through API calls, console actions, or command line tools. When this attribute is set to "true" for an instance, it adds an extra layer of protection, making it more difficult for the production team or anyone else to accidentally terminate the instance.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
albert_kuo
11 months agoTroyMcLure
2 years, 6 months agoawscertified
2 years, 7 months ago