SkillSprout
Chapter 2 · Lesson 3
Beginner
5 min read

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

ResponsibilityAWSCustomer
Physical security of data centersYesNo
Hardware, host OS, hypervisorYesNo
Global network and facilitiesYesNo
Guest OS patches on EC2NoYes
Security groups and NACLsNoYes
IAM users, roles and permissionsNoYes
Customer data and encryption choicesNoYes
Application code securityNoYes

It depends on the service

Service typeExampleYou manage
Infrastructure (IaaS)EC2Guest OS, patches, firewall, apps, data
Container / managedRDS, EMRData, access, network configuration, DB users
Abstracted / serverlessS3, DynamoDB, LambdaData, 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

json
{
  "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 typeAWS managesCustomer manages
EC2 (IaaS)Hardware, hypervisor, facilitiesGuest OS patches, firewall (security groups), apps, data
RDS (managed)OS and engine patching, hardwareData, users, security group rules, encryption choices
S3 (abstracted)Everything below the APIBucket policies, encryption setting, public access, data
LambdaRuntime, servers, scalingFunction code, IAM role, data

Shared controls with concrete examples

Shared controlAWS partCustomer part
Patch managementPatches infrastructure and managed service platformsPatches guest OS and applications
Configuration managementConfigures its devicesConfigures its guest OS, databases, applications
Awareness and trainingTrains AWS employeesTrains 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

Shared responsibility
Architecture
AWS Cloud
Customer: security IN the cloud
IAM / identities
Data and encryption
Firewall config
Guest OS / apps

AWS: security OF the cloud

Hardware
Regions / AZs
Global network
  1. 1AWS secures the physical facilities, hardware and global network.
  2. 2AWS operates and patches the infrastructure layer and managed-service platforms.
  3. 3You configure identity, data protection and network access for your resources.
  4. 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