A company manages three separate IAM 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 developer account requires read access to the archived documents stored in an Amazon S3 bucket in the production account.
How should access be granted?
- Create an IAM role in the production account and allow EC2 instances in the development account to assume that role using the trust policy. Provide read access for the required S3 bucket to this role.
- Use a custom identity broker to allow Developer IAM users to temporarily access the S3 bucket.
- Create a temporary IAM user for the application to use in the production account.
- Create a temporary IAM user in the production account and provide read access to Amazon S3.
Generate the temporary IAM user's access key and secret key and store these on the EC2 instance used by the application in the development account.
Answer(s): A
Explanation:
https://IAM.amazon.com/premiumsupport/knowledge-center/cross-account-access-s3/
Reveal Solution Next Question