Skip to Content

Shared responsibility model

AWS secures the cloud itself; the customer secures what it puts in it. Where the line sits depends on the service.

Not in the course slides

This topic is in the exam guide (Task 1.1) but not in the SAA slides. It's written from the AWS documentation.

What it is

The shared responsibility model splits the job of keeping a workload secure between AWS and the customer.

  • AWS is responsible for security of the cloud: the hardware, software, networking and buildings that run AWS services.
  • The customer is responsible for security in the cloud: what it builds and stores on AWS, and how it configures it.

It exists because cloud security fails most often at the boundary. A company might assume "AWS handles security", leave a storage bucket open to the internet, and leak its data. AWS kept its part of the deal: the disks were safe, the buildings guarded. The open bucket was the customer's setting.

Example

Renting a flat works the same way. The landlord keeps the building standing, the wiring safe and the front door lock working. The tenant decides who gets a key to the flat, and locks their own door. If the tenant leaves it open, that's on the tenant, not the landlord.

How it works

The line between AWS and the customer moves with the type of service. The more AWS manages, the less the customer has to secure.

Who manages each layer for on-premises, EC2, RDS and S3/DynamoDB/Lambda Who manages each layer for on-premises, EC2, RDS and S3/DynamoDB/Lambda

Who secures each layer, by type of service.

The grid has seven layers as rows, from "your data, IAM access, encryption" at the top to "buildings, power, cooling" at the bottom, and four columns:

  • On-premises: the customer manages every layer.
  • Amazon EC2: AWS manages the hardware and the buildings. The customer manages everything from the operating system up: OS patches, installed software, security group rules, the application and the data.
  • Amazon RDS: AWS also patches the operating system and the database engine. The customer still manages the database settings, the security groups, who can connect, and the data.
  • S3, DynamoDB, Lambda: AWS runs everything below the customer's data, code and permissions. There are no servers or security groups for the customer to manage (Lambda in a VPC is the exception: see Lambda networking).

The top two rows always belong to the customer, whatever the service: the data, who can access it, whether it's encrypted, and how the application is configured.

AWS's side: security of the cloud

AWS protects the infrastructure that runs every service:

  • Physical security: the data centers, guards, access control, power, cooling and fire protection.
  • Hardware: servers, storage devices and network gear, including replacing failed parts and securely wiping disks before they leave.
  • The global network: the fibre between Regions and AZs, and its protection.
  • The virtualisation layer: keeping one customer's virtual machines isolated from another's on the same physical host.
  • The software of managed services: for services like RDS, S3 and DynamoDB, the operating system and platform underneath.

Customers can't inspect AWS's data centers themselves. Instead, AWS has them audited by third parties and publishes the reports (SOC, ISO 27001, PCI DSS and more) through AWS Artifact.

The customer's side: security in the cloud

What the customer is responsible for depends on the service, but it always includes:

  • The data: what is stored, how it's classified, and whether it's encrypted at rest and in transit.
  • Identity and access: IAM users, roles and policies, MFA, and who can reach what.
  • Configuration: bucket policies, security groups, network ACLs, public or private settings.
  • For IaaS such as EC2, also: the guest operating system and its patches, any software the customer installs, and host firewall rules.

AWS provides the tools for the customer's part (IAM, KMS encryption, security groups, logging with CloudTrail), but turning them on and setting them up correctly is the customer's job.

Three kinds of controls

AWS describes three ways a security control can be split:

  • Inherited controls come entirely from AWS; the customer has nothing to do. Example: physical and environmental controls such as guards, locks, power and cooling.
  • Shared controls are the same kind of work, done by each side at its own layer:
    • Patch management: AWS patches the infrastructure; the customer patches its guest OS and applications.
    • Configuration management: AWS configures its devices; the customer configures its OS, databases and apps.
    • Awareness and training: AWS trains its staff; the customer trains its own.
  • Customer-specific controls belong entirely to the customer, because they depend on what it builds. Example: service and communications protection, or "zone security": routing data inside security environments the customer designs.

The same tasks on three services

The split changes how much work a task is. Here is who does what for a few common tasks.

On Amazon EC2

  • OS patches: the customer.
  • Firewall rules: the customer, with security groups.
  • Encryption at rest: the customer turns on EBS encryption.
  • Backups: the customer takes snapshots.

On Amazon RDS

  • OS and database engine patches: AWS, in a maintenance window the customer chooses.
  • Firewall rules: the customer, with security groups.
  • Encryption at rest: the customer chooses it when creating the database.
  • Backups: automated backups are on by default; the customer sets how long to keep them.

On Amazon S3

  • OS patches: AWS. There's no OS for the customer to see.
  • Access rules: the customer, with IAM, bucket policies and Block Public Access.
  • Encryption at rest: on by default (SSE-S3); the customer chooses the key type.
  • Protection against deletion: the customer turns on versioning and replication.

On all three, who can access the data is always the customer's job: IAM permissions, and on EC2 also SSH keys, on RDS also database users.

Real-world examples

  • A leaked database dump: a developer puts a backup in an S3 bucket and makes the bucket public "for a minute". It gets indexed and copied. S3 worked as designed; the access setting was the customer's responsibility.
  • An unpatched server: a company runs an old web server on EC2 and never updates the OS. Attackers use a known flaw to get in. On EC2, OS patching is the customer's job.
  • A managed database: a team moves the same database from EC2 to RDS. They no longer patch the OS or the database engine, so a whole class of risk moves to AWS. They still control who can connect and whether the storage is encrypted.

Exam tips

  • "Who patches the guest OS on EC2?" → the customer.
  • "Who patches the OS or database engine for RDS?" → AWS.
  • "Physical security of data centers", "decommissioning disks" → AWS.
  • "Encrypting data", "IAM permissions", "security group rules" → the customer, on every service.
  • "Reduce the operational burden of security patching" → move to a managed or serverless service (RDS, Fargate, Lambda).
  • "Proof of AWS's compliance", "SOC or PCI reports" → AWS Artifact.

Exam tip

When a question asks how to reduce what the customer has to secure, the answer is usually a more managed service. Moving from EC2 to RDS, or from EC2 to Lambda, shifts patching to AWS.

Common traps

  • "AWS encrypts and protects my data automatically, so I don't need to configure anything." AWS provides encryption and access tools; choosing, enabling and configuring them is the customer's job.
  • "AWS patches the OS on my EC2 instances." Not on EC2. AWS patches the host, not the customer's guest OS.
  • "With managed services, security is entirely AWS's job." The data, IAM permissions and settings always belong to the customer.
  • "The customer must audit AWS data centers." Customers can't. They rely on AWS's third-party audit reports in AWS Artifact.

Check yourself

This page is a concept with nothing to build, so instead of a lab, here are some review questions:

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt