CLF-C02 Domain 2 - Security and Compliance

Domain 2 is 30% of the scored AWS Certified Cloud Practitioner (CLF-C02) exam. It tests responsibility boundaries, governance/compliance, identity, and which security service solves which problem.

2.1 Shared responsibility

AWS secures of the cloud: facilities, hardware, networking, and managed-service infrastructure. Customers secure in the cloud: data, identities, permissions, application code, and service configuration. The dividing line shifts by service:

  • Amazon EC2: customer patches the guest OS and applications.
  • Amazon RDS: AWS patches the managed database platform; customer controls data, accounts, and configuration.
  • AWS Lambda: AWS operates servers and runtime infrastructure; customer secures function code, dependencies, data, and permissions.

2.2 Security, governance, and compliance

2.3 Access management

  • Protect the root user with MFA, no routine access keys, and use it only for root-only tasks.
  • Apply least privilege with AWS Identity and Access Management (IAM) users, groups, roles, and policies.
  • Prefer temporary role credentials over long-lived access keys; use AWS IAM Identity Center for workforce access and federation.
  • Store secrets in AWS Secrets Manager or Systems Manager Parameter Store, not in code.
  • An explicit deny overrides allows; permissions boundaries, service control policies, identity policies, and resource policies limit the final effective permission.

2.4 Service matching

NeedService
Threat detection from logs and eventsAmazon GuardDuty
EC2/ECR/Lambda vulnerability managementAmazon Inspector
Discover/classify sensitive data in S3Amazon Macie
Investigate security findingsAmazon Detective
Aggregate findings and posture checksAWS Security Hub CSPM
DDoS protectionAWS Shield
Filter web requestsAWS WAF
Centrally manage WAF/Shield/firewall policiesAWS Firewall Manager
Share supported resources across accountsAWS Resource Access Manager (RAM)

Common traps

  • Macie discovers/classifies sensitive S3 data; it does not anonymize or mask the data.
  • GuardDuty detects suspicious activity; Inspector scans supported workloads for vulnerabilities; Detective investigates context after a finding.
  • Security groups are stateful and attach to resources; network ACLs are stateless and apply at subnet boundaries.

Sources