Security and Compliance

A role in another AWS account can retrieve an SSE-S3 object but cannot retrieve an SSE-KMS object from the same bucket. The customer managed key policy permits the role to decrypt, but the role has only S3 permissions; what should the engineer change?

Show the answer

Correct answerA. Grant kms:Decrypt in the role's IAM policy.

AWhy this is right: The caller's IAM policy must allow kms:Decrypt in addition to the cross-account permission in the key policy.

BWhy not this: kms:GenerateDataKey is used for encryption operations, not for decrypting the stored object's data key.

CWhy not this: An S3 bucket policy cannot grant permissions to perform AWS KMS operations.

DWhy not this: Retrieving the current object does not require s3:GetObjectVersion, and this does not authorize KMS decryption.

Cross-account KMS access requires permission in both the key policy and the caller's IAM policy. The role needs kms:Decrypt to read the encrypted object; kms:GenerateDataKey supports encryption rather than decrypting an existing object.