Identity and Access Management

A role in account A cannot download an S3 object in account B encrypted with a customer managed KMS key. The role and bucket policies allow GetObject, and the role allows kms:Decrypt, but the key policy grants access only within account B; no explicit denies apply. What causes the failure?

Show the answer

Correct answerC. The KMS key policy lacks cross-account authorization.

AWhy not this: A role trust policy controls role assumption; a KMS key is not a principal that assumes the role.

BWhy not this: A bucket policy controls access to S3 resources, not authorization to use a KMS key.

CWhy this is right: The caller's IAM permission is insufficient without authorization from the KMS key's account.

DWhy not this: A customer managed key in another account can be used when the required cross-account permissions exist.

Cross-account use of a KMS key requires authorization from the key's account as well as an IAM permission in the caller's account. An S3 bucket policy cannot grant permission to use a KMS key.