The upload fails because the bucket policy explicitly denies s3:PutObject unless the request includes both the x-amz-server-side-encryption header set to aws:kms and the x-amz-server-side-encryption-aws-kms-key-id header matching the specific KMS key ARN. This is a classic example of using a Deny statement with a condition block to enforce KMS encryption on all objects written to the bucket. Since the developer’s CLI command does not specify any encryption headers, the condition evaluates to false, triggering the explicit Deny and blocking the upload. On the AWS Certified Solutions Architect Professional SAP-C02 exam, this scenario tests your understanding of how S3 bucket policies interact with encryption requirements, especially the critical difference between an explicit Deny (which overrides any Allow) and a default implicit Deny. A common trap is assuming the upload would succeed with default S3-SSE; however, the policy’s condition is strict—it only permits PutObject when KMS with the specific key is used. Memory tip: “Deny without KMS key? No key, no upload.”
SAP-C02 Practice Question: Design Solutions for Organizational Complexity
This SAP-C02 practice question tests your understanding of design solutions for organizational complexity. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Refer to the exhibit. A security engineer applied this bucket policy to an S3 bucket. A developer tries to upload an object using the AWS CLI without specifying any encryption. What is the outcome?
The upload succeeds because the policy only denies if encryption is not KMS.
Why wrong: The first statement denies PutObject if encryption is not equal to aws:kms. Since no encryption is specified, the condition evaluates to true (StringNotEquals), so the Deny applies.
B
The upload fails because the bucket policy is malformed and rejects all requests.
Why wrong: The policy is syntactically correct.
C
The upload fails because the policy denies PutObject when encryption is not KMS with the specific key.
Both statements deny the upload if the encryption does not match the required key. Without encryption, the condition is true, so the upload is denied.
D
The upload succeeds because the developer is using the AWS CLI with default encryption settings.
Why wrong: Default encryption settings are not applied at the time of upload; the request must include the encryption header.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The upload fails because the policy denies PutObject when encryption is not KMS with the specific key.
The bucket policy includes a Deny statement that explicitly denies s3:PutObject unless the request includes the x-amz-server-side-encryption header with value aws:kms and the x-amz-server-side-encryption-aws-kms-key-id header matching the specific KMS key ARN. Since the developer does not specify any encryption, the condition fails, and the Deny statement applies, causing the upload to fail.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The upload succeeds because the policy only denies if encryption is not KMS.
Why it's wrong here
The first statement denies PutObject if encryption is not equal to aws:kms. Since no encryption is specified, the condition evaluates to true (StringNotEquals), so the Deny applies.
✗
The upload fails because the bucket policy is malformed and rejects all requests.
Why it's wrong here
The policy is syntactically correct.
✓
The upload fails because the policy denies PutObject when encryption is not KMS with the specific key.
Why this is correct
Both statements deny the upload if the encryption does not match the required key. Without encryption, the condition is true, so the upload is denied.
Related concept
Read the scenario before looking for a memorised answer.
✗
The upload succeeds because the developer is using the AWS CLI with default encryption settings.
Why it's wrong here
Default encryption settings are not applied at the time of upload; the request must include the encryption header.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often assume a Deny without a matching Allow automatically blocks all requests, but they overlook that the Deny only applies when the condition is met; however, in this case, the condition is met because the request lacks the required encryption headers, so the Deny is triggered.
Detailed technical explanation
How to think about this question
The bucket policy uses the s3:x-amz-server-side-encryption and s3:x-amz-server-side-encryption-aws-kms-key-id condition keys to enforce encryption requirements. When a PutObject request is made without these headers, the condition evaluates to false, triggering the Deny effect. This is a common pattern for enforcing compliance with organizational encryption policies, ensuring that all objects stored in the bucket are encrypted with a specific KMS key.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Design Solutions for Organizational Complexity — This question tests Design Solutions for Organizational Complexity — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The upload fails because the policy denies PutObject when encryption is not KMS with the specific key. — The bucket policy includes a Deny statement that explicitly denies s3:PutObject unless the request includes the x-amz-server-side-encryption header with value aws:kms and the x-amz-server-side-encryption-aws-kms-key-id header matching the specific KMS key ARN. Since the developer does not specify any encryption, the condition fails, and the Deny statement applies, causing the upload to fail.
What should I do if I get this SAP-C02 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This SAP-C02 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 SAP-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.