CLF-C02 Security and Compliance Practice Question
A company uses AWS Organizations to manage multiple accounts. The security team wants to continuously monitor the configurations of all AWS resources across the organization and receive alerts when a resource violates a compliance rule. For example, they want to ensure that all Amazon RDS databases are not publicly accessible, and that any new RDS instance created with public access enabled is automatically flagged. The team does not want to build custom scripts for monitoring. Which AWS service should the security team use to meet these requirements?
⚠ Common exam trap
It's easy for candidates to confuse AWS CloudTrail (which logs API calls) with AWS Config (which tracks resource state), leading them to choose CloudTrail because they think monitoring 'configurations' means tracking changes, but CloudTrail does not evaluate compliance rules or alert on resource state violations.
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
AWS Config is the correct service because it provides continuous monitoring and recording of AWS resource configurations, and it can evaluate those configurations against custom or managed rules (e.g., 'rds-instance-public-access-check'). When a resource like an RDS instance violates a rule (e.g., being publicly accessible), AWS Config can automatically flag it and trigger an alert via Amazon SNS, all without requiring custom scripts.
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 CloudTrail
Why it's wrong here
AWS CloudTrail is a service that records an immutable, detailed audit trail of every API action taken in your AWS account, capturing the identity of the caller, the time of the call, and the response. It is essential for security investigations, governance, and operational troubleshooting, but it does not proactively evaluate the configuration of resources against desired compliance rules, and it has no built-in mechanism to flag a resource as noncompliant or trigger remediation. CloudTrail tells you what actions were performed, but it does not tell you whether the resulting state of the infrastructure meets your policy requirements.
When this WOULD be correct
A company needs to audit all API calls made in their AWS account to detect unauthorized access or changes, and they require a record of who made what change and when for forensic analysis. AWS CloudTrail would be the correct service to meet these requirements.
- ✓
AWS Config
Why this is correct
AWS Config provides continuous monitoring and evaluation of AWS resource configurations against desired rules. It supports managed rules for common compliance checks (e.g., public RDS instances) and can automatically trigger remediation, meeting the requirement without custom scripts.
- ✗
AWS Trusted Advisor
Why it's wrong here
AWS Trusted Advisor inspects your AWS environment and makes recommendations based on AWS best practices. It checks for cost optimization, performance, security, and fault tolerance, but it does not provide continuous, custom compliance monitoring with auto-remediation.
When this WOULD be correct
A company wants a high-level review of their AWS environment against AWS best practices (e.g., cost optimization, performance, security) without needing to define custom rules. They need a dashboard that shows overall compliance status and recommendations for improvement, not continuous monitoring or automated remediation.
- ✗
Amazon GuardDuty
Why it's wrong here
Amazon GuardDuty is a managed threat detection service that continuously ingests and analyzes VPC Flow Logs, DNS query logs, and AWS CloudTrail management events to identify anomalous and malicious activity, such as crypto-mining, compromised EC2 instances, or unauthorized API calls. It does not, however, evaluate the current configuration state of resources like RDS instances against your own custom compliance policies, nor does it detect configuration drift or perform remediation. GuardDuty focuses on active threats and behavioral anomalies, not on static resource configuration or adherence to internal rules.
When this WOULD be correct
A company wants to continuously monitor AWS accounts for malicious or unauthorized activity, such as detecting compromised credentials, unusual API calls, or potential crypto mining. They need automated threat detection without managing security software.
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 ConfigCorrect answer▾
Why this is correct
AWS Config provides continuous monitoring and evaluation of AWS resource configurations against desired rules. It supports managed rules for common compliance checks (e.g., public RDS instances) and can automatically trigger remediation, meeting the requirement without custom scripts.
✗AWS CloudTrailWrong answer — click to see why▾
Why this is wrong here
AWS CloudTrail records API activity and provides audit logs, but it does not continuously evaluate resource configurations against compliance rules or automatically flag non-compliant resources like publicly accessible RDS instances.
★ When this WOULD be the correct answer
A company needs to audit all API calls made in their AWS account to detect unauthorized access or changes, and they require a record of who made what change and when for forensic analysis. AWS CloudTrail would be the correct service to meet these requirements.
Why candidates choose this
Candidates may confuse monitoring API activity (CloudTrail) with monitoring resource configurations (Config), or think that logging API calls can be used to detect configuration violations, but CloudTrail does not evaluate configurations against rules.
✗AWS Trusted AdvisorWrong answer — click to see why▾
Why this is wrong here
AWS Trusted Advisor provides best-practice checks and recommendations, but it does not continuously monitor resource configurations or trigger alerts for compliance violations like public RDS instances. It lacks the ability to define custom rules and automatically flag non-compliant resources in real time.
★ When this WOULD be the correct answer
A company wants a high-level review of their AWS environment against AWS best practices (e.g., cost optimization, performance, security) without needing to define custom rules. They need a dashboard that shows overall compliance status and recommendations for improvement, not continuous monitoring or automated remediation.
Why candidates choose this
Candidates may confuse Trusted Advisor's security checks (e.g., RDS public access check) with continuous compliance monitoring, not realizing that Trusted Advisor provides periodic checks and recommendations rather than real-time, customizable rule evaluation and alerts.
✗Amazon GuardDutyWrong answer — click to see why▾
Why this is wrong here
Amazon GuardDuty is a threat detection service that monitors for malicious activity and unauthorized behavior, not for compliance configuration rules like RDS public accessibility. It does not evaluate resource configurations against compliance rules.
★ When this WOULD be the correct answer
A company wants to continuously monitor AWS accounts for malicious or unauthorized activity, such as detecting compromised credentials, unusual API calls, or potential crypto mining. They need automated threat detection without managing security software.
Why candidates choose this
Candidates may confuse GuardDuty's monitoring and alerting capabilities with compliance monitoring, assuming it can check configuration rules, but its focus is on security threats, not configuration compliance.
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?”
Go deeper
Related to this question
About these practice questions
Courseiva writes every CLF-C02 question from scratch — 988 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 →
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.