What is the AWS Shared Responsibility Model, and how does the split change between EC2, RDS, and Lambda?
Answer
The Shared Responsibility Model defines who secures what. AWS is responsible for security of the cloud: data centres, hardware, networking, and the virtualisation layer that runs every service. The customer is responsible for security in the cloud: their data, identity and access (IAM), network rules, encryption choices, and whatever OS and application software they manage. The exact line moves depending on how managed the service is.
What AWS always owns
Physical security of data centres, guards, access control, and hardware disposal.
The global network, the hypervisor (Nitro), and host operating systems.
The software that runs managed services themselves, such as the RDS control plane or the Lambda runtime fleet.
Compliance certifications for that infrastructure (ISO 27001, SOC reports, PCI DSS), which you can download from AWS Artifact.
What the customer always owns
Data: classification, encryption at rest and in transit, backups.
Identity: IAM users, roles, policies, MFA, and root account protection.
Configuration: Security Groups, bucket policies, public access settings, logging.
Application code: input validation, dependencies, secrets handling.
No matter how managed a service is, a public S3 bucket or an over-permissive IAM role is always the customer's problem. Almost every well-known cloud data leak has been a customer-side misconfiguration, not an AWS infrastructure breach.
How the line moves by service type
Responsibility
EC2 (IaaS)
RDS (managed)
Lambda (serverless)
Physical hosts, hypervisor
AWS
AWS
AWS
Guest OS patching
Customer
AWS
AWS
Database engine patching
Customer (if self-installed)
AWS (in maintenance window you choose)
Not applicable
Runtime and scaling
Customer
Shared (you pick instance size)
AWS
Network access rules
Customer
Customer
Customer (VPC config, resource policies)
Data and encryption settings
Customer
Customer
Customer
IAM permissions
Customer
Customer
Customer (execution role)
Application code
Customer
Customer (queries, schema)
Customer
The more managed the service, the less you patch, but you never stop owning IAM, data, and configuration.
Shared controls
Some controls are split by design: patch management (AWS patches infrastructure, you patch your guest OS and apps), configuration management, and awareness and training (AWS trains its staff, you train yours). Compliance works the same way: AWS being PCI DSS compliant does not make your payment app compliant. A fintech handling card data still has to prove its own controls.
How to apply it in practice
Turn on CloudTrail, AWS Config, and Security Hub to monitor your side of the line.
Enable S3 Block Public Access at the account level.
Use IAM roles, MFA, and least privilege.
Encrypt with KMS by default and enforce TLS.
Who secures each layer. AWS owns the bottom of the stack; the customer always owns identity, configuration, and data.
Customer data: Always the customer: classification, encryption, backups.
IAM and access configuration: Always the customer: users, roles, policies, MFA.
Application code: Customer, on every service type.
Guest OS and runtime: Customer on EC2, AWS on RDS and Lambda.
Hypervisor and host OS: AWS.
Physical data centres and network: AWS.
Key points
AWS: security of the cloud (hardware, facilities, network, hypervisor, managed service software)
Customer: security in the cloud (data, IAM, configuration, code)
The line moves with service type: you patch the OS on EC2, AWS patches it on RDS and Lambda
IAM, data, and configuration are always the customer's responsibility
AWS compliance certifications do not automatically make your workload compliant
Common follow-up questions
Who is responsible for patching the database engine on RDS versus on a self-managed database on EC2?
Who is at fault if an S3 bucket with customer data is left public?
Which AWS services help you monitor your side of the responsibility?
How does the model apply to encryption of data at rest?
Interview tips
Use the 'of the cloud' vs 'in the cloud' phrasing, then immediately show how the line shifts across EC2, RDS, and Lambda
Give a real misconfiguration example such as a public S3 bucket to show it is the customer's side
Avoid saying AWS is responsible for 'everything' on serverless; IAM and data never move
Concepts covered
Shared Responsibility Model, Security of the Cloud, Security in the Cloud, Managed Services, Compliance