Courseiva
Security and CompliancemediumMultiple ChoiceObjective-mapped

CLF-C02 Security and Compliance Practice Question

A company's compliance team needs to enforce a policy that all Amazon S3 buckets must have 'Block all public access' enabled. If a bucket is created without this setting, the company wants the policy to be automatically remediated within minutes without manual intervention. The solution must check for compliance continuously and apply the fix automatically. Which AWS service should the company use to meet these requirements?

⚠ Common exam trap

Candidates often confuse AWS Config's compliance and remediation capabilities with CloudTrail's logging or GuardDuty's threat detection, failing to recognize that only AWS Config provides continuous evaluation with automatic remediation actions.

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

AWS Config with an AWS Config rule and an automatic remediation action

AWS Config can continuously evaluate the configuration of S3 buckets against a managed rule like 's3-bucket-public-read-prohibited' or 's3-bucket-public-write-prohibited'. When a noncompliant bucket is detected, AWS Config can automatically trigger a remediation action using an AWS Systems Manager Automation document (e.g., 'AWS-DisableS3BucketPublicReadWrite') to enable 'Block all public access' within minutes, without manual intervention.

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 an AWS Config rule and an automatic remediation action

    Why this is correct

    AWS Config can evaluate resource configurations against rules (e.g., 's3-bucket-public-read-prohibited') and automatically trigger a remediation action, such as an SSM Automation document, to fix non-compliant resources like S3 buckets without manual intervention. This matches the requirement.

  • Amazon GuardDuty

    Why it's wrong here

    Amazon GuardDuty is a threat detection service that continuously monitors for malicious activity and unauthorized behavior, using threat intelligence feeds and machine learning to generate security findings. It does not evaluate resource configurations against compliance policies, such as checking whether an S3 bucket is publicly readable, nor does it automatically apply remediation actions to non-compliant resources. GuardDuty can only alert on suspicious activity; it cannot enforce or fix configuration compliance.

    When this WOULD be correct

    A company needs to detect and alert on suspicious API calls or unauthorized access attempts to S3 buckets, such as repeated failed login attempts or data exfiltration patterns. GuardDuty would be the correct service to use.

  • AWS CloudTrail

    Why it's wrong here

    AWS CloudTrail is an auditing service that records every API call made in the account, providing a detailed event history of who made what request and when. It is designed for governance and operational forensics, not for proactive compliance enforcement. CloudTrail does not inspect the configuration state of S3 buckets, compare them against policy rules, or trigger automatic fixes, so it cannot meet the requirement to enforce a compliance policy.

    When this WOULD be correct

    A company needs to audit all API calls that create or modify S3 bucket policies for security analysis and must retain those logs for 90 days. AWS CloudTrail would be the correct service to capture and store the API activity.

  • AWS Identity and Access Management (IAM)

    Why it's wrong here

    AWS Identity and Access Management (IAM) governs authentication and authorization for principals like users, groups, and roles, managing permissions to call AWS APIs. While IAM can restrict who can change an S3 bucket policy, it does not evaluate the bucket's actual configuration, such as whether public access is enabled, and it cannot detect or automatically remediate non-compliant resources. IAM controls access to actions, not the compliance state of AWS resources.

    When this WOULD be correct

    A question requiring enforcement of a policy that only specific IAM roles can create S3 buckets, using IAM policies with conditions to deny creation unless 'Block all public access' is enabled.

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.

AWS Config with an AWS Config rule and an automatic remediation actionCorrect answer

Why this is correct

AWS Config can evaluate resource configurations against rules (e.g., 's3-bucket-public-read-prohibited') and automatically trigger a remediation action, such as an SSM Automation document, to fix non-compliant resources like S3 buckets without manual intervention. This matches the requirement.

Amazon GuardDutyWrong answer — click to see why

Why this is wrong here

Amazon GuardDuty is a threat detection service that monitors for malicious activity, not a compliance enforcement tool. It cannot automatically remediate S3 bucket public access settings.

★ When this WOULD be the correct answer

A company needs to detect and alert on suspicious API calls or unauthorized access attempts to S3 buckets, such as repeated failed login attempts or data exfiltration patterns. GuardDuty would be the correct service to use.

Why candidates choose this

Candidates may confuse GuardDuty's security monitoring capabilities with compliance enforcement, thinking it can also block public access, or they may assume any security service can handle compliance rules.

AWS CloudTrailWrong answer — click to see why

Why this is wrong here

AWS CloudTrail records API activity but does not continuously evaluate resource compliance or automatically remediate misconfigurations. It lacks built-in rules for S3 public access and cannot apply fixes.

★ When this WOULD be the correct answer

A company needs to audit all API calls that create or modify S3 bucket policies for security analysis and must retain those logs for 90 days. AWS CloudTrail would be the correct service to capture and store the API activity.

Why candidates choose this

Candidates may think CloudTrail can detect and respond to policy violations because it logs S3 configuration changes, but they overlook that it provides no automated remediation or continuous compliance evaluation.

AWS Identity and Access Management (IAM)Wrong answer — click to see why

Why this is wrong here

IAM is used for managing user permissions and access control, not for continuous compliance monitoring or automatic remediation of S3 bucket configurations.

★ When this WOULD be the correct answer

A question requiring enforcement of a policy that only specific IAM roles can create S3 buckets, using IAM policies with conditions to deny creation unless 'Block all public access' is enabled.

Why candidates choose this

Candidates may think IAM can enforce all security policies because it controls permissions, but it lacks the continuous monitoring and automated remediation capabilities needed here.

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?”

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

This CLF-C02 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 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.