Question 729 of 1,024
Security and CompliancemediumMultiple ChoiceObjective-mapped

CLF-C02 Security and Compliance Practice Question

This CLF-C02 practice question tests your understanding of security and compliance. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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 company stores sensitive documents in Amazon S3. The security team wants a preventive control that ensures no S3 bucket in the AWS account can ever be configured with a bucket policy that grants public read or write access. This control must apply automatically to all newly created buckets and to existing buckets, without requiring changes to individual bucket policies. Which AWS feature should the security team use?

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

Amazon S3 Block Public Access at the account level

Amazon S3 Block Public Access at the account level is a preventive control that, when enabled, overrides any bucket policies or ACLs that would grant public read or write access. It applies automatically to all existing and newly created buckets in the account without requiring changes to individual bucket policies. This meets the security team's requirement for a blanket, account-wide preventive control.

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.

  • AWS Config with the s3-bucket-public-read-prohibited managed rule

    Why it's wrong here

    AWS Config is a detective service that evaluates resource configurations against rules. The s3-bucket-public-read-prohibited rule can detect buckets that allow public read access, but it does not prevent the bucket from being created or configured with public access. The scenario explicitly requires a preventive control, not a detective one.

    When this WOULD be correct

    A company wants to continuously monitor and automatically remediate S3 buckets that are publicly accessible, using a combination of AWS Config rules and AWS Systems Manager Automation to revoke public access. In that scenario, AWS Config with the s3-bucket-public-read-prohibited rule would be the correct detective and remediation tool.

  • Amazon S3 Block Public Access at the account level

    Why this is correct

    Amazon S3 Block Public Access provides centralized controls that can be applied at the account level. When enabled, these settings override any bucket-level policies that grant public access, preventing both new and existing buckets from ever being made publicly accessible. This is the preventive control described in the scenario.

    Related concept

    Read the scenario before looking for a memorised answer.

  • AWS Identity and Access Management (IAM) policy with a condition that denies s3:PutBucketPolicy for any action that grants public access

    Why it's wrong here

    While an IAM policy with a condition key like s3:PutBucketPublicAccessBlock or a specific condition can deny PutBucketPolicy for public grants, it only applies to IAM users and roles that have the policy attached. It does not prevent the account root user or other authorized principals from making buckets public. It also does not apply to existing buckets that were made public before the policy was created. Therefore, it is not a comprehensive preventive control across the entire account.

    When this WOULD be correct

    This option would be correct in a scenario where the security team needs to restrict specific IAM users or roles from configuring bucket policies that grant public access, while allowing other authorized administrators to manage bucket policies. The control would apply only to those identities, not to all buckets account-wide.

  • Amazon GuardDuty with a finding suppression rule for S3 public access events

    Why it's wrong here

    Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior. It can generate findings when an S3 bucket is made public, but it does not prevent the action from occurring. GuardDuty is a detective and response service, not a preventive control.

    When this WOULD be correct

    A security team wants to automatically detect and alert on any S3 bucket that becomes publicly accessible, and they need a managed threat detection service that can analyze S3 access patterns and generate findings for review. GuardDuty would be the correct choice for this detective requirement.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.

Amazon S3 Block Public Access at the account levelCorrect answer

Why this is correct

Amazon S3 Block Public Access provides centralized controls that can be applied at the account level. When enabled, these settings override any bucket-level policies that grant public access, preventing both new and existing buckets from ever being made publicly accessible. This is the preventive control described in the scenario.

AWS Config with the s3-bucket-public-read-prohibited managed ruleWrong answer — click to see why

Why this is wrong here

AWS Config is a detective control that evaluates and reports on compliance, but it does not prevent the creation of public buckets. It can only detect and alert after a bucket has been made public, not block the action proactively.

★ When this WOULD be the correct answer

A company wants to continuously monitor and automatically remediate S3 buckets that are publicly accessible, using a combination of AWS Config rules and AWS Systems Manager Automation to revoke public access. In that scenario, AWS Config with the s3-bucket-public-read-prohibited rule would be the correct detective and remediation tool.

Why candidates choose this

Candidates may confuse detective controls (AWS Config) with preventive controls (S3 Block Public Access), or assume that a managed rule can block actions, when in fact it only evaluates existing configurations.

AWS Identity and Access Management (IAM) policy with a condition that denies s3:PutBucketPolicy for any action that grants public accessWrong answer — click to see why

Why this is wrong here

An IAM policy with a condition denying s3:PutBucketPolicy for actions granting public access is not a preventive control that applies automatically to all buckets without changes to individual bucket policies. It only restricts who can set bucket policies, but does not prevent existing public access or apply to buckets created by users who are not bound by that IAM policy.

★ When this WOULD be the correct answer

This option would be correct in a scenario where the security team needs to restrict specific IAM users or roles from configuring bucket policies that grant public access, while allowing other authorized administrators to manage bucket policies. The control would apply only to those identities, not to all buckets account-wide.

Why candidates choose this

Candidates may think an IAM policy with a condition can enforce a blanket ban on public access across all buckets, but they overlook that it only applies to the users/roles it is attached to and does not affect existing public access or buckets created by other principals.

Amazon GuardDuty with a finding suppression rule for S3 public access eventsWrong answer — click to see why

Why this is wrong here

GuardDuty is a detective control that identifies threats and generates findings, not a preventive control that blocks public access. It cannot prevent S3 buckets from being configured with public access; it only alerts after the fact.

★ When this WOULD be the correct answer

A security team wants to automatically detect and alert on any S3 bucket that becomes publicly accessible, and they need a managed threat detection service that can analyze S3 access patterns and generate findings for review. GuardDuty would be the correct choice for this detective requirement.

Why candidates choose this

Candidates may confuse GuardDuty's ability to detect public access with a preventive capability, or they may think that a 'finding suppression rule' can block the action, not realizing GuardDuty only monitors and reports.

Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse detective controls (like AWS Config rules) with preventive controls (like S3 Block Public Access), or they assume an IAM policy can universally block public access without considering that it must be attached to every principal and does not cover ACL-based public access.

Trap categories for this question

  • Scenario analysis trap

    AWS Config is a detective service that evaluates resource configurations against rules. The s3-bucket-public-read-prohibited rule can detect buckets that allow public read access, but it does not prevent the bucket from being created or configured with public access. The scenario explicitly requires a preventive control, not a detective one.

Detailed technical explanation

How to think about this question

S3 Block Public Access at the account level works by applying four settings (BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, RestrictPublicBuckets) that override any bucket-level permissions, including those set via bucket policies or ACLs. Under the hood, these settings are enforced at the S3 API layer, meaning any PutBucketPolicy or PutBucketAcl request that would result in public access is rejected with an AccessDenied error. This is particularly useful in multi-account environments where a centralized security team needs to enforce a no-public-access posture across all accounts.

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.

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

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.

Related practice questions

Related CLF-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CLF-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CLF-C02 question test?

Security and Compliance — This question tests Security and Compliance — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Amazon S3 Block Public Access at the account level — Amazon S3 Block Public Access at the account level is a preventive control that, when enabled, overrides any bucket policies or ACLs that would grant public read or write access. It applies automatically to all existing and newly created buckets in the account without requiring changes to individual bucket policies. This meets the security team's requirement for a blanket, account-wide preventive control.

What should I do if I get this CLF-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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More CLF-C02 practice questions

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

This CLF-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 CLF-C02 exam.