A broker assumes one shared role to issue temporary credentials for tenant-specific S3 prefixes. Without changing the role or bucket policies, how should it restrict each session to its tenant's prefix?
Show the answer
Correct answerC. Pass a session policy allowing access only to the tenant's prefix.
AWhy not this: Denying the tenant's own prefix blocks the intended access while leaving other role permissions unrestricted.
BWhy not this: An external ID does not independently limit the S3 permissions of the resulting session.
CWhy this is right: An allow-only session policy narrows the role's identity-based permissions to the specified tenant prefix.
DWhy not this: A role session name labels the session but does not independently restrict its permissions.
A session policy limits the session to the intersection of the role's permissions and the session policy's permissions. An external ID controls role assumption when checked by the trust policy; it does not independently restrict S3 object access.