A CodePipeline service role in a tooling account must assume a deployment action role in a production account. Which IAM configuration enables this delegation?
Show the answer
Correct answerC. Allow AssumeRole in tooling and trust that role in production
AWhy not this: iam:PassRole is not the permission used to assume a role across accounts.
BWhy not this: The production role must trust the tooling role; reversing that trust does not authorize the required assumption.
CWhy this is right: The caller's AssumeRole permission and the target role's trust policy jointly authorize delegation.
DWhy not this: An identity policy alone does not establish trust or authorize assumption of the production role.
Cross-account role assumption requires permission for the tooling role to call sts:AssumeRole and a production role trust policy that accepts the tooling role. iam:PassRole delegates a role to a service; it does not authorize cross-account role assumption.