Security Engineering

A workload in account A is denied when it tries to assume a role in account B. Account A's identity policy allows the assume-role action on that role, and the role's permissions policy already grants the storage access needed. What should the engineer change?

Show the answer

Correct answerA. Add the workload's principal to the trust policy of the role in account B

AWhy this is right: The trust policy defines who may assume the role, and the caller is not listed there, so the assume call fails.

BWhy not this: A permissions boundary only caps the role's effective permissions and cannot grant the ability to assume it.

CWhy not this: Session duration controls how long credentials last once issued and has no effect on the initial denial.

DWhy not this: Storage actions govern what the role can do after assumption, not whether the call to assume it is allowed.

A role can be assumed only by principals its trust policy names, and a cross-account call needs both the caller's permission and that trust entry. The caller's permission exists, so the trust policy is the gap. Adding storage actions to the caller does nothing, because the denial happens at the assume step.