AWS Certified Solutions Architect – Professional — Question 454

An administrator is using Amazon CloudFormation to deploy a three tier web application that consists of a web tier and application tier that will utilize Amazon
DynamoDB for storage when creating the CloudFormation template.
Which of the following would allow the application instance access to the DynamoDB tables without exposing API credentials?

Answer options

Correct answer: C

Explanation

Using an IAM Role attached to an EC2 instance via an Instance Profile is the AWS-recommended best practice for granting permissions to applications running on EC2 without exposing long-lived credentials. In CloudFormation, this is achieved by defining an IAM Role and referencing the corresponding Instance Profile in the Launch Template or EC2 Instance properties. Options B and D are incorrect because they involve passing or exposing sensitive API keys, while Option A describes the association slightly less accurately in the context of direct CloudFormation resource property definitions compared to C.