Medium1 markMultiple Choice

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

An application running on EC2 instances needs to access objects in an S3 bucket. The security team mandates that no hardcoded credentials are used. How should a solutions architect meet this requirement?

Answer options:

A.

Store IAM user credentials in AWS Secrets Manager and retrieve them at runtime.

B.

Assign an IAM role with appropriate S3 permissions to the EC2 instances.

C.

Create an S3 bucket policy that allows access from the EC2 instance's public IP address.

D.

Embed temporary STS tokens in the application code.

How to approach this question

Look for the native AWS method for granting compute resources access to other AWS services.

Full Answer

B.Assign an IAM role with appropriate S3 permissions to the EC2 instances.✓ Correct
An IAM role is an IAM identity that you can create in your account that has specific permissions. An IAM role for EC2 provides temporary credentials to applications running on the instance.

Common mistakes

Thinking Secrets Manager is required for AWS service-to-service authentication.

Practice the full AWS SAA-C03 Practice Exam 5

65 questions · hints · full answers · grading

More questions from this exam