AWS Certified Solutions Architect – Associate (SAA-C02) — Question 732

A solutions architect is using an AWS CloudFormation template to deploy a three-tier web application. The web application consists of a web tier and an application tier that stores and retrieves user data in Amazon DynamoDB tables. The web and application tiers are hosted on Amazon EC2 instances, and the database tier is not publicly accessible. The application EC2 instances need to access the DynamoDB tables without exposing API credentials in the template.
What should the solutions architect do to meet these requirements?

Answer options

Correct answer: B

Explanation

To securely grant Amazon EC2 instances access to Amazon DynamoDB without managing access keys, an IAM role should be assigned to the instances via an EC2 instance profile. Option B is correct because the application tier requires both read and write permissions to manage user data, whereas Option A only provides read permissions. Options C and D are incorrect security practices as they involve passing and exposing long-lived AWS API credentials.