Identity and Access Management

A vendor uses one IAM role to access multiple customers' AWS accounts, and each customer trusts that vendor role. What should a customer add to its role trust policy to prevent another vendor customer from causing access to its account?

Show the answer

Correct answerB. An sts:ExternalId condition using a vendor-assigned, customer-unique value

AWhy not this: The vendor's shared outbound address identifies a network source, not the intended customer.

BWhy this is right: The vendor supplies the customer's unique external ID when assuming the role, separating customer contexts.

CWhy not this: The same vendor role serves multiple customers, so its ARN cannot distinguish their requests.

DWhy not this: The organization identifies the vendor's account membership, not which customer caused the request.

A customer-unique external ID in the trust policy mitigates the cross-account confused deputy problem by binding the vendor's request to the intended customer. Restricting the principal ARN to the shared vendor role does not distinguish that role's customers.