Design Secure Architectures

A role reads SSE-KMS objects from several S3 buckets using one customer managed key; S3 Bucket Keys are disabled. Its KMS permissions must permit decryption only through S3 in us-east-1 for objects under reports/ in finance-records, even if another policy allows direct decryption. Which key-policy restriction meets these requirements?

Show the answer

Correct answerC. Deny decryption when either the S3 service condition or the object-prefix encryption context fails, using separate deny statements.

AWhy not this: A conditional allow does not override another applicable allow that permits broader decryption.

BWhy not this: Region and principal restrictions do not restrict use to S3 or to the permitted object prefix.

CWhy this is right: Independent explicit denies block either boundary violation despite another applicable allow.

DWhy not this: Conditions combined this way require both failures, leaving requests that violate only one boundary unblocked.

Separate explicit denies enforce each boundary: kms:ViaService must identify S3 in us-east-1, and kms:EncryptionContext:aws:s3:arn must match the permitted object prefix. A single deny requiring both failures leaves requests with only one failed condition unblocked.