A monitoring vendor assumes a role in a customer's AWS account and uses the same vendor account for many customers. Which trust policy condition best prevents another customer from tricking the vendor into assuming this role?
Show the answer
Correct answerA. Require sts:ExternalId to match a vendor-assigned customer identifier.
AWhy this is right: A vendor-assigned, customer-specific external ID binds the role assumption to the intended customer's context.
BWhy not this: SourceArn identifies a source resource in supported service requests, not the target role in a vendor's AssumeRole request.
CWhy not this: An organization restriction identifies the principal's organization, not the vendor customer on whose behalf it acts.
DWhy not this: A source account restriction does not distinguish customers sharing the vendor account; this key is intended for supported service-to-service requests.
A customer-specific external ID lets the vendor distinguish customers when assuming roles, mitigating the confused deputy problem. Restricting the source account does not distinguish customers using the same vendor account.