AWS Certified Security – Specialty — Question 124

A company manages three separate AWS accounts for its production, development, and test environments. Each Developer is assigned a unique IAM user under the development account. A new application hosted on an Amazon EC2 instance in the development account requires read access to the archived documents stored in an Amazon S3 bucket in the production account.
How should access be granted?

Answer options

Correct answer: A

Explanation

Option A is correct because creating an IAM role in the production account allows the EC2 instance in the development account to assume the role with the necessary permissions, following best practices for cross-account access. The other options either create unnecessary complexity (B), do not follow best practices (C and D), or involve managing static credentials, which is less secure.