
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A solutions architect needs to allow team members to access Amazon S3 buckets in two different AWS accounts: a development account and a production account. The team currently has access to S3 buckets in the development account by using unique IAM users that are assigned to an IAM group that has appropriate permissions in the account.
The solutions architect has created an IAM role in the production account. The role has a policy that grants access to an S3 bucket in the production account.
Which solution will meet these requirements while complying with the principle of least privilege?
A
Attach the Administrator Access policy to the development account users.
B
Add the development account as a principal in the trust policy of the role in the production account.
C
Turn off the S3 Block Public Access feature on the S3 bucket in the production account.
D
Create a user in the production account with unique credentials for each team member.
Explanation:
Correct Answer: B - Add the development account as a principal in the trust policy of the role in the production account.
Cross-Account Access via IAM Roles: This is the AWS best practice for allowing users from one AWS account to access resources in another account. The IAM role in the production account needs to trust the development account.
Principle of Least Privilege: The role already has a policy granting access to the S3 bucket, so users from the development account will only get the permissions defined in that role's policy - no more, no less.
No Credential Sharing: Team members continue using their existing IAM users in the development account and can assume the role in the production account without needing separate credentials.
A. Attach the Administrator Access policy to the development account users.
C. Turn off the S3 Block Public Access feature on the S3 bucket in the production account.
D. Create a user in the production account with unique credentials for each team member.
This approach maintains security, follows AWS best practices, and complies with the principle of least privilege.