Security and Compliance (30%)
Domain 2 is 30% of the scored content of the AWS Certified Cloud Practitioner (CLF-C02) exam. AWS facts were checked against current AWS documentation in November 2026.
| Task | Statement |
|---|---|
| 2.1 | Understand the AWS shared responsibility model |
| 2.2 | Understand AWS Cloud security, governance, and compliance concepts |
| 2.3 | Identify AWS access management capabilities |
| 2.4 | Identify components and resources for security |
Overview
Domain 2: Security and Compliance AWS Certified Cloud Practitioner (CLF-C02): who secures what, how to prove compliance, and how to control access
Welcome to Domain 2 of the AWS Certified Cloud Practitioner exam, CLF-C02: Security and Compliance. It is worth 30 percent of the scored content, the second-largest domain, so expect about 15 of the 50 scored questions.
Task 2.1 is the AWS shared responsibility model: what AWS secures, what you secure, and how that line moves between services such as Amazon EC2, Amazon RDS and AWS Lambda.
Task 2.2 is security, governance and compliance concepts: where to find compliance reports, encryption at rest and in transit, logging and auditing, and the services that find threats.
Task 2.3 is access management: IAM users, groups, roles and policies, protecting the root user, least privilege, multi-factor authentication, IAM Identity Center and federation.
Task 2.4 is security components and resources: AWS WAF, AWS Shield, AWS Firewall Manager, Amazon GuardDuty, third-party tools in AWS Marketplace, and where AWS publishes security information.
Many questions in this domain simply ask who is responsible for a task, AWS or the customer. The shared responsibility model is the key.
And many others turn on a verb. Detect threats, protect from attacks, record API calls, track configuration, encrypt data: each verb points to a different service. This lesson pairs every service with its verb.
Exam key takeaway: Domain 2 asks who is responsible, AWS or you, which service matches a security verb, and how to lock down identities with IAM, MFA and least privilege.
2.1 Understand the AWS shared responsibility model
The Shared Responsibility Model Task 2.1 · AWS secures the cloud itself; you secure what you put in it
Aws: Security Of The Cloud - Physical data centers, guards and environmental controls - Hardware: servers, storage and network devices - The global infrastructure: Regions, Availability Zones, edge locations - The virtualization layer (hypervisor) - The software that runs managed services The AWS shared responsibility model splits security between AWS and the customer. AWS is responsible for security of the cloud: the physical data centers, the hardware, the network, the Regions, Availability Zones and edge locations, the virtualization layer, and the software that runs its managed services.
Customer: Security In The Cloud - Your data, and how it is classified and encrypted - Identity and access: IAM users, roles, policies, MFA - Guest operating system patches on Amazon EC2 - Applications you install, and their configuration - Network settings: security groups, network ACLs, firewalls The customer is responsible for security in the cloud: your data and how it is encrypted, who can access it through IAM, the guest operating system and its patches on Amazon EC2, your applications, and network settings such as security groups. One rule never changes: you always own your data and your access settings.
Exam key takeaway: AWS secures the cloud: facilities, hardware, network and virtualization. You secure what is in it: data, identities, guest operating systems, applications and firewall settings.
How Responsibility Shifts by Service Task 2.1 · The more managed the service, the more AWS does
| Task | Amazon Ec2 | Amazon Rds | Aws Lambda |
|---|---|---|---|
| Physical hardware and network | AWS | AWS | AWS |
| Operating system patches | Customer | AWS | AWS |
| Database engine patches | Customer (if self-installed) | AWS (in a maintenance window you choose) | Not applicable |
| Runtime and scaling | Customer | Shared: you pick size, AWS runs it | AWS |
| Your code and its settings | Customer | Customer | Customer |
| Data, encryption choices, IAM permissions | Customer | Customer | Customer |
Responsibility shifts with the service. Compare three. For all of them, AWS owns the physical hardware and the network.
Operating system patches are the big difference. On Amazon EC2, an infrastructure service, you patch the guest operating system. On Amazon RDS and AWS Lambda, AWS does.
For a database you install yourself on EC2, you patch the database engine too. On Amazon RDS, AWS patches the engine during a maintenance window you choose.
Scaling and the runtime: on EC2 that is yours, on RDS you choose the instance size and AWS runs it, and on Lambda AWS handles it completely.
Your own code and its configuration are always yours, even on Lambda.
And your data, your encryption choices and your IAM permissions are always yours, on every service.
Exam key takeaway: On Amazon EC2 you patch the guest OS; on Amazon RDS and AWS Lambda AWS patches it. Data, encryption choices, IAM permissions and your own code always stay with you.
Inherited, Shared and Customer Controls Task 2.1 · AWS also splits IT controls three ways, and some responsibilities are shared
- Inherited controls: AWS also describes three kinds of IT controls. Inherited controls are ones you take over completely from AWS. Physical and environmental controls, such as data center security, power and cooling, are the standard example.
- Shared controls: Shared controls apply to both layers, each in its own context. Patch management: AWS patches the infrastructure, and you patch your guest operating systems and applications. Configuration management: AWS configures its devices, and you configure your operating systems, databases and applications. And awareness and training: AWS trains its employees, and you train yours.
- Customer-specific controls: Customer-specific controls depend on the application you deploy, such as routing or zoning data into specific security environments. Those are yours alone.
Exam key takeaway: Physical and environmental controls are inherited from AWS; patching, configuration management, and awareness and training are shared, with each party responsible for its own layer.
2.2 Understand AWS Cloud security, governance, and compliance concepts
Finding Compliance Information Task 2.2 · Where to get evidence that AWS meets a standard, by industry and by country
- AWS Artifact: Where do you find proof that AWS meets a standard? AWS Artifact is a free, self-service portal in the console for AWS security and compliance reports, such as S O C reports, I S O certifications and P C I attestations. You can also review and accept agreements there, such as the business associate addendum for HIPAA.
- AWS Compliance programs: The AWS compliance programs pages list the standards AWS supports by industry, such as healthcare or finance, and by country or region. Compliance needs differ by geography and industry, and these pages are where you check.
- Services in scope: Compliance also varies by service. Each program lists which AWS services are in scope, so check that the specific services you use are covered.
- Your part of compliance: Remember the shared responsibility model here too. AWS compliance covers the infrastructure, but your workload must still be configured to comply.
- AWS Config rules: To check your own resources, AWS Config evaluates resource settings against rules, and reports which resources do not comply, for example any bucket without encryption.
- Security Hub CSPM: And AWS Security Hub C S P M checks your accounts against security standards, such as AWS Foundational Security Best Practices, C I S and P C I D S S, and reports findings.
Exam key takeaway: AWS Artifact holds AWS compliance reports and agreements, compliance programs differ by country, industry and service, and your own configuration is still your responsibility.
Encryption at Rest and in Transit Task 2.2 · Two places to protect data, and the services that do it
| Option | What It Protects | On Aws |
|---|---|---|
| Encryption at rest | Stored data: disks, objects, databases, backups | Amazon S3, Amazon EBS, Amazon RDS, DynamoDB all support it |
| Encryption in transit | Data moving over a network | TLS (HTTPS) to AWS endpoints; certificates from ACM |
| Amazon S3 default | Every new object uploaded since January 5, 2023 | Encrypted automatically with SSE-S3 at no cost |
| AWS KMS | Creates and controls encryption keys used by AWS services | Managed keys, with key use logged in CloudTrail |
| AWS CloudHSM | Dedicated hardware security modules you control | For strict rules that need single-tenant hardware |
| AWS Certificate Manager | Issues and renews TLS certificates | Public certificates for AWS integrated services are free |
Encryption protects data in two places. Encryption at rest protects stored data: disks, objects, databases and backups. Amazon S3, Amazon EBS, Amazon RDS and DynamoDB all support it.
Encryption in transit protects data as it moves over a network, using T L S, which is what H T T P S uses. AWS Certificate Manager provides the certificates.
Amazon S3 now encrypts every new object automatically. Since January 5, 2023, new uploads are encrypted with S3 managed keys, at no extra cost.
AWS Key Management Service, K M S, creates and controls the encryption keys that AWS services use, and every use of a key is logged in AWS CloudTrail.
AWS Cloud H S M gives you dedicated hardware security modules that only you control, for regulations that require single-tenant key hardware.
And AWS Certificate Manager issues and renews the T L S certificates used for encryption in transit, with free public certificates for integrated services such as load balancers and Amazon CloudFront.
Exam key takeaway: At rest protects stored data, in transit protects data on the network with TLS. AWS KMS manages keys, CloudHSM gives dedicated key hardware, and ACM provides TLS certificates.
Logs: Monitor, Audit and Report Task 2.2 · Where security-related logs and evidence live, and which question each service answers
| Service | The Question It Answers | Exam Cue |
|---|---|---|
| Amazon CloudWatch | How are my resources performing? Alert me on a threshold. | Metrics, logs, alarms, dashboards |
| AWS CloudTrail | Who did what, when, and from where, in my account? | "Who deleted the bucket?" (API calls) |
| AWS Config | What did this resource look like over time? Does it comply? | Configuration history and rules |
| IAM credential report | Which users exist, and what is the status of their passwords, keys and MFA? | Account-wide user report |
| IAM last accessed data | Which permissions were never used? | Remove unused access (least privilege) |
The exam guide pairs governance with three verbs: monitoring, auditing and reporting. For monitoring, Amazon CloudWatch collects metrics and logs, and raises alarms when a threshold is crossed.
For auditing, AWS CloudTrail records API calls in your account: who did what, when and from where. If the question asks who deleted a resource, the answer is CloudTrail.
AWS Config records the configuration of your resources over time, and checks them against rules. If the question asks what a security group looked like last week, the answer is Config.
For reporting, IAM has access reports. The credential report lists every user in the account and the status of their passwords, access keys and MFA devices.
And last accessed information shows which services a user or role has actually used, so you can remove permissions that are never used.
Where Logs Go: CloudTrail delivers log files to an Amazon S3 bucket and can send them to CloudWatch Logs
Exam key takeaway: CloudWatch monitors performance, CloudTrail records who called which API, AWS Config tracks configuration history and compliance, and IAM access reports show credentials and unused permissions.
Services That Find Security Issues Task 2.2 · How customers secure resources: detect threats, find vulnerabilities, see everything in one place
- Amazon GuardDuty: Now the services that find security issues, each with its verb. Amazon GuardDuty detects threats. It continuously analyzes CloudTrail events, V P C flow logs and D N S logs with machine learning to find malicious activity, such as a compromised instance.
- Amazon Inspector: Amazon Inspector scans for vulnerabilities: known software flaws and unintended network exposure on EC2 instances, container images in Amazon E C R, and Lambda functions.
- AWS Security Hub: AWS Security Hub centralizes security findings from GuardDuty, Inspector, Macie and partner tools in one place, and runs best-practice checks. Note the names: the original service is now called Security Hub C S P M, and the name Security Hub now covers a broader unified service built on it.
- Amazon Macie: Amazon Macie discovers sensitive data, such as personal information, stored in Amazon S3.
- Amazon Detective: Amazon Detective investigates. It links related activity so you can find the root cause of a security finding.
- AWS Shield: And AWS Shield protects against distributed denial of service attacks. We will look at it with AWS WAF in task 2.4.
Exam key takeaway: GuardDuty detects threats, Inspector scans for vulnerabilities, Security Hub centralizes findings, Macie finds sensitive data in S3, Detective investigates, and Shield stops DDoS.
2.3 Identify AWS access management capabilities
IAM Building Blocks Task 2.3 · AWS Identity and Access Management: who can do what, in which account
- Root user: AWS Identity and Access Management, I A M, controls who can do what. It starts with the root user, created with the account, which has complete access to everything. Protect it, and use it only for the few tasks that require it.
- IAM users: An IAM user represents a person or application with long-term credentials, a password or access keys. AWS now recommends IAM Identity Center for people, and roles for applications, instead of many IAM users.
- IAM groups: An IAM group is a collection of users. Attach permissions to the group once, and every member gets them. Groups cannot contain other groups, and they are not identities you sign in as.
- IAM roles: An IAM role is an identity with temporary credentials that someone or something assumes: an EC2 instance that needs to read S3, a user from another account, or a federated user. Roles avoid storing long-term keys.
- Policies: Policies are J S O N documents that allow or deny actions on resources. AWS managed policies are written and maintained by AWS. Customer managed policies are ones you write and can reuse. Inline policies are embedded in a single user, group or role.
- Least privilege: The principle of least privilege means granting only the permissions needed for a task. Start with the minimum, and use last accessed data to remove anything unused. An explicit deny in any policy always wins.
Exam key takeaway: Use groups to give users permissions, roles for temporary access by services and other accounts, customer managed policies for reusable custom rules, and least privilege throughout.
Tasks Only the Root User Can Do Task 2.3 · Examples from the IAM User Guide list of tasks that require root user credentials
| Task | Note |
|---|---|
| Change account settings: root email address, root password, root access keys | For standalone accounts; contact details and alternate contacts do not need root |
| Close the AWS account (and reopen it during the post-closure period) | In AWS Organizations, member accounts can be closed centrally |
| Restore IAM permissions if the only administrator locked themselves out | Sign in as root, then fix the policies |
| Activate IAM access to the Billing and Cost Management console | Some other billing tasks are root-only too |
| Sign up for AWS GovCloud (US); register as a Reserved Instance Marketplace seller | Rare, but on the list |
| Remove a bucket or queue policy that denies everyone access | An S3 bucket policy or SQS queue policy that locks out all principals |
Some tasks can only be done as the root user. Changing account settings such as the root email address, the root password or root access keys is one. Other settings, such as contact information, do not need root.
Closing a standalone AWS account requires the root user, and so does reopening it during the post-closure period.
If the only IAM administrator accidentally removes their own permissions, the root user can sign in and restore them.
Activating IAM access to the Billing and Cost Management console needs the root user, as do some other billing tasks.
Signing up for AWS GovCloud, and registering as a seller in the Reserved Instance Marketplace, are also on the list.
And removing an S3 bucket policy, or an S Q S queue policy, that denies access to every principal requires the root user.
Exam key takeaway: Root-only tasks include changing root account settings, closing the account, restoring a locked-out administrator, activating IAM billing access, and fixing a deny-all bucket policy.
Protecting the Root User Task 2.3 · Methods that achieve root user protection
Do - Enable MFA: now required for root users of every account type - Use a strong, unique password and a monitored email address - Delete root access keys, or never create them - Create an administrator in IAM Identity Center for daily work - With AWS Organizations, centrally manage root access and remove member root credentials
Don'T - Use the root user for everyday tasks - Share root credentials between people - Create access keys for the root user - Rely on a password alone
Exam key takeaway: Protect the root user with MFA, a strong password, no access keys and minimal use; do daily work as a separate administrator, and centralize root access with AWS Organizations.
Authentication Methods Task 2.3 · How people and applications prove who they are on AWS
| Method | What It Is | Use It For |
|---|---|---|
| Password + password policy | Console sign-in; the policy sets length, complexity, expiry | IAM users who sign in to the console |
| Multi-factor authentication | A second factor: passkeys and security keys, authenticator apps, hardware TOTP tokens | Root user and every human user |
| Access keys | Long-term key ID + secret for CLI, SDK and API calls | Avoid; prefer roles with temporary credentials |
| IAM Identity Center | Single sign-on for the workforce across AWS accounts and apps | People in an organization |
| Federation | Trust an external identity provider through SAML 2.0 or OIDC | Corporate directory sign-in; Amazon Cognito for app users |
| Cross-account IAM role | A role in account B that users in account A can assume | Access between accounts without new users |
Here are the authentication methods. Passwords sign users in to the console, and an account password policy sets minimum length, complexity and rotation for IAM users.
Multi-factor authentication adds a second factor. AWS supports passkeys and security keys, authenticator apps on a phone, and hardware T O T P tokens. Use it for the root user and every human user.
Access keys are a long-term key pair for programmatic calls through the C L I, S D Ks or APIs. Avoid them where possible, rotate them if you must use them, and never embed them in code.
IAM Identity Center gives your workforce single sign-on to multiple AWS accounts and business applications, using its own directory or your existing identity provider.
Federation means trusting an external identity provider, using S A M L 2.0 or O I D C, so people sign in with their corporate identity. For your own application's customers, Amazon Cognito provides sign-up and sign-in.
And a cross-account IAM role lets users in one account assume a role in another, with temporary credentials, instead of creating duplicate users.
Exam key takeaway: Use MFA everywhere, IAM Identity Center for workforce single sign-on, federation for corporate identities, Cognito for app users, and roles rather than long-term access keys.
Storing Secrets and Credentials Task 2.3 · Never hard-code passwords or keys: keep them in a managed store
- AWS Secrets Manager: Credentials should never be hard-coded in applications. AWS Secrets Manager stores secrets such as database passwords and API keys, and can rotate them automatically, for example for Amazon RDS databases. Applications fetch the secret when they run.
- Systems Manager Parameter Store: Parameter Store, a capability of AWS Systems Manager, stores configuration data and secrets as parameters. SecureString parameters are encrypted with K M S. Choose it for simple, low-cost storage of configuration values.
- AWS KMS: Do not confuse these with AWS K M S. K M S manages the encryption keys that protect secrets and data. It does not store your passwords. If the question says create and control encryption keys, the answer is K M S.
Exam key takeaway: Secrets Manager stores and automatically rotates secrets, Parameter Store holds configuration and simple secrets, and AWS KMS manages encryption keys, not passwords.
2.4 Identify components and resources for security
Protecting Applications at the Edge Task 2.4 · AWS WAF, AWS Shield and AWS Firewall Manager
- AWS WAF: Task 2.4 is security components and resources. AWS WAF is a web application firewall. It filters web requests using rules, blocking attacks such as S Q L injection and cross-site scripting, or traffic from certain countries or I P addresses. It attaches to Amazon CloudFront, Application Load Balancers and Amazon API Gateway.
- AWS Shield Standard: AWS Shield Standard automatically protects every AWS customer from common network and transport layer D DoS attacks, at no extra charge.
- AWS Shield Advanced: AWS Shield Advanced is a paid subscription for higher protection against larger and more sophisticated attacks, with 24/7 access to the Shield Response Team and protection against scaling charges caused by an attack.
- AWS Firewall Manager: AWS Firewall Manager centrally configures firewall rules across all accounts in AWS Organizations: AWS WAF rules, Shield Advanced protections and security groups, applied automatically to new resources.
- Amazon GuardDuty: Amazon GuardDuty, from task 2.2, completes the picture by detecting threats that get through, and it can trigger automatic responses through Amazon EventBridge.
- AWS Marketplace: And AWS Marketplace offers third-party security products, such as firewalls, endpoint protection and security information and event management tools, so you can use your existing vendors on AWS.
Exam key takeaway: AWS WAF filters web requests, Shield Standard is free DDoS protection, Shield Advanced adds a response team and cost protection, and Firewall Manager applies rules across accounts.
Where to Find Security Information Task 2.4 · Official AWS sources of security guidance, and a tool that checks your account
| Resource | What You Find There | Exam Cue |
|---|---|---|
| AWS Security Center | aws.amazon.com/security: AWS security approach, services and compliance | Overview of AWS security |
| AWS Security Blog | Posts on new security features, best practices and solutions | Latest security guidance |
| AWS Knowledge Center | Answers to the most frequent AWS questions, part of AWS re:Post | How do I fix a common issue? |
| AWS Trusted Advisor | Checks your account, including security checks such as open ports and root MFA | Identify security issues in my account |
| AWS Artifact | AWS compliance reports and agreements | Evidence for auditors |
| Well-Architected security pillar | Design principles and best practices for security | Design guidance |
Where does AWS publish security information? The AWS Security Center, at aws dot amazon dot com slash security, gives an overview of how AWS approaches security, its services and compliance.
The AWS Security Blog publishes posts on new features, best practices and solutions.
The AWS Knowledge Center, part of AWS re:Post, answers the most frequent questions customers ask AWS Support.
AWS Trusted Advisor checks your own account against best practices. Its security checks look for issues such as security groups with unrestricted ports, the root user without MFA, and S3 bucket permissions.
AWS Artifact, as we saw, holds the compliance reports auditors ask for.
And the security pillar of the Well-Architected Framework gives design principles for secure workloads.
Exam key takeaway: Read the Security Center, Security Blog and Knowledge Center for guidance; use Trusted Advisor to find security issues in your account, and Artifact for compliance evidence.
Review
Exam Distractors: What to Reject Answers that sound reasonable but do not match the scenario, and what to choose instead
- AWS patches the guest operating system on Amazon EC2. The customer patches it; AWS does on RDS and Lambda.
- CloudWatch shows who deleted a resource. AWS CloudTrail records API calls.
- GuardDuty scans instances for software vulnerabilities. Amazon Inspector scans for vulnerabilities.
- Store database passwords in AWS KMS. Secrets Manager stores and rotates them.
- Use the root user with access keys for automation. Use an IAM role; delete root keys.
- Shield Standard must be bought for each application. It is automatic and free for everyone.
Exam key takeaway: Reject AWS patching your EC2 OS, CloudWatch for "who did it", GuardDuty for vulnerability scans, KMS as a password store, root keys for automation, and paid Shield Standard.
Where current AWS differs from the exam guide
- AWS Security Hub: the original service is now named AWS Security Hub CSPM; the name "AWS Security Hub" now refers to a broader unified security service that includes it. The exam guide says "AWS Security Hub"; either name points to the central place for security findings.
- Root user MFA is no longer optional: all account types (standalone, management and member) must configure MFA for the root user.
- Amazon S3 encrypts all new objects by default with SSE-S3 since January 5, 2023.
- With AWS Organizations, root access for member accounts can be managed centrally and member root credentials removed.
References
- AWS Certified Cloud Practitioner exam page — checked Nov 11, 2026
Check your understanding
An auditor asks for AWS SOC 2 and ISO 27001 reports.Show answerHide answer
Answer
AWS Artifact.Find out which IAM user terminated an EC2 instance yesterday.Show answerHide answer
Answer
AWS CloudTrail.Give 40 developers identical permissions with least effort.Show answerHide answer
Answer
Put them in an IAM group.Block SQL injection attempts against a web application.Show answerHide answer
Answer
AWS WAF.Who patches the database engine on Amazon RDS?Show answerHide answer
Answer
AWS, in your maintenance window.