A software development firm manages a multi-account AWS environment. A developer in the development account needs temporary administrative access to perform emergency troubleshooting on resources in the production account. Which of the following options represents the most secure, AWS-recommended method to achieve this?
- ACreate a dedicated IAM user in the production account with administrative permissions, and configure the developer's development tools with these static credentials.
- Create an IAM role in the production account with a trust policy that allows the development account to assume it, and grant the developer permission to assume this role.Answer
- CEnable multi-factor authentication (MFA) on the production account's root user, and share the root user credentials with the developer for temporary troubleshooting access.
- DDo not configure permissions, as AWS automatically manages cross-account resource access under the infrastructure security portion of the AWS Shared Responsibility Model.
Answer
Create an IAM role in the production account with a trust policy that allows the development account to assume it, and grant the developer permission to assume this role.
The correct method is to create an IAM role in the production account that trusts the development account, and then allow the developer to assume this role. This approach follows the security best practice of using temporary credentials (via AWS STS) for cross-account delegation, eliminating the need to create static credentials or duplicate users across multiple accounts.
Step-by-Step Solution
Key Concept
Cross-account access delegation using IAM roles and temporary security credentials.
Estimated Time:1m 30s