29 November 2026 · 10 min read · Download as PDF

AWS shared responsibility model: who secures what on EC2, RDS, Lambda and S3

The AWS shared responsibility model, task by task: who patches, encrypts, configures and controls access on Amazon EC2, RDS, Lambda and S3; inherited, shared and customer-specific controls; where the line moves inside one service; and the CLF-C02 exam traps.

Cover: AWS shared responsibility model: who secures what on EC2, RDS, Lambda and S3

The AWS shared responsibility model splits security between AWS and you. AWS protects the infrastructure that runs its services ("security of the cloud"). You protect what you put on it ("security in the cloud"). Where the line falls depends on the service you choose.

This article goes with the video lesson The shared responsibility model in our free AWS Certified Cloud Practitioner (CLF-C02) course. The video explains the two halves, walks through the layered diagram and names the three shared controls. This page adds what a five-minute video can't hold: a task-by-task table for Amazon Elastic Compute Cloud (EC2), Amazon Relational Database Service (RDS), AWS Lambda and Amazon Simple Storage Service (S3); the three kinds of control; the cases where the line moves inside one service; worked examples; the exam traps; and every source, checked on 28 Nov 2026.

TL;DR

  • AWS is always responsible for the facilities, the hardware, the AWS global network, and "the host operating system and virtualization layer".
  • You are always responsible for your data, how you classify it, and who can reach it through Identity and Access Management (IAM) permissions. No service takes these off you.
  • Everything in between depends on the service. On EC2 the guest operating system is yours. On standard RDS, AWS patches the operating system and the database engine. On Lambda, AWS patches the runtime in the default mode. On S3 there is no operating system for you to see.
  • Controls come in three kinds: inherited (you get them from AWS), shared (each side does its own part) and customer-specific (only you).
  • For the exam: Domain 2, Security and Compliance, is 30% of scored content, and Task Statement 2.1 asks how responsibilities "shift, depending on the service used", naming RDS, Lambda and EC2.
The AWS shared responsibility model drawn as two stacked bands. The top band, in orange, is the customer, responsible for security IN the cloud. Its layers, from the top: customer data; platform, applications, identity and access management; operating system, network and firewall configuration; then three boxes side by side: client-side data encryption and data integrity authentication, server-side encryption of the file system or data, and network traffic protection covering encryption, integrity and identity. The bottom band, in dark blue, is AWS, responsible for security OF the cloud. Its layers: software, meaning compute, storage, database and networking; and under that, hardware and the AWS global infrastructure, meaning Regions, Availability Zones and edge locations.

The model from the lesson, drawn in archhy. Open this diagram in archhy to make your own copy.

Who does what on EC2, RDS, Lambda and S3

The diagram shows the layers. This table shows who owns each task once you pick a service. It is built from each service's own security page and, for RDS, from AWS's comparison table in the RDS User Guide.

Task

Amazon EC2 (virtual servers)

Amazon RDS (managed database)

AWS Lambda (serverless functions)

Amazon S3 (object storage)

Data centers, hardware, power, cooling, network

AWS

AWS

AWS

AWS

Host operating system and virtualization layer

AWS

AWS

AWS

AWS

Guest operating system: install and patch

You, including updates and security patches

AWS. Patches land in a weekly maintenance window (RDS assigns one unless you pick it); optional updates wait for you, mandatory ones can be applied after their apply date

AWS, on managed and OS-only runtimes. Container images: you rebuild from the patched base image

AWS (none exposed to you)

Database or language runtime: install and patch

You, for anything you install

AWS installs and patches the engine

AWS in the default Auto mode. You, in Function update or Manual mode, or once a runtime is deprecated

Not applicable

Your code and its dependencies

You

You: schema, queries and query tuning

You, "in all cases"

Not applicable

Network access

You: Virtual Private Cloud (VPC) and security groups

You: VPC and security groups (no access until a rule allows it)

You, if you attach the function to your VPC: its subnets and security groups

You: bucket policies and Block Public Access

Identity and permissions

You: IAM roles on the instance, login credentials

You: IAM for managing RDS, database users for logging in

You: the execution role and who may invoke the function

You: IAM and bucket policies

Encryption at rest

You choose and configure it

You choose RDS encryption (AES-256) when you create the instance

Always on (environment variables, code). You can choose a customer managed key

On by default since 5 Jan 2023 (SSE-S3). You choose SSE-KMS for more control over the keys

Encryption in transit

You

You use SSL/TLS connections

Lambda's API is HTTPS only; your own calls are yours

You

Backups and high availability

You

AWS runs automated backups (you set the retention period) and Multi-AZ failover if you choose it

AWS runs the service; copies of your own data are your choice

AWS runs the service; copies of your own data are your choice

Logging and threat detection

You turn them on

You turn them on

You turn them on

You turn on CloudTrail or GuardDuty for S3

Classifying your data, meeting your laws

You

You

You

You

Read the table by rows, not columns. The top two rows never change, and the bottom two never change. The line moves mostly in the operating system, runtime and backup rows; most other middle rows stay with you on all four. AWS's own RDS guide puts the same point as a three-way comparison: on premises, you own everything from power and cooling up; on EC2, AWS takes the server and the hardware; on RDS, AWS also takes the operating system, the database software, backups, scaling and high availability. "Application optimization" stays with you in all three. One exception to know: Amazon RDS Custom, for Oracle and SQL Server, gives you the operating system back. AWS's RDS Custom guide puts operating system patching on the customer for RDS Custom for Oracle, so "AWS patches RDS" is true of standard RDS only.

Three kinds of control: inherited, shared and customer-specific

AWS's page says the model "also extends to IT controls", meaning the checks an auditor asks you to prove. The video covers the shared ones. There are two other kinds, and auditors ask about both.

Kind

What it means

AWS's example

What you do about it

Inherited

AWS operates it, and you inherit it in full

Physical and environmental controls

Show the auditor AWS's reports, downloaded from AWS Artifact

Shared

Both sides run it, each on its own layer

Patch management, configuration management, awareness and training

Run your own part, and show AWS's reports for its part

Customer-specific

Only you, because it depends on what you build

"Service and Communications Protection or Zone Security", where you route or zone data within security environments

Design it, run it and prove it yourself

AWS Artifact is the free self-service portal for AWS's own compliance reports, such as System and Organization Controls (SOC), Payment Card Industry (PCI) and International Organization for Standardization (ISO) reports. It covers AWS's side only. AWS Artifact's guide says: "AWS customers are responsible for developing or obtaining documents that demonstrate the security and compliance of their companies."

Where the line moves inside one service

The table gives the defaults. Some of your own choices move the line within one service.

Lambda: your settings decide who patches the runtime

Lambda keeps its managed runtimes patched, but who applies a patch to your function depends on the runtime update mode:

  • Auto (the default): Lambda applies runtime updates for you.
  • Function update: Lambda updates the runtime only when you update the function. If you stop deploying, the runtime stops being patched.
  • Manual: the function stays on the runtime version you pin. AWS recommends it only as a temporary rollback.
  • Container images: Lambda publishes patched base images, and you rebuild and redeploy.
  • Deprecated runtimes: once a runtime is deprecated, "Lambda's responsibility for updating the managed runtime and container base images ceases". Your functions still run, but upgrading them is your job. Lambda sends notices at least 180 days ahead.

RDS: AWS patches, you mostly choose when

Required patching covers security and reliability fixes, and RDS schedules it in your weekly maintenance window. Optional operating system updates are not applied for you; mandatory ones carry an apply date. AWS warns that moving the window again and again doesn't stop a mandatory upgrade: after the apply date, RDS can apply it outside your preferred window. Check pending maintenance actions before then. Turning off Auto minor version upgrade is one way to cancel a pending engine update, and then keeping current is up to you.

S3: safer defaults, same owner

AWS has changed S3's defaults several times: new objects encrypted with SSE-S3 since 5 Jan 2023, new buckets created without public access and with access control lists (ACLs) disabled, and, from April 2026, encryption with customer-provided keys (SSE-C) disabled by default for new writes to new general purpose buckets (you can turn it back on). These defaults don't change who is responsible. S3's documentation still puts "managing your data, including object ownership and encryption" and "managing access" on your side, and a user allowed to change bucket policies or Block Public Access settings can still open data up. Block Public Access turned on at the account level, rather than per bucket, is the stronger guard rail.

Five examples: whose job is it?

  1. A bucket of customer records is readable by anyone because someone turned off Block Public Access and added a public bucket policy. Yours. Access to data is always the customer's side, and Block Public Access at the account level is the guard rail.
  2. A disk fails in an AWS data center. AWS's. Hardware and its lifecycle belong to AWS on every service.
  3. An EC2 web server is breached through an unpatched kernel. Yours. The guest operating system on EC2, "including updates and security patches", is the customer's.
  4. The same app moves to RDS and a database engine security patch comes out. AWS's to provide and schedule. When it runs falls in the maintenance window you chose.
  5. A Lambda function uses a runtime that was deprecated last year. Yours. AWS's patching stopped at deprecation, and moving to a supported runtime is the customer's job.

CLF-C02 exam traps

The Cloud Practitioner exam has 50 scored questions plus 15 unscored ones, scored from 100 to 1,000 with 700 to pass and no penalty for guessing. Shared responsibility questions are usually short scenarios. These are the distractors to watch for:

  • "Managed means AWS secures it." Not your data or your permissions. On every service in the table, data, classification and IAM stay with you.
  • Security groups. AWS provides them, but AWS's page lists "the configuration of the AWS provided security group firewall" on the customer's side. If you configure it, you're responsible for it.
  • Host versus guest. The host operating system and virtualization layer are AWS's on EC2 too. The guest operating system is yours on EC2 and AWS's on RDS. Read the question for which one it means.
  • Patching is shared, not AWS's. AWS patches its infrastructure, and what else it patches depends on the service. You patch the guest operating system where you run one (EC2), and your code and its dependencies everywhere. "AWS patches everything" is wrong, and so is "the customer patches everything".
  • Encryption. AWS supplies the tools and some defaults, such as SSE-S3. Turning encryption on where it's off, and choosing who controls the keys, is yours.
  • Auditing a data center. You can't visit one. Physical controls are inherited, and the evidence is AWS's reports in AWS Artifact (named in Task Statement 2.2).
  • "Choose two." Multiple response questions have two or more right answers out of five or more options; the question says how many. Sort every option into "of" or "in" on its own merits; don't assume one from each side.

FAQ

What is the AWS shared responsibility model, in one line?

AWS secures the infrastructure that runs its services; you secure what you build, store and configure on it.

Is the split the same for every AWS service?

No. AWS's page says customer responsibility "will be determined by the AWS Cloud services that a customer selects". EC2 leaves you the most to do; abstracted services such as S3 and Amazon DynamoDB leave you the least.

Who patches the operating system on Amazon RDS?

AWS, on standard RDS. It patches the operating system and the database engine in a weekly maintenance window. Optional updates wait for you; mandatory ones have an apply date, after which RDS can apply them even outside your preferred window. On RDS Custom you take on operating system patching.

Who patches the Lambda runtime?

Lambda does by default (Auto mode). In Function update mode it patches only when you deploy; in Manual mode or with a deprecated runtime, the job is yours. Your code and its dependencies are always yours.

Is S3 data encrypted by default?

Yes, new objects have been encrypted with SSE-S3 since 5 Jan 2023, at no extra cost. Choosing more control over the keys, such as SSE-KMS, and managing who can read the data, is still yours.

What is an inherited control?

A control AWS operates and you inherit in full, such as physical and environmental security. You show the auditor AWS's report instead of running the control yourself.

Where do I get proof of AWS's side for an auditor?

AWS Artifact, free in the console: SOC, PCI and ISO reports and certifications. Proof of your own side is yours to produce.

Is identity and access management ever AWS's job?

AWS runs the IAM service and creates some service-linked roles its services need. Deciding who gets which permission, in IAM and in resource policies such as bucket policies, is yours on every service.

Keep going

More from the blog