Courseiva
CLF-C02Chapter 9 of 15Objective 3.3

AWS Security Services and Compliance

AWS Security Services and Compliance. For anyone studying the CLF-C02 exam, this topic is the single most important area to understand because it covers how you protect data and how you prove you are following the rules. Without this knowledge, a simple mistake can cost a company money or even get them in legal trouble. You will see at least 10 exam questions on this subject, so mastering these services and the compliance programs is a guaranteed way to boost your score.

12 min read
Intermediate
Updated Jul 23, 2026
Reviewed by Johnson Ajibi· Senior Network & Security Engineer · MSc IT Security

The Security Guard and the Building Manager Analogy

You are a building manager for a large apartment complex. Your job is to keep everyone safe and make sure the building meets all the rules, like fire codes and safety inspections. You hire a security guard named AWS. The security guard does specific jobs: checks IDs at the front door (this is like Identity and Access Management), watches the security cameras (this is like CloudTrail and GuardDuty for monitoring), and locks the doors at night (this is like encryption). The guard also makes sure the building's safety gear meets the local fire department's standards (this is like compliance programs, such as SOC or PCI).

But as the building manager, you don't just hand over the keys and disappear. You are still responsible. You choose which doors to lock and who gets a keycard. You set the rules for the security guard. The guard gives you reports every week on any break-in attempts or strange activity (this is like AWS Security Hub and Detective). If a new law passes about apartment safety, the guard updates their checklist (like AWS Artifact updates compliance reports). You share the cost of this security with the tenants, so it's not one huge bill—just a small amount each month (this is the Shared Responsibility Model).

This whole system means you can focus on being a great building manager while the guard handles the day-to-day security. You never have to worry about building your own security team from scratch. That is exactly what AWS security services do: they are your expert guard, and you set the policy.

How It Actually Works

Let's break down 'AWS Security Services and Compliance' into plain English. First, you need to understand the absolute foundation of all cloud security: the Shared Responsibility Model. Imagine you rent a car. The rental company is responsible for making sure the engine runs, the brakes work, and the tyres are not flat—that's the infrastructure. You, the driver, are responsible for locking the doors, not speeding, and not crashing it—that's your data and configurations. AWS is the rental company. You are the customer. AWS secures the data centres, the servers, the networking cables, and the hypervisor (the software that runs virtual machines). You are responsible for securing your data, your operating system patches (if you manage them), your firewall rules, and who has access to your accounts.

Now, let's look at the specific security services AWS offers. Think of them as tools in a security toolkit. - AWS Identity and Access Management (IAM): This is the door lock. It lets you control who (a user) can do what (an action) on which resource (like an S3 bucket). You can create users, groups, and roles. A 'role' is a temporary identity you give to an application so it can access other services. For example, a web server can assume a role to read from a database without you hard-coding a password into the code. - Amazon GuardDuty: This is the security camera that never sleeps. It uses machine learning to monitor your entire AWS environment for suspicious activity—like someone trying to log in from a strange country or a hacker scanning your ports. It alerts you immediately. - AWS Shield: This is the bodyguard against Distributed Denial of Service (DDoS) attacks. A DDoS attack is when a bad guy sends millions of fake requests to your website to try and crash it. AWS Shield Standard is free and automatically protects all customers. AWS Shield Advanced is a paid upgrade with extra protection and 24/7 support. - AWS Web Application Firewall (WAF): This is the bouncer at the door of your web application. It filters out bad traffic, like SQL injection attacks (where a hacker tries to type malicious code into a login form) or cross-site scripting (where they try to inject scripts into your website). - AWS Key Management Service (KMS): This manages the encryption keys. Encryption is the process of scrambling your data so that only someone with the correct 'key' can read it. KMS creates and stores those keys securely. You use it to encrypt data stored in S3, databases, or even files you send to others. - AWS CloudTrail: This is the black box flight recorder for your AWS account. It logs every single action anyone makes—who clicked what, when, and from where. If something goes wrong, you go to CloudTrail to find out what happened. - AWS Config: This is the compliance cop. It continuously checks your resources against a set of rules you define. For example, you can make a rule that says 'all S3 buckets must be private'. If someone makes a bucket public, AWS Config flags it as 'non-compliant' and can even fix it automatically. - AWS Artifact: This is your compliance filing cabinet. It gives you on-demand access to AWS security and compliance reports, like SOC reports (which prove AWS passed an audit) and PCI reports (which are required if you handle credit card data). - AWS Security Hub: This is the central dashboard. It collects security alerts from GuardDuty, Inspector, Macie (which finds sensitive data like credit card numbers), and several other services into one place. It gives you a single score to measure your overall security health.

Why does this all exist? Before the cloud, companies had to buy physical servers, lock them in a room, hire security guards to watch the door, and pay an auditor to check everything. It was expensive and slow. AWS security services replace that manual work with automated, scalable, and cheaper tools. A startup can now have world-class security in minutes for a few dollars a month.

Compliance programs are the rules. AWS has built its infrastructure to meet hundreds of global standards—like GDPR for Europe, HIPAA for healthcare in the US, and the UK Cyber Essentials. When you use AWS, you inherit these compliant environments. You do not have to prove every screw is tight; you just have to prove you configured your stuff correctly. That is a huge advantage.

Visual breakdown of the Shared Responsibility Model with AWS security services mapped to their responsibilities.

Walk-Through

1

Identify Your Responsibility

Based on the Shared Responsibility Model, determine what AWS handles (physical security, hypervisor) and what you must handle (data, IAM, OS patches, network configurations). This step is where most beginners make mistakes if they skip it.

2

Set Up IAM Users and Roles

Create individual users for every person who needs access. Attach IAM policies that follow least privilege. Create IAM roles for applications (e.g., a web server role) so they can access databases without storing passwords.

3

Enable CloudTrail and Config

Activate CloudTrail in all regions to log every API call. Enable AWS Config with rules for mandatory encryption and bucket privacy. These services create the audit trail and compliance baselines needed for the next steps.

4

Configure Threat Detection and Web Protection

Turn on Amazon GuardDuty for continuous threat monitoring. Set up AWS WAF rules to block malicious web traffic (e.g., SQL injection). Enable AWS Shield Advanced if you need enhanced DDoS protection, especially for public-facing web applications.

5

Set Up Encryption and Key Management

Use AWS KMS to create customer managed keys (CMKs). Assign these keys to encrypt data at rest in services like S3, EBS, and RDS. Enable encryption in transit by using AWS Certificate Manager to provision SSL/TLS certificates for your load balancers and CloudFront distributions.

6

Review Compliance and Generate Reports

Use AWS Artifact to download the compliance reports relevant to your industry (e.g., SOC 2 for general security, PCI DSS for payment data). Validate your configurations using AWS Config compliance dashboards. Aggregate all security alerts in AWS Security Hub to create a single-pane-of-glass view.

What This Looks Like on the Job

Imagine you work as an IT administrator for a small e-commerce company called 'GadgetsUK'. You sell electronics online and take credit card payments. You store customer names, addresses, and payment information. A senior manager walks in and says, 'We need to prove we are PCI DSS compliant to keep processing cards. Also, we were nearly hacked last week. Fix it.'

You log into your AWS account. First, you go to AWS Artifact. You download the AWS SOC 2 and PCI DSS reports. These reports prove that AWS itself is secure and that it handles the physical security of their data centres. This covers the 'infrastructure' side of the Shared Responsibility Model. You can show these to your auditor to prove the part AWS owns is safe.

Next, you tackle your own responsibilities. You go to AWS IAM. You realise your team has been sharing one root login (the master admin account). Huge mistake. You create individual users for every employee—Adam, Beth, and Chris. You assign them specific permissions using IAM policies. Adam, the developer, can only launch EC2 servers. Beth, the accountant, can only see the billing. Chris, the support agent, can only read from the customer database. Nobody has 'full admin' access except you, and you enable Multi-Factor Authentication (MFA) so that logging in requires a code from your phone.

You then turn on Amazon GuardDuty. Within hours, GuardDuty sends an alert: it detected a known malicious IP address trying to connect to your database server. You set up a rule in AWS WAF to block that entire country's IP range from ever reaching your site. You also enable AWS Shield Advanced to handle any potential DDoS attack during the Black Friday sales.

To handle the payment data, you use AWS KMS to create a new encryption key. You set your database to automatically encrypt all new entries with that key. You use AWS Macie to scan your S3 buckets (where you stored old backups) and it finds a CSV file containing unmasked credit card numbers. You delete that file immediately. Finally, you set up AWS Config with a rule that says 'encryption must be enabled on all databases'. If anyone tries to launch an unencrypted database, AWS Config automatically shuts it down or notifies you via Security Hub.

A week later, the auditor asks for evidence. You go to AWS CloudTrail. You pull a report showing exactly who accessed the customer database and when. You also export the AWS Config compliance report showing 100% compliance with 'encrypted databases'. The auditor is happy. The company is safe and compliant. This entire process took you three days. Before the cloud, this would have taken three months and cost thousands of pounds in hardware and consultants.

How CLF-C02 Actually Tests This

The CLF-C02 exam loves testing your understanding of the Shared Responsibility Model. Expect at least 4 to 5 questions that describe a scenario and ask: 'Who is responsible for X?' The trap is that beginners often think AWS is responsible for everything. The correct pattern: AWS is responsible for the security OF the cloud (physical data centres, networking, hypervisor). The customer is responsible for security IN the cloud (data, encryption, operating system patches, IAM configurations, firewall rules).

A specific twist the exam uses is with abstracted services. For example, if you use Amazon RDS (a managed database service), AWS patches the underlying operating system, but you are still responsible for managing database user passwords and for securing the application that connects to it. Remember: you are never responsible for the physical hardware or the hypervisor. AWS always handles that.

The exam will also test which service does what. You need to memorise the core function of each major security service. Traps often mix up services:

CloudTrail vs. Config: CloudTrail logs API calls (who did what and when). Config records resource configurations and compliance (is the bucket public?).

GuardDuty vs. Inspector: GuardDuty is a threat detection service (watches for malicious activity in your network and accounts). Amazon Inspector is a vulnerability assessment service (scans your EC2 instances for software vulnerabilities and missing patches).

Shield vs. WAF: Shield protects against DDoS attacks at the network level. WAF protects against web application attacks (SQL injection, cross-site scripting) at the application level. They often work together but are separate services.

Artifact vs. Security Hub: Artifact provides compliance reports and agreements. Security Hub provides a dashboard of security alerts (its main purpose is centralised management).

Another major exam topic is 'encryption'. Know the difference between encryption at rest (data stored on disk is scrambled, e.g., in S3 or an EBS volume) and encryption in transit (data moving across the network is scrambled, e.g., through HTTPS or TLS). The exam will ask you which AWS service manages keys (KMS) and what AWS Certificate Manager (ACM) does (it provisions and manages SSL/TLS certificates for HTTPS).

Compliance programs are tested by giving you a customer requirement. For example: 'Our customers are in the EU and we must follow EU data privacy laws. Which compliance program must we adhere to?' The answer is GDPR. If you handle credit card data, you need PCI DSS. If you are a US government agency, you need FedRAMP. The exam does not ask you to memorise every single compliance program, but you must know the most common ones: SOC (service organisation controls), PCI DSS (payment card industry), HIPAA (healthcare), GDPR (EU data privacy), and FedRAMP (US government).

Finally, the exam will test the concept of 'least privilege'. This means giving a user or system only the minimum permissions they need to do their job—nothing more. If a question describes a situation where an intern has full admin access, the mistake is a violation of least privilege.

Key Takeaways

The Shared Responsibility Model means AWS secures the cloud infrastructure, and you secure your data and configurations.

AWS IAM is the core service for controlling who can access your resources and what they can do.

Amazon GuardDuty uses machine learning to detect threats like compromised credentials and malicious IP addresses.

AWS Config continuously monitors your resource configurations and checks them against compliance rules you define.

AWS Shield Standard is free and protects all customers from common DDoS attacks automatically.

AWS KMS manages encryption keys and integrates with most other AWS services for encrypting data at rest.

AWS Artifact gives you on-demand access to AWS compliance reports like SOC and PCI DSS to simplify audits.

Least privilege is a fundamental principle: give users and services only the minimum permissions they need to do their job.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Amazon GuardDuty

Monitors for suspicious activity (e.g., unusual API calls, compromised credentials) using machine learning.

Works at the network and account level.

Reactive: alerts you to ongoing threats.

Amazon Inspector

Scans EC2 instances and container images for software vulnerabilities and missing patches.

Works at the instance and application level.

Proactive: checks for potential weaknesses before they are exploited.

AWS Shield Advanced

Protects against DDoS attacks at Layer 3 and Layer 4 (network and transport).

Provides financial protection against scaling costs during an attack.

Includes 24/7 access to the AWS DDoS Response Team (DRT).

AWS WAF

Protects web applications from Layer 7 attacks (e.g., SQL injection).

Uses rules to filter and block malicious HTTP requests.

Integrates with CloudFront, Application Load Balancer, and API Gateway.

Customer Responsibility (Shared Model)

Securing your data and applications.

Configuring IAM users and roles.

Patching your operating system on EC2 (unless using a managed service like RDS).

AWS Responsibility (Shared Model)

Securing physical data centres and servers.

Protecting the hypervisor and virtualisation layer.

Maintaining the network infrastructure and hardware.

AWS Artifact

Provides on-demand access to compliance reports (SOC, PCI, ISO).

Does not generate new alerts or perform scans.

Used primarily for audit and evidence gathering.

AWS Security Hub

Aggregates security alerts from multiple AWS services into one dashboard.

Provides a consolidated security score and findings.

Used primarily for day-to-day security monitoring and remediation.

Encryption at Rest

Scrambles data stored on disk or in databases.

Protects data if the physical storage is stolen or compromised.

Enabled via AWS KMS or server-side encryption (SSE).

Encryption in Transit

Scrambles data as it travels over the network.

Protects data from interception during transmission (e.g., man-in-the-middle attacks).

Enabled via TLS/SSL certificates from AWS Certificate Manager (ACM).

Watch Out for These

Mistake

If I use AWS, I don't need to worry about security at all because AWS handles everything.

Correct

AWS secures the physical infrastructure, but you are responsible for securing your data, configuring access, patching your applications, and following compliance rules. It is a shared responsibility.

This mistake is common because cloud providers market their services as 'secure', leading beginners to believe it is an all-in-one solution, but the security model explicitly divides responsibilities.

Mistake

CloudTrail and AWS Config do the same thing: both track everything that happens in my account.

Correct

CloudTrail logs API calls (who did what and when)—it is an audit trail. AWS Config tracks the configuration state of your resources (is the bucket private?) and checks compliance with rules.

The names 'Trail' and 'Config' sound generic and overlapping, so students assume they are redundant. The exam specifically tests their distinct functions.

Mistake

AWS WAF is the best tool for stopping DDoS attacks.

Correct

AWS WAF protects against application-layer attacks (e.g., SQL injection). AWS Shield is the service designed specifically to protect against DDoS attacks at the network and transport layers.

Both are security services, and beginners often bundle them together. The exam explicitly separates them by attack layer.

Mistake

If I enable encryption on an S3 bucket, I do not need to worry about who has access to the bucket; it is automatically secure.

Correct

Encryption only scrambles the data if someone finds it. It does not control who can list the files or delete the bucket. You must still use IAM policies and bucket policies to manage access.

Beginners confuse 'encryption' with 'access control', assuming one replaces the other. They are complementary but separate layers of security.

Mistake

AWS Artifact is a security scanning tool.

Correct

AWS Artifact is a portal for downloading compliance reports and agreements (e.g., SOC reports, PCI reports). It does not scan anything—it provides documentation.

The name 'Artifact' sounds technical and technical. Beginners imagine a scanning tool rather than a document repository.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the difference between AWS CloudTrail and AWS Config?

CloudTrail records API activity (who did what and when) for auditing. AWS Config records the state of your resources (are they compliant with rules?) and can trigger automatic fixes.

Is the Shared Responsibility Model on the CLF-C02 exam?

Absolutely. It is one of the most heavily tested concepts. You will get several questions asking whether AWS or the customer is responsible for a specific security task.

Do I need to enable AWS Shield separately?

AWS Shield Standard is automatically enabled for every customer at no additional cost. AWS Shield Advanced is a paid service you must subscribe to.

What does AWS WAF protect against?

AWS WAF protects your web applications from common web attacks such as SQL injection, cross-site scripting (XSS), and other request-based exploits.

What does encryption at rest mean?

Encryption at rest means data stored on a disk (e.g., on an EBS volume or in an S3 bucket) is scrambled so that if someone physically steals the disk, they cannot read the data without the decryption key.

Why do I care about AWS Artifact for the exam?

AWS Artifact is a key service for compliance. The exam tests that you know it provides on-demand access to security and compliance reports, not that it performs scans or fixes issues.

What is least privilege?

Least privilege means granting users and systems only the permissions they need to perform their specific tasks, and nothing more. It is a core security principle tested on the CLF-C02.

Terms Worth Knowing

Ready to put this to the test?

You've just covered AWS Security Services and Compliance — now see how well it sticks with free CLF-C02 practice questions. Full explanations included, no account needed.

Done with this chapter?