Easy1 markMultiple Choice

AWS SAA-C03 · Question 06 · Domain 1.1: Secure Access

An application running on Amazon EC2 needs to access an Amazon DynamoDB table. What is the MOST secure way to grant the EC2 instance access to DynamoDB?

Answer options:

A.

Store IAM access keys in the EC2 instance's environment variables.

B.

Create an IAM role with DynamoDB permissions and attach it to the EC2 instance profile.

C.

Create an IAM user for the application and store the credentials in an S3 bucket.

D.

Configure a VPC endpoint for DynamoDB and allow all traffic.

How to approach this question

Always use IAM roles for AWS resources to avoid managing long-term credentials.

Full Answer

B.Create an IAM role with DynamoDB permissions and attach it to the EC2 instance profile.✓ Correct
Attaching an IAM role to an EC2 instance profile allows applications running on the instance to securely access AWS services using temporary credentials managed by AWS.

Common mistakes

Selecting access keys, which violates the best practice of avoiding long-term credentials.

Practice the full AWS SAA-C03 Practice Exam 3

65 questions · hints · full answers · grading

More questions from this exam