nerdexam
Amazon

DOP-C02 · Question #140

A global company manages multiple AWS accounts by using AWS Control Tower. The company hosts internal applications and public applications. Each application team in the company has its own AWS account

The correct answer is A. Configure the application account's deployment IAM role to have a trust relationship with the. This solution addresses the Unauthorized error by allowing the DevOps account to assume the IAM role in the application account that has the necessary permissions to access the EKS cluster. The other options don't provide the necessary cross-account permissions or correctly confi

Submitted by obi.ng· Mar 6, 2026Security & Compliance

Question

A global company manages multiple AWS accounts by using AWS Control Tower. The company hosts internal applications and public applications. Each application team in the company has its own AWS account for application hosting. The accounts are consolidated in an organization in AWS Organizations. One of the AWS Control Tower member accounts serves as a centralized DevOps account with CI/CD pipelines that application teams use to deploy applications to their respective target AWS accounts. An IAM role for deployment exists in the centralized DevOps account. An application team is attempting to deploy its application to an Amazon Elastic Kubernetes Service (Amazon EKS) cluster in an application AWS account. An IAM role for deployment exists in the application AWS account. The deployment is through an AWS CodeBuild project that is set up in the centralized DevOps account. The CodeBuild project uses an IAM service role for CodeBuild. The deployment is failing with an Unauthorized error during attempts to connect to the cross-account EKS cluster from CodeBuild. Which solution will resolve this error?

Options

  • AConfigure the application account's deployment IAM role to have a trust relationship with the
  • BConfigure the centralized DevOps account's deployment IAM role to have a trust relationship with the
  • CConfigure the centralized DevOps account's deployment IAM role to have a trust relationship with the
  • DConfigure the application account's deployment IAM role to have a trust relationship with the AWS

How the community answered

(27 responses)
  • A
    70% (19)
  • B
    7% (2)
  • C
    19% (5)
  • D
    4% (1)

Explanation

This solution addresses the Unauthorized error by allowing the DevOps account to assume the IAM role in the application account that has the necessary permissions to access the EKS cluster. The other options don't provide the necessary cross-account permissions or correctly configure the roles for accessing EKS.

Topics

#IAM Roles#Cross-Account Access#AWS Organizations#CI/CD Permissions

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice