PrepAway - Latest Free Exam Questions & Answers

How can the user achieve this?

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?

PrepAway - Latest Free Exam Questions & Answers

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

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 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.

7 Comments on “How can the user achieve this?

  1. Justin says:

    Definitely A. InstanceInitiatedShutdownBehavior just determines what happens when it shutsdown (stop or terminate).




    0



    0
  2. nagarjunadn says:

    The answer is A. If the user is terminating the instance using AWS Management Console, the CLI, and the API.

    And the answer will be D, if the user is terminating from command line.
    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

Leave a Reply

Your email address will not be published. Required fields are marked *