AWS CLF Security & Compliance Practice Questions

Practice Security & Compliance questions for the AWS Certified Cloud Practitioner. Every question includes a full explanation of why the correct answer is right and why the tempting distractors are wrong.

30 questions available · medium difficulty · AWS CLF · Free, no registration required

←AWS CLF1 / 10
0 / 0

Question Map

Current
Correct
Incorrect
Flagged
Unanswered
Q1easySecurity & Compliance

A company wants to ensure that every AWS Identity and Access Management (IAM) user must verify their identity using both a password and a one-time code generated by an authentication app. Which IAM feature should the company enable?

Select an answer

On the AWS CLF · 30% of AWS CLF-C02 exam (Domain 2)

Scenario-based single-answer and multiple-response items testing IAM, shared responsibility, encryption, and AWS security services.

What Security & Compliance tests

Security & Compliance is nearly a third of the Cloud Practitioner exam. It tests the Shared Responsibility Model across IaaS/managed services, IAM least-privilege access, encryption at rest and in transit, compliance reporting, and choosing the right AWS security tool for a scenario.

Where test-takers lose points

Drawing the Shared Responsibility line in the wrong place

AWS is always responsible for security OF the cloud (physical data centers, hypervisors, hardware). Customer responsibility FOR the cloud shifts depending on service: on EC2 you patch the OS; on RDS or Lambda AWS patches the underlying OS.

Mixing up CloudTrail, CloudWatch, GuardDuty, and Inspector

CloudTrail audits API calls ('who did what'); CloudWatch monitors performance metrics and logs; GuardDuty detects active threats with ML; Inspector scans EC2/containers/Lambda for software vulnerabilities.

Confusing AWS Artifact with AWS Config or Trusted Advisor

AWS Artifact is the self-service portal for downloading third-party compliance reports (SOC, PCI, ISO); AWS Config tracks resource configuration compliance over time.

How to practise Security & Compliance

Make a one-line flash sheet distinguishing GuardDuty, Inspector, Macie, Shield, WAF, KMS, Secrets Manager, and Artifact—CLF-C02 distractors almost always put three of these in the same question.

Common questions about AWS CLF Security & Compliance

Is Security & Compliance heavily tested on AWS CLF-C02?

Yes. At 30% of scored content, it is the second-largest domain on the exam.

Does AWS handle DDoS protection automatically?

AWS Shield Standard is enabled automatically at no extra cost for basic DDoS mitigation; Shield Advanced adds enhanced protection, 24/7 DDoS response team access, and cost protection.

Sample Security & Compliance Questions with Answers

10 example questions with full explanations. Use the interactive practice above to work through the complete set.

Question 1easy

A company wants to ensure that every AWS Identity and Access Management (IAM) user must verify their identity using both a password and a one-time code generated by an authentication app. Which IAM feature should the company enable?

  • A.IAM Access Analyzer
  • B.Multi-Factor Authentication (MFA)✓
  • C.AWS Identity and Access Management Permission Boundaries
  • D.AWS Single Sign-On (IAM Identity Center)

Correct answer: B

Multi-Factor Authentication (MFA) adds a second layer of verification beyond a password, requiring users to provide a time-based one-time code from an authenticator app or hardware device. This directly addresses the requirement for two-factor identity verification. IAM Access Analyzer identifies unintended resource access, not login security. Permission Boundaries limit the maximum permissions a role or user can have. AWS Single Sign-On (IAM Identity Center) centralizes access across accounts but does not by itself enforce a second factor for all IAM users.

Question 2easy

A security team needs to review a complete history of all API calls made in their AWS account, including who made each call, from which IP address, and at what time. Which AWS service provides this audit trail?

  • A.AWS CloudTrail✓
  • B.Amazon CloudWatch
  • C.AWS Config
  • D.Amazon GuardDuty

Correct answer: A

AWS CloudTrail records every API call made in an AWS account, capturing the identity of the caller, the source IP address, the time of the call, and the parameters used. This makes it the correct choice for building an audit trail of account activity. Amazon CloudWatch monitors performance metrics and logs, not API call history. AWS Config tracks changes to resource configurations over time. Amazon GuardDuty analyzes CloudTrail logs (among other sources) to detect threats, but it does not itself serve as the audit log.

Question 3easy

A startup is hosting a public web application on AWS. They are concerned about Distributed Denial of Service (DDoS) attacks. Which AWS service provides automatic, always-on DDoS protection at no additional cost for all AWS customers?

  • A.Amazon GuardDuty
  • B.AWS WAF
  • C.AWS Shield Standard✓
  • D.AWS Shield Advanced

Correct answer: C

AWS Shield Standard is automatically enabled for all AWS customers at no extra charge and provides protection against the most common and frequently occurring network and transport layer DDoS attacks. AWS WAF protects against web application attacks like SQL injection and cross-site scripting, not DDoS. AWS Shield Advanced is a paid, premium tier that adds enhanced DDoS protection, real-time visibility, and access to the AWS DDoS Response Team (DRT). Amazon GuardDuty is a threat detection service, not a DDoS mitigation tool.

Question 4easy

A healthcare company must provide auditors with official documentation proving that AWS meets HIPAA compliance requirements. Where should the company go to download these official AWS compliance reports and agreements?

  • A.AWS Security Hub
  • B.AWS Trusted Advisor
  • C.AWS Artifact✓
  • D.Amazon Inspector

Correct answer: C

AWS Artifact is a self-service portal where customers can download AWS compliance reports (such as SOC 2, PCI DSS, and ISO certifications) and review and accept agreements like the HIPAA Business Associate Addendum (BAA). This makes it the correct answer for obtaining official compliance documentation. AWS Trusted Advisor provides operational best-practice recommendations. AWS Security Hub aggregates security findings from multiple services. Amazon Inspector scans EC2 instances and containers for software vulnerabilities.

Question 5easy

A developer accidentally stored a database password directly in their application's source code. Which AWS service is specifically designed to securely store, retrieve, and automatically rotate credentials such as database passwords?

  • A.Amazon S3 with server-side encryption
  • B.AWS Key Management Service (KMS)
  • C.AWS CloudHSM
  • D.AWS Secrets Manager✓

Correct answer: D

AWS Secrets Manager is purpose-built for storing, managing, and automatically rotating sensitive credentials such as database passwords, API keys, and other secrets. Applications can retrieve the secret at runtime, removing the need to hardcode credentials. AWS KMS manages cryptographic keys for encrypting data, not for storing application credentials. Amazon S3 with encryption is object storage and is not designed for secret management or automatic rotation. AWS CloudHSM provides dedicated hardware security modules for cryptographic key generation, not credential storage.

Question 6easy

A company wants to protect its web application from common attacks such as SQL injection and cross-site scripting (XSS). Which AWS service should they use?

  • A.AWS Shield Standard
  • B.Amazon GuardDuty
  • C.Amazon Inspector
  • D.AWS WAF✓

Correct answer: D

AWS WAF (Web Application Firewall) is specifically designed to protect web applications from common exploits such as SQL injection and cross-site scripting (XSS) by allowing you to define rules that filter malicious HTTP/S traffic. AWS Shield Standard protects against DDoS attacks at the network layer, not application-layer exploits. Amazon GuardDuty detects threats using log analysis, and Amazon Inspector scans for software vulnerabilities — neither filters incoming web traffic.

Question 7easy

A security team wants to automatically scan their Amazon EC2 instances for known software vulnerabilities and unintended network exposure. Which AWS service fulfills this requirement?

  • A.AWS CloudTrail
  • B.AWS Config
  • C.Amazon Macie
  • D.Amazon Inspector✓

Correct answer: D

Amazon Inspector is an automated vulnerability assessment service that continuously scans EC2 instances and container images for software vulnerabilities (CVEs) and unintended network accessibility. AWS Config tracks resource configuration changes and compliance, not software vulnerabilities. Amazon Macie discovers sensitive data in S3, and AWS CloudTrail logs API activity — neither performs vulnerability scanning on compute resources.

Question 8easy

A cloud administrator needs to ensure that all AWS resources in their account comply with their company's configuration standards and can view a history of configuration changes. Which AWS service provides this capability?

  • A.Amazon CloudWatch
  • B.AWS CloudTrail
  • C.AWS Trusted Advisor
  • D.AWS Config✓

Correct answer: D

AWS Config continuously records the configuration state of AWS resources, evaluates them against desired configuration rules, and maintains a historical timeline of all configuration changes. AWS CloudTrail logs API calls (who did what), not resource configuration states. AWS Trusted Advisor provides best-practice recommendations, and Amazon CloudWatch monitors operational metrics and logs — neither tracks resource configuration history or compliance.

Question 9easy

According to AWS IAM best practices, which of the following actions should a company take immediately after creating a new AWS account?

  • A.Share the root user credentials with the entire IT team for convenience
  • B.Enable multi-factor authentication (MFA) on the root user account and avoid using it for everyday tasks✓
  • C.Create access keys for the root user to use for daily administrative tasks
  • D.Delete the root user account and replace it with an IAM administrator user

Correct answer: B

AWS best practices strongly recommend enabling MFA on the root user immediately after account creation and using it as rarely as possible — only for tasks that specifically require it, such as changing account settings. Creating root access keys is explicitly discouraged because those keys cannot be restricted with policies. The root user cannot be deleted; it is permanently attached to the AWS account. Sharing root credentials violates the principle of least privilege and audit accountability.

Question 10easy

A company stores sensitive customer data in an Amazon S3 bucket and wants to ensure the data is never accidentally made publicly accessible. Which S3 feature is specifically designed to prevent public access at the account or bucket level?

  • A.S3 Versioning
  • B.S3 Transfer Acceleration
  • C.S3 Block Public Access✓
  • D.S3 Object Lock

Correct answer: C

S3 Block Public Access is a set of settings that can be applied at the account or bucket level to override any bucket policies or ACLs that would otherwise grant public access, ensuring objects are never inadvertently exposed to the internet. S3 Versioning keeps multiple versions of an object but does not control public access. S3 Object Lock prevents objects from being deleted or overwritten (WORM compliance), and S3 Transfer Acceleration speeds up uploads using CloudFront edge locations — neither addresses public access control.

More AWS CLF practice topics

All AWS CLF topics & study guide →Timed AWS CLF mock exam →

Full AWS CLF Prep Course

Official

AWS Cloud Practitioner Essentials by Amazon / AWS Skill Builder

Official AWS course covering all CLF-C02 exam domains. Free with AWS Skill Builder subscription. Best for exam alignment.

Free / $29/moView Course →
Affiliate link — we may earn a commission at no extra cost to you. DisclosureCompare all AWS CLF courses →