CLF-C02 domain - 30% of the exam

Security and Compliance

Security and Compliance is 30% of the CLF-C02 exam. These are the objectives it covers, each with practice questions, with every answer explained.

The domain in numbers

84
Practice questions
8
Objectives
9
Easy
75
Medium

Where people go wrong

  • Placing a task on the wrong side of shared responsibility

    The wrong answers put a task on the wrong side of the line. Some hand customer duties to AWS: access permissions, security group rules, the choice to encrypt. Others keep AWS duties with the customer, such as host operating system patching on Amazon RDS or hypervisor maintenance. AWS secures the cloud: hardware, facilities, the hypervisor and, on managed services, the host software. The customer secures what runs in it: identities, permissions, data and network rules, on EC2, RDS and Lambda alike.

    See it in a sample question
  • Confusing security groups and network ACLs

    The wrong options swap the two VPC firewalls. A security group attaches to individual resources, is stateful, so return traffic is permitted automatically, and holds allow rules only. A network ACL sits on the subnet, is stateless, so return traffic needs its own rule, and supports explicit deny rules evaluated in number order. Blocking one troublesome IP address at the subnet boundary for all traffic therefore needs a network ACL. A security group cannot express the deny, and AWS WAF filters only HTTP and HTTPS requests.

    See it in a sample question
  • Swapping AWS WAF and AWS Shield

    The wrong answers trade the two edge protections. AWS WAF inspects individual HTTP and HTTPS requests and blocks exploit patterns such as SQL injection and cross-site scripting. AWS Shield mitigates distributed denial of service floods that aim to take a site offline, and it does not inspect request content. Injection and scripting belong to WAF, and a flood belongs to Shield. Security groups and network ACLs do neither job, and GuardDuty and Inspector report findings without blocking traffic.

    See it in a sample question
  • Mixing up encryption in transit and at rest

    The wrong options answer a question about data on the move with a control for stored data. Encryption at rest, including server-side encryption, an encrypted EBS volume or an AWS KMS key on S3 objects, protects data only once it is written to storage. TLS, whether through HTTPS or a VPN tunnel, encrypts data moving between a browser or phone and a service, or between an application and its database. Access keys, bucket policies and multi-factor authentication control access and encrypt nothing in transit.

    See it in a sample question
  • Confusing the audit, monitoring and threat services

    The wrong options name a nearby service with a different job. AWS CloudTrail records which identity made each API call and when. AWS Config keeps a history of how each resource was configured and evaluates it against rules. Amazon CloudWatch collects performance metrics and raises alarms. GuardDuty analyses logs for threats, Inspector scans instances and images for known vulnerabilities, and Trusted Advisor gives current recommendations, not past settings. A who-made-the-call question answered with Config, or a past-configuration question answered with CloudTrail, is the swap.

    See it in a sample question

Objectives in this domain

What to study

The official documents this domain's practice questions cite most.

Sample questions from this domain

Free sampleSecurity and Compliancemedium

A company moves its database to Amazon RDS so that AWS manages more of the stack. Even with this managed database, which security responsibility does the company still keep?

  • AInstalling operating-system security patches on the server that hosts the database engine.
  • BControlling who may connect to the database and managing the access permissions to its data. Correct
  • CReplacing failed physical disks in the data centre that stores the database files.
  • DMaintaining the virtualisation layer that lets the managed database run on shared hosts.
With managed services such as Amazon RDS the customer still controls access to and permissions on its data. Choosing a managed service shifts patching, host, and hardware duties to AWS, but managing identities, permissions, and who can reach the data always stays with the customer no matter which service is used.

Why A is wrong: This is tempting from the EC2 world, but with Amazon RDS the underlying operating-system patching is handled by AWS.

Why B is correct: Even on a managed service the customer must still govern access, configure database credentials, and decide who can reach the data.

Why C is wrong: This sounds like maintenance work, yet swapping hardware in the facility is purely an AWS infrastructure duty.

Why D is wrong: This is plausible because it is technical, but the hypervisor and host software are managed entirely by AWS.

Free sampleSecurity and Compliancemedium

A network engineer notes that one virtual firewall in AWS automatically allows return traffic for a connection it permitted, so reply packets need no separate rule. Which network security control behaves in this stateful way?

  • AA network access control list, because it tracks each connection and lets the matching reply traffic back through automatically
  • BA security group, because it is stateful and automatically permits the return traffic for any connection it has already allowed Correct
  • CAWS WAF, because it inspects each web request and remembers the session so reply packets flow back without a rule
  • DAWS Shield, because it watches connection state during an attack and lets approved reply traffic back through itself
Security groups are stateful, so allowed inbound traffic automatically permits the matching return traffic. A security group tracks the state of each connection it allows, so when inbound traffic is permitted the corresponding outbound reply is allowed back automatically, unlike a stateless control that needs explicit rules in both directions.

Why A is wrong: Network ACLs are stateless, so return traffic needs its own explicit rule; a learner may confuse the two subnet and instance controls here.

Why B is correct: Security groups are stateful, so once inbound traffic is allowed the matching outbound reply is permitted automatically without a separate rule.

Why C is wrong: AWS WAF filters HTTP and HTTPS requests at the application layer and does not manage instance return traffic, so this misplaces its role.

Why D is wrong: AWS Shield protects against DDoS attacks and does not act as a stateful instance firewall, so it is not the control being described.

Free sampleSecurity and Compliancemedium

A company runs a public web application and wants to block common web exploits such as SQL injection and cross-site scripting by filtering the HTTP requests before they reach the application. Which AWS service is designed for this job?

  • AAmazon GuardDuty, which continuously analyses account activity to detect threats and unusual behaviour
  • BA network access control list, which allows or denies traffic at the subnet boundary by address
  • CAWS WAF, which inspects incoming web requests and blocks ones matching exploit patterns like injection Correct
  • DAWS Shield, which defends applications against distributed denial of service network flood attacks
AWS WAF inspects web requests and blocks common application-layer exploits such as SQL injection. AWS WAF operates at the application layer, examining the content of HTTP and HTTPS requests and applying rules that block patterns associated with common web exploits, which lower-layer controls cannot see.

Why A is wrong: Amazon GuardDuty is a threat detection service that finds suspicious activity but does not filter inbound web requests, so it cannot block these exploits inline.

Why B is wrong: A network ACL filters traffic by IP and port at the subnet level and cannot inspect HTTP content, so it cannot stop application-layer exploits.

Why C is correct: AWS WAF inspects HTTP and HTTPS requests against rules and blocks those matching exploit patterns such as SQL injection and cross-site scripting.

Why D is wrong: AWS Shield mitigates DDoS attacks rather than inspecting request content, so it does not block injection or scripting exploits.

Free sampleSecurity and Compliancemedium

A web application sends sensitive form data from a user browser to an AWS service, and the security team wants the data protected while it moves across the public internet. Which approach meets this need?

  • AEnabling server-side encryption so the data is encrypted once it is written to storage
  • BStoring the data in an encrypted Amazon EBS volume attached to the receiving server
  • CUsing TLS so the connection encrypts the data while it travels over the network Correct
  • DRotating the IAM access keys used by the application on a regular schedule
Encryption in transit, commonly delivered through TLS, protects data while it moves across a network. TLS establishes an encrypted session between client and server, so any data sent over that connection is scrambled while in transit and cannot be read by anyone intercepting the traffic.

Why A is wrong: Server-side encryption protects data only after it lands in storage, so it does nothing to guard the data while it travels across the internet.

Why B is wrong: An encrypted EBS volume secures data at rest on the server, but it leaves the data exposed while it is still in transit to that server.

Why C is correct: Transport Layer Security encrypts the channel between the browser and the service, so the form data is protected in transit as it crosses the public internet.

Why D is wrong: Rotating access keys is good credential hygiene, yet it does not encrypt the network traffic, so the data in transit stays unprotected.

Free sampleSecurity and Compliancemedium

A governance team must keep a continuous history of how each AWS resource is configured and be notified whenever a resource drifts away from an approved setting, such as an Amazon S3 bucket becoming publicly readable. Which AWS service is designed for this?

  • AAmazon GuardDuty, which continuously analyses account activity to detect malicious or unusual behaviour
  • BAWS CloudTrail, which records the API calls made within an account so user actions can be audited
  • CAWS Config, which records resource configurations over time and evaluates them against defined compliance rules Correct
  • DAmazon CloudWatch, which collects metrics and logs so teams can monitor the operational health of workloads
AWS Config records resource configuration history and evaluates resources against rules to detect compliance drift. Config continuously records the configuration state of resources and maintains a history, then evaluates that state against managed or custom rules so the team is alerted when a resource drifts from an approved setting, a capability distinct from API auditing, performance monitoring or threat detection.

Why A is wrong: GuardDuty detects threats from activity logs, but it does not maintain a configuration history or evaluate resources against approved settings, so it does not track configuration drift.

Why B is wrong: CloudTrail captures who made API calls, but it does not store the evolving configuration of each resource or test it against approved settings, so it cannot report drift.

Why C is correct: Config keeps a timeline of each resource's configuration and uses rules to flag when a resource drifts from an approved state, which is exactly the governance requirement described.

Why D is wrong: CloudWatch focuses on performance metrics and operational monitoring, so it does not maintain a configuration record or evaluate resources for compliance drift.

Other domains in this exam

See also the CLF-C02 cert hub, the study guide, and the cheat sheet.

Examworthy is not affiliated with or endorsed by Amazon Web Services. Original, blueprint-aligned practice material only.