Courseiva

Interpreting S3 Bucket Policy That Requires SSE-KMS

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::example-bucket/*",
      "Condition": {
        "StringNotEquals": {
          "s3:x-amz-server-side-encryption": "aws:kms"
        }
      }
    }
  ]
}

Refer to the exhibit. A data engineer applies the following S3 bucket policy to an S3 bucket. What does this policy enforce?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Requires that all objects uploaded to the bucket be encrypted with SSE-KMS

The bucket policy uses a Deny effect with a condition that checks if the s3:x-amz-server-side-encryption header is not 'aws:kms'. This means any PutObject request that does not use SSE-KMS will be denied. Therefore, the policy enforces that all objects uploaded must be encrypted with SSE-KMS. Option A is incorrect because the policy does not mention SSE-S3; it denies if not SSE-KMS. Option B is incorrect because it requires SSE-KMS, not SSE-S3. Option C is incorrect because the policy only allows SSE-KMS, not any type of server-side encryption. Option D is correct.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Denies all uploads unless SSE-S3 is used

    Why it's wrong here

    The policy permits uploads using the named algorithm rather than denying everything else; a Deny effect with a NotStringEquals condition would be needed to block other encryption types. It is tempting because Deny statements commonly enforce encryption, but this policy's effect is Allow.

  • ✗

    Allows only SSE-S3 encrypted uploads

    Why it's wrong here

    The policy allows the named algorithm but does not exclude other encryption methods, so uploads using SSE-KMS or SSE-C still succeed. It is tempting because the condition names one algorithm, yet Allow with a matching condition does not restrict alternatives.

  • ✗

    Allows any type of server-side encryption

    Why it's wrong here

    The policy's condition keys restrict uploads to a specific encryption algorithm, so it does not permit every server-side encryption type. It is tempting because bucket policies can allow broad encryption, but the explicit StringEquals on the encryption header narrows the permitted set.

  • ✓

    Requires that all objects uploaded to the bucket be encrypted with SSE-KMS

    Why this is correct

    The policy's Deny on s3:PutObject triggers when the s3:x-amz-server-side-encryption header is absent or does not equal aws:kms, so uploads must specify SSE-KMS encryption. This enforces the SSE-KMS requirement rather than merely AES256 or transport encryption.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every DEA-C01 question from scratch — 1,321 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DEA-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DEA-C01 exam.