Which action must you take in order to have a running Amazon EC2 instance with an lAM role assigned to it?

You launch an Amazon EC2 instance without an assigned AVVS identity and Access Management (lAM) role. Later, you decide that the instance should be running with an lAM role.

Which action must you take in order to have a running Amazon EC2 instance with an lAM role assigned to it?
A . Create an image of the instance, and register the image with an lAM role assigned and an Amazon EBS volume mapping.
B . Create a new lAM role with the same permissions as an existing lAM role, and assign it to the running instance.
C . Create an image of the instance, add a new lAM role with the same permissions as the desired lAM role, and deregister the image with the new role assigned.
D . Create an image of the instance, and use this image to launch a new instance with the desired Lam role assigned.

Answer: D

Explanation:

Reference: http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-usingrole-ec2instanee.html

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>