AWS Certified SysOps Administrator – Associate — Question 298

A company has a multi-account environment. Account A has a production application that is hosted on an Amazon EC2 instance. The application needs to query data in an Amazon DynamoDB table that is hosted in Account B.

A SysOps administrator needs to provide the EC2 instance in Account A with access to the DynamoDB table in Account B.

What is the MOST secure solution that will meet these requirements?

Answer options

Correct answer: B

Explanation

Option B is correct because Amazon DynamoDB does not support resource-based policies, making Option C incorrect. Cross-account access is securely established by allowing the EC2 instance in Account A to assume an IAM role in Account B using the sts:AssumeRole API. Option D is highly discouraged as using long-lived static credentials is an insecure practice compared to temporary IAM credentials.