A developer using an IAM user in a development account (Account A) requires temporary access to perform administrative tasks on an Amazon DynamoDB table located in a production account (Account B). To adhere to AWS security best practices and the principle of least privilege, which of the following configuration steps must be implemented? (Select TWO.)
- In the production account (Account B), create an IAM role with a trust policy that allows the IAM user in the development account (Account A) to assume the role.Cevap
- In the development account (Account A), attach an identity-based policy to the developer's IAM user that allows the sts:AssumeRole action targeting the role in Account B.Cevap
- CIn the production account (Account B), configure the AWS Account Root User to grant temporary administrative privileges directly to the developer's identity.
- DIn the development account (Account A), configure a resource-based policy directly on the developer's IAM user to permit inbound administrative access from Account B.
- EIn the production account (Account B), create a new IAM user with administrative credentials and save their long-term access keys in the development account's shared configuration files.
Cevap
To establish secure cross-account access, you must create an IAM role in the production account (Account B) with a trust policy that permits the development account user to assume it, and attach an identity-based policy in the development account (Account A) allowing the user to call the sts:AssumeRole action on the production role.
The correct steps require establishing trust between the two accounts using an IAM role and granting the user permissions to assume that role. Creating an IAM role in the destination account with a trust policy defines who can assume the role. Attaching an identity-based policy in the source account allowing the sts:AssumeRole action gives the source user the ability to request the role's temporary credentials. This combination enables secure cross-account access without using permanent credentials.
Adım Adım Çözüm
Anahtar Kavram
Cross-account access delegation using IAM roles and temporary security credentials