The Shared Responsibility Model
Overview
Security on AWS is a partnership. The shared responsibility model divides duties between AWS and you. In short: AWS is responsible for security "of" the cloud; you are responsible for security "in" the cloud.
Imagine renting a flat. The landlord looks after the building: structure, main entrance locks and fire systems. You look after your flat: locking your door, who has keys and what you keep inside. If you leave the door open, it is not the landlord's fault.
This is one of the most heavily tested topics on the exam. You must know who handles what for different service types, and be able to place tasks such as patching or encryption on the correct side.
Key Concepts
- AWS responsibility (security OF the cloud): physical data centers, hardware, networking, the virtualisation layer and the managed-service software that AWS operates.
- Customer responsibility (security IN the cloud): your data, identities and access (IAM), applications, OS configuration, network and firewall settings, and encryption choices.
- The split shifts by service: more managed services mean AWS handles more.
- For EC2 you patch the guest OS; for RDS AWS patches the OS and database engine, but you manage users and data.
- Shared controls apply to both: patch management, configuration management and awareness training.
- Inherited controls come from AWS, for example physical and environmental controls.
- Customers are always responsible for their data, IAM and classifying and encrypting data appropriately.
Detailed Notes
The model at a glance
| Responsibility | AWS | Customer |
|---|---|---|
| Physical security of data centers | Yes | No |
| Hardware, host OS, hypervisor | Yes | No |
| Global network and facilities | Yes | No |
| Guest OS patches on EC2 | No | Yes |
| Security groups and NACLs | No | Yes |
| IAM users, roles and permissions | No | Yes |
| Customer data and encryption choices | No | Yes |
| Application code security | No | Yes |
It depends on the service
| Service type | Example | You manage |
|---|---|---|
| Infrastructure (IaaS) | EC2 | Guest OS, patches, firewall, apps, data |
| Container / managed | RDS, EMR | Data, access, network configuration, DB users |
| Abstracted / serverless | S3, DynamoDB, Lambda | Data, IAM policies, encryption settings, code |
For Lambda, AWS manages the runtime and the OS; you secure your function code and permissions. For S3, AWS secures the storage platform; you decide whether a bucket is public and whether objects are encrypted.
Shared controls
Some controls apply to both parties but in different contexts:
- Patch management: AWS patches the infrastructure; you patch guest operating systems and applications.
- Configuration management: AWS configures its devices; you configure your own OS, databases and applications.
- Awareness and training: AWS trains its staff; you train yours.
Inherited controls
Customers fully inherit controls from AWS, such as physical and environmental security. This helps with compliance audits because AWS's attestations cover these controls (see AWS Artifact).
Examples of misconfigurations that are the customer's fault
{
"publicS3Bucket": "Customer controls bucket policy and Block Public Access",
"openSecurityGroup": "0.0.0.0/0 on SSH is a customer decision",
"unpatchedEC2": "Guest OS patching is the customer's job",
"leakedAccessKey": "Credential protection is the customer's job"
}
Most real-world cloud breaches come from the customer side of the model, such as exposed storage or leaked credentials, rather than AWS infrastructure failures.
Customer-side examples by service type
| Service type | AWS manages | Customer manages |
|---|---|---|
| EC2 (IaaS) | Hardware, hypervisor, facilities | Guest OS patches, firewall (security groups), apps, data |
| RDS (managed) | OS and engine patching, hardware | Data, users, security group rules, encryption choices |
| S3 (abstracted) | Everything below the API | Bucket policies, encryption setting, public access, data |
| Lambda | Runtime, servers, scaling | Function code, IAM role, data |
Shared controls with concrete examples
| Shared control | AWS part | Customer part |
|---|---|---|
| Patch management | Patches infrastructure and managed service platforms | Patches guest OS and applications |
| Configuration management | Configures its devices | Configures its guest OS, databases, applications |
| Awareness and training | Trains AWS employees | Trains its own employees |
Compute-specific reminders
On EC2, AWS secures the host and hypervisor but never logs in to your instance. You manage the OS, and tools such as Systems Manager Patch Manager and Amazon Inspector can help you stay patched and detect vulnerabilities.
Real World Example
A software company hosts a customer database on EC2 and also uses S3 for backups. An auditor asks who patches the database server. The team answers: for the EC2-hosted database they do (guest OS and database engine), whereas if they had used Amazon RDS AWS would patch both.
They also realise the S3 backup bucket's public-access settings and encryption are their responsibility, so they enable S3 Block Public Access and server-side encryption, and use IAM least privilege for the backup role.
Architecture Diagram
- 1AWS secures the physical facilities, hardware and global network.
- 2AWS operates and patches the infrastructure layer and managed-service platforms.
- 3You configure identity, data protection and network access for your resources.
- 4You patch the guest OS and applications on services where you manage them.
Best Practices
- ✓Map every workload to a responsibility table so no control is left unowned.
- ✓Prefer managed services to shift patching and maintenance to AWS.
- ✓Enforce least-privilege IAM and MFA since identity is always your responsibility.
- ✓Encrypt data at rest and in transit and use Block Public Access on S3.
- ✓Use AWS Artifact to retrieve AWS compliance reports for inherited controls.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Of the cloud" = AWS; "in the cloud" = customer.
- Data, IAM, encryption choices and security groups are always the customer's.
- Physical security, hardware, and host/hypervisor are always AWS's.
- For managed services (RDS, Lambda) AWS takes more, but never your data or access policies.
Finished this lesson?
0 of 43 lessons done · 0% of the course

