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

You launch an Amazon EC2 instance without an assigned AVVS identity and Access Management (IAM) role.
Later, you decide that the instance should be running with an IAM role. Which action must you take in order to
have a running Amazon EC2 instance with an IAM role assigned to it?

You launch an Amazon EC2 instance without an assigned AVVS identity and Access Management (IAM) role.
Later, you decide that the instance should be running with an IAM role. Which action must you take in order to
have a running Amazon EC2 instance with an IAM role assigned to it?

A.
Create an image of the instance, and register the image with an IAM role assigned and an Amazon EBS
volume mapping.

B.
Create a new IAM role with the same permissions as an existing IAM role, and assign it to the running
instance.

C.
Create an image of the instance, add a new IAM role with the same permissions as the desired IAM 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 IAM role
assigned.

Explanation:

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



Leave a Reply 19

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


Himmat Singh

Himmat Singh

D is Correct One!!

networkmanagers

networkmanagers

D

MJ

MJ

B might not be correct, since its mentioned “same permissions as an existing IAM role”, so questions doesn’t say to use any existing IAM role.

tk

tk

this is outdated , you can now assign a iam role to a running instance through the EC2 services console on aws

Joydeep Chatterjee

Joydeep Chatterjee

D is the right answer.

Joydeep

Joydeep

D is the right answer.

cloud30

cloud30

B. is right answer

jeff

jeff

The question is outdated. The current answer should be B now instead of D.