ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 898 - SAA-C03 discussion

Report
Export

A company runs an application on EC2 instances that need access to RDS credentials stored in AWS Secrets Manager.

Which solution meets this requirement?

A.

Create an IAM role, and attach the role to each EC2 instance profile. Use an identity-based policy to grant the role access to the secret.

Answers
A.

Create an IAM role, and attach the role to each EC2 instance profile. Use an identity-based policy to grant the role access to the secret.

B.

Create an IAM user, and attach the user to each EC2 instance profile. Use a resource-based policy to grant the user access to the secret.

Answers
B.

Create an IAM user, and attach the user to each EC2 instance profile. Use a resource-based policy to grant the user access to the secret.

C.

Create a resource-based policy for the secret. Use EC2 Instance Connect to access the secret.

Answers
C.

Create a resource-based policy for the secret. Use EC2 Instance Connect to access the secret.

D.

Create an identity-based policy for the secret. Grant direct access to the EC2 instances.

Answers
D.

Create an identity-based policy for the secret. Grant direct access to the EC2 instances.

Suggested answer: A

Explanation:

Option A uses an IAM role attached to the EC2 instance profile, enabling secure and automated access to Secrets Manager. This is the recommended approach.

Option B uses IAM users, which is less secure and harder to manage.

Option C is not practical for accessing secrets programmatically.

Option D violates best practices by granting direct access to the EC2 instance.

asked 29/11/2024
Yener Yuksel
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first