The correct answer is to remove the bucket policy statement that grants public read access. This is because S3 Block Public Access compliance is enforced by either disabling bucket policies that allow public access or by enabling the “Block all public access” setting at the bucket or account level. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this scenario tests your understanding that a bucket policy explicitly granting public read access directly violates security compliance, regardless of other features like versioning or lifecycle rules. A common trap is confusing encryption or lifecycle rules with access controls—they are unrelated to blocking public access. Remember the memory tip: “Policy grants access, policy must retract it” — to achieve S3 block public access compliance, you either remove the offending policy statement or toggle the block public access setting, but never rely on encryption or naming to fix a permissions issue.
DOP-C02 Resilient Cloud Solutions Practice Question
This DOP-C02 practice question tests your understanding of resilient cloud solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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.
A DevOps engineer is reviewing a CloudFormation template for an S3 bucket that stores application logs. The bucket has versioning enabled and a lifecycle rule to expire noncurrent versions after 30 days. The bucket policy allows public read access to all objects. The company's security policy requires that all S3 buckets block public access. Which change should the engineer make to comply?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Remove the bucket policy statement that grants public access.
Option A is correct because the bucket policy currently allows public read access. To block public access, the engineer can either remove the bucket policy statement that grants public access or enable the 'Block all public access' setting on the bucket. Option B (removing the lifecycle rule) is unrelated. Option C (enabling encryption) is a good practice but does not block public access. Option D (changing bucket name) does not affect public access.
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.
✗
Change the bucket name to include 'private'.
Why it's wrong here
Bucket name does not affect access permissions.
✗
Enable default encryption on the bucket.
Why it's wrong here
Encryption protects data at rest but does not block public access.
✓
Remove the bucket policy statement that grants public access.
Why this is correct
The bucket policy allows s3:GetObject from anyone (*). Removing it blocks public read access.
Related concept
Read the scenario before looking for a memorised answer.
✗
Remove the lifecycle rule that expires noncurrent versions.
Why it's wrong here
The lifecycle rule is unrelated to public access.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.
Detailed technical explanation
How to think about this question
This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.
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.
Use explanations to understand the rule behind the answer.
TExam Day Tips
→Underline the problem statement mentally.
→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 DOP-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.
Resilient Cloud Solutions — This question tests Resilient Cloud Solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Remove the bucket policy statement that grants public access. — Option A is correct because the bucket policy currently allows public read access. To block public access, the engineer can either remove the bucket policy statement that grants public access or enable the 'Block all public access' setting on the bucket. Option B (removing the lifecycle rule) is unrelated. Option C (enabling encryption) is a good practice but does not block public access. Option D (changing bucket name) does not affect public access.
What should I do if I get this DOP-C02 question wrong?
Identify which DOP-C02 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.
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 DOP-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 DOP-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.