AWS Certified Developer Associate · Free Practice Question Medium
Question 62
A company stores all personally identifiable information (PII) in an Amazon DynamoDB table named PII in Account A. Developers are working on an application that is running on Amazon EC2 instances in Account B. The application in Account B requires access to the PII table. An administrator in Account A creates an IAM role named AccessPII that has permission to access the PII table. The administrator also creates a trust policy that specifies Account B as a principal that can assume the role. Which combination of steps should the developers take in Account B to allow their application to access the PII table? (Choose two.)
- A Allow the EC2 IAM role the permission to assume the AccessPII role.
- B Include the AssumeRole API operation in the application code logic to obtain temporary credentials to access the PII table.
- C Include the GetSessionToken API operation in the application code logic to obtain temporary credentials to access the PII table.
- D Allow the EC2 IAM role the permission to access the PII table.
- E Include the AWS API in the application code logic to obtain temporary credentials from the EC2 IAM role to access the PII table.
Reveal correct answers
Correct answers: A, B
Explanation
To allow their application in Account B to access the PII table in Account A, the developers should take the following steps: 1. **Allow the EC2 IAM role the permission to assume the AccessPII role.** 2. **Include the AssumeRole API operation in the application code logic to obtain temporary credentials to access the PII table.** These steps ensure that the application can assume the AccessPII role and obtain the necessary temporary credentials to access the PII table securely.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
