Which AWS IAM changes are needed when creating an instance role to provide this functionality?

Posted by: Pdfprep Category: DVA-C01 Tags: , ,

A development team is building a new application that will run on Amazon EC2 and use Amazon DynamoDB as a storage layer. The developers all have assigned IAM user accounts in the same IAM group. The developers currently can launch EC2 instances, and they need to be able to launch EC2 instances with an instance role allowing access to Amazon DynamoDB.

Which AWS IAM changes are needed when creating an instance role to provide this functionality?
A . Create an IAM permission policy attached to the role that allows access to DynamoD
B . Add a trust policy to the role that allows DynamoDB to assume the role. Attach a permissions policy to the development group in AWS IAM that allows developers to use the iam:GetRole and iam:PassRole permissions for the role.
C . Create an IAM permissions policy attached to the role that allows access to DynamoD
D . Add a trust policy to the role that allows Amazon EC2 to assume the role. Attach a permissions policy to the development group in AWS IAM that allows developers to use the iam:PassRole permission for the role.
E . Create an IAM permission policy attached to the role that allows access to Amazon EC2. Add a trust policy to the role that allows DynamoDB to assume the role. Attach a permissions policy to the development group in AWS IAM that allows developers to use the iam:PassRole permission for the role.
F . Create an IAM permissions policy attached to the role that allows access to DynamoD
G . Add a trust policy to the role that allows Amazon EC2 to assume the role. Attach a permissions policy to the development group in AWS IAM that allows developers to use the iam:GetRole permission for the role.

Answer: B

Explanation:

Reference: https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html

Leave a Reply

Your email address will not be published.