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?
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
Q01A company stores sensitive documents in an Amazon S3 bucket. The security team requires that only...EasyQ02A large enterprise uses AWS Organizations to manage multiple accounts. The security team wants to...MediumQ03A company hosts a web application on Amazon EC2 instances behind an Application Load Balancer (AL...EasyQ04A company wants to continuously monitor its AWS accounts for malicious activity and unauthorized ...MediumQ05A company needs to encrypt data at rest in Amazon RDS and manage database credentials securely. T...Medium
Expert