Configuration Management and IaC

A consulting provider uses one AWS account to assume customer audit roles, and each customer grants its provider role permission to assume their audit role. What should each customer's trust policy require to prevent another customer from tricking the provider into accessing that customer's account?

Show the answer

Correct answerC. An sts:ExternalId condition containing a provider-assigned customer identifier

AWhy not this: SourceAccount addresses supported service-to-service requests, not customer separation for a provider assuming IAM roles.

BWhy not this: Restricting the requested Region does not identify which customer authorized the provider's request.

CWhy this is right: The provider supplies the customer's unique external ID when assuming the role, preventing cross-customer confused deputy access.

DWhy not this: The provider's role belongs to the provider's organization; organizational membership does not distinguish its customers.

A unique, provider-assigned external ID binds each assumption request to the intended customer and mitigates the confused deputy problem. PrincipalOrgID checks organizational membership, not which customer caused the provider to make a request.