AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 382

AnyCompany is using AWS Organizations to create and manage multiple AWS accounts. AnyCompany recently acquired a smaller company, Example Corp. During the acquisition process, Example Corp's single AWS account joined AnyCompany's management account through an Organizations invitation. AnyCompany moved the new member account under an OU that is dedicated to Example Corp.

AnyCompany's DevOps engineer has an IAM user that assumes a role that is named OrganizationAccountAccessRole to access member accounts. This role is configured with a full access policy. When the DevOps engineer tries to use the AWS Management Console to assume the role in Example Corp's new member account, the DevOps engineer receives the following error message: "Invalid information in one or more fields. Check your information or contact your administrator."

Which solution will give the DevOps engineer access to the new member account?

Answer options

Correct answer: C

Explanation

When an AWS account joins an organization via an invitation rather than being created directly within AWS Organizations, the default OrganizationAccountAccessRole is not automatically provisioned. To enable cross-account access, this role must be manually created in the newly invited account, configured with the AdministratorAccess policy, and set up to trust the management account. Options A, B, and D are incorrect because the role does not exist yet in the invited account, and Service Control Policies (SCPs) cannot be used to grant permissions.