The IAM Policy Simulator shows that a role's identity policy allows s3:GetObject on a bucket in the same account, and the bucket policy also allows it. Live GetObject requests for objects encrypted with SSE-KMS under a customer managed key return AccessDenied, while unencrypted objects in the bucket download. What explains the failure?
Show the answer
Correct answerB. The role lacks kms:Decrypt on the KMS key, which the simulation did not test.
AWhy not this: GetObjectVersion is needed for reading a specific version, not for decrypting SSE-KMS objects.
BWhy this is right: S3 calls KMS with the caller's permissions, so the role needs kms:Decrypt; simulating s3:GetObject alone does not show this.
CWhy not this: KMS permissions come from the key policy and IAM policies; a bucket policy cannot grant them.
DWhy not this: SSE-KMS objects can be read over any S3 endpoint the caller is allowed to use.
Reading an SSE-KMS object requires kms:Decrypt on the key in addition to s3:GetObject, so the request fails when neither the role's policies nor the key policy allow it. The simulation evaluated only the s3:GetObject action. A bucket policy cannot grant KMS permissions, and SSE-KMS objects do not require a VPC endpoint.