Quick answer
The AWS shared responsibility model splits security duties between AWS and you. AWS secures the cloud itself: data centers, hardware, networking and the virtualization layer. You secure what you put in the cloud: data, identity and access management, network configuration, encryption settings and, on services like EC2, the guest operating system.
The shared responsibility model is AWS's framework for dividing security duties between AWS and its customers. It is not a vague principle — it is a specific, drawable line that shifts depending on which service you use, and it is the single most-tested concept in Domain 2 (Security and Compliance) of the AWS Cloud Practitioner exam. Get this concept solid and a meaningful share of Domain 2's questions become straightforward.
The mental model
Picture an apartment building. The landlord (AWS) is responsible for the building's foundation, structural walls, fire suppression systems, and the locks on the building's main entrance. You, the tenant, are responsible for locking your own apartment door, deciding who gets a key, and what you keep inside. Neither party can fully secure the building alone — security is genuinely shared, split along a specific boundary.
“Of” the cloud vs “in” the cloud
AWS uses two precise phrases, and the exam expects you to recognize both instantly:
- Security “of” the cloud — AWS's responsibility. Physical data centers, hardware, the global network, and the virtualization/hypervisor layer.
- Security “in” the cloud — your responsibility. How you configure services, manage access, protect your data, and (on some services) patch the guest operating system.
If a question stem uses either phrase, it is testing this model directly — do not overthink it as a trick question.
How the line shifts by service model
The exact boundary is not fixed — it moves depending on how much of the stack AWS manages for a given service. The more AWS manages, the less falls to you.
| Layer | EC2 (IaaS) | RDS (managed) | Lambda (serverless) |
|---|---|---|---|
| Physical infrastructure | AWS | AWS | AWS |
| Hypervisor | AWS | AWS | AWS |
| Guest OS patching | You | AWS | AWS |
| Application/runtime | You | AWS (engine) / You (queries) | AWS (runtime) / You (function code) |
| Network/firewall config | You | You | You |
| IAM and access control | You | You | You |
| Data | You | You | You |
The pattern to internalize: IAM, network configuration, and data are always yours, on every service. What moves is patching and runtime management — the more "managed" or "serverless" a service is, the more of that AWS absorbs.
Example: EC2 (infrastructure-as-a-service)
You launch an EC2 instance. AWS guarantees the physical server, host hardware, and hypervisor are secure and available. From the guest operating system upward, it is entirely on you: applying OS security patches, configuring the security group (AWS's virtual firewall), managing SSH key access, and securing whatever application you install. This is the service where your responsibility is broadest, because EC2 gives you the most raw control.
Example: RDS (managed platform)
With RDS, AWS manages the underlying EC2 instance, the database engine installation, and OS-level patching on a schedule you configure but do not perform yourself. Your responsibility narrows to: database-level user accounts and permissions, network access rules (security groups, VPC placement), enabling encryption at rest, and the queries and schema you run. This is the classic exam contrast to EC2 — "who patches the OS" flips from you to AWS.
Example: Lambda (serverless)
Lambda pushes the line even further toward AWS. There is no server for you to patch at all — AWS manages the entire execution environment, runtime, and underlying infrastructure. Your responsibility shrinks to your function code itself, the IAM role/permissions your function executes with, and any data your function touches. Serverless does not mean "AWS handles security" — it means AWS handles infrastructure security, while your code and permissions are still entirely your job.
Example: S3 (storage)
S3 is where a huge share of real-world breaches actually happen, precisely because the shared responsibility line is often misunderstood. AWS secures the underlying storage infrastructure and durability. You are 100% responsible for bucket policies, public-access settings, and encryption configuration — a publicly-exposed S3 bucket full of sensitive data is a customer misconfiguration, not an AWS failure, because access control on S3 is unambiguously "in the cloud."
Where data encryption fits
Encryption is a shared responsibility in its own right. AWS provides the tools — KMS for key management, built-in encryption-at-rest options on S3, EBS, and RDS, and TLS for data in transit. But enabling those options, managing your own keys if you choose customer-managed keys, and encrypting sensitive data client-side before it ever reaches AWS (where required by your compliance needs) are all on you. AWS will not silently encrypt data you did not configure it to encrypt.
Compliance and shared responsibility
AWS maintains compliance certifications (SOC 1/2/3, PCI DSS, ISO 27001, and many industry-specific ones) for the infrastructure it controls, available on-demand through AWS Artifact. But your use of AWS being compliant with a given standard (HIPAA, PCI DSS, GDPR) depends on how you configure access, encryption, and data handling — AWS being certified does not automatically make your application compliant.
Common misconceptions
- “AWS is fully responsible for my security since I'm paying them.” False. Payment does not shift the "in the cloud" half of the model.
- “Serverless means I don't need to think about security.” False. Your function code and its IAM permissions remain entirely your responsibility.
- “A managed database means AWS secures my data.” Partially false. AWS secures the engine and infrastructure; your access control, queries, and data content are still yours.
- “The responsibility split is the same for every service.” False — this is the exact misconception this article exists to correct. It shifts based on how much AWS manages.
How this is tested on CLF-C02
Expect questions phrased as "which party is responsible for X" across different named services, and questions using the exact "of the cloud" / "in the cloud" language directly. A reliable heuristic: if the question describes patching, encryption enablement, IAM configuration, or data content, the answer is almost always you. If it describes physical facilities, hardware, or the virtualization layer, the answer is almost always AWS. For managed services specifically, watch for the OS-patching question — it is the most common trap, because candidates default to "you patch everything" out of EC2 habit even when the scenario describes RDS or Lambda.
For more shared-responsibility-adjacent trap patterns across the full exam, see the Cloud Practitioner cheat sheet. You can also drill this concept specifically outside the cert bank in CertSharp's Shared Responsibility Model micro quiz.
What are inherited, shared and customer-specific controls?
AWS groups the model into three kinds of controls. Exams use these exact words, so learn them as a set.
| Control type | Who owns it | Examples |
|---|---|---|
| Inherited controls | Fully AWS; you inherit them | Physical and environmental controls: data center access, power, cooling, fire suppression |
| Shared controls | Both, each in their own scope | Patch management (AWS patches the infrastructure, you patch your guest OS and apps), configuration management (AWS for its devices, you for your OS, database and applications), and awareness and training (AWS trains its staff, you train yours) |
| Customer-specific controls | You only | Service and communications protection or zone security that depends on how you use AWS, such as how you segment networks and what data you place in each zone |
The easy-to-remember takeaway: patching, configuration and training are the three shared controls. The first one is the classic trap because the answer changes by service, as the EC2 versus RDS comparison above shows.
Who is responsible for what? A quick-lookup table
| Task or asset | Responsible party | Why |
|---|---|---|
| Physical security of data centers | AWS | Security of the cloud |
| Hypervisor and host hardware | AWS | Security of the cloud |
| Guest OS patching on EC2 | You | You control the instance operating system |
| OS patching for RDS | AWS | Managed service; you only schedule the maintenance window |
| Security group rules | You | Network configuration is always yours |
| IAM users, roles and policies | You | Access control is always yours |
| Turning on encryption for an S3 bucket or EBS volume | You | AWS provides the feature; you enable and configure it |
| Durability of the underlying S3 storage infrastructure | AWS | Service infrastructure |
| Enabling MFA on the root user | You | Account-level identity configuration |
| Application code in a Lambda function | You | Your code runs in AWS-managed runtime |
| Lambda runtime and underlying servers | AWS | Serverless: AWS manages the execution environment |
| Classifying and protecting your data | You | Data is always the customer's |
| Global network infrastructure | AWS | Security of the cloud |
| Basic DDoS protection at the network edge | AWS (Shield Standard, on by default) | Included automatically; advanced protection is optional |
| Compliance of your own workload with HIPAA, PCI DSS or GDPR | You | AWS certifies the infrastructure, not your configuration |
How does the model apply to containers and Kubernetes?
The same rule holds: the more AWS manages, the less you own. With Amazon EKS, AWS operates the Kubernetes control plane, but you remain responsible for worker nodes you run on EC2 (including OS patching), your container images, pod-level permissions and network policies. With AWS Fargate, AWS also manages the compute that runs your containers, so patching of the host disappears from your list, but image content, IAM task roles and network configuration are still yours.
How do you apply the model to any new AWS service?
Instead of memorizing every service, use the same five questions each time. This also works on unfamiliar service names in exam scenarios.
- Do I choose and manage a server or operating system? If yes (EC2), patching is yours. If no (Lambda, RDS, S3), AWS patches.
- Who controls access? Always you: IAM policies, bucket policies, security groups.
- Where does the data live and who classifies it? You decide what to store and whether it is encrypted.
- Is the thing broken a feature or a setting? AWS builds the feature; you turn it on and configure it.
- Is it physical or global? Data centers, hardware and the global network are AWS.
What should every AWS customer do on their side of the line?
Knowing the model is only useful if you act on your half. The baseline most security reviews expect looks like this:
- Enable MFA on the root user and avoid using the root user for daily work.
- Grant least-privilege IAM permissions and use roles instead of long-lived access keys where possible. See Principle of Least Privilege and Defense in Depth for the reasoning.
- Turn on S3 Block Public Access at the account level unless a bucket must be public.
- Enable encryption at rest (KMS-backed where required) and enforce TLS in transit.
- Turn on AWS CloudTrail so API activity is logged, and review it.
- Patch guest operating systems and containers you manage, or move to a service where AWS patches for you.
- Restrict security group inbound rules to what is needed; avoid opening administration ports to the whole internet.
This list also maps directly to the confidentiality, integrity and availability goals in the CIA triad: IAM and encryption protect confidentiality, logging and least privilege protect integrity, and multi-AZ design and patching protect availability. The security pillar of the AWS Well-Architected Framework turns the same duties into design principles.
Practice: shared responsibility exam questions
1. A company runs a database on Amazon RDS. Who applies operating system patches to the underlying instance?
AWS. RDS is a managed service; the customer controls only the maintenance window and database-level configuration.
2. A company runs a web server on EC2. Who is responsible for installing the latest OS security updates?
The customer. On EC2, everything from the guest operating system upward is the customer's responsibility.
3. Which of the following is AWS's responsibility: configuring security groups, physical data center access, or enabling S3 encryption?
Physical data center access. The other two are configuration choices that belong to the customer.
4. A customer's public S3 bucket exposed private files. Whose responsibility was the misconfiguration?
The customer. Bucket policies and public-access settings are security in the cloud.
5. Which service gives customers on-demand access to AWS compliance reports?
AWS Artifact.
6. What kind of control is patch management in the AWS model?
A shared control: AWS patches the infrastructure and the customer patches guest operating systems and applications they manage.
Keep drilling in the Cloud Practitioner practice exam, and compare plans on the pricing page when you want the full bank.
Where does this fit in your Cloud Practitioner preparation?
The shared responsibility model is the highest-yield concept in the Security and Compliance domain, so schedule it early. The Cloud Practitioner study plan places it in week one, and if you are still weighing the credential itself, is AWS Cloud Practitioner worth it lays out who benefits.
Frequently asked questions
What is the AWS shared responsibility model in one sentence?
AWS is responsible for the security "of" the cloud (the physical infrastructure, hardware, and the services it fully manages), while you are responsible for security "in" the cloud (how you configure, access, and use those services).
Does the shared responsibility model change depending on which AWS service I use?
Yes — the line shifts based on how much AWS manages for you. On EC2 (infrastructure-as-a-service), you handle guest OS patching and application security. On RDS or Lambda (managed/serverless services), AWS handles more of the underlying stack, and your responsibility narrows to configuration, access control, and your data.
Is data encryption AWS’s responsibility or mine?
Both, depending on the layer. AWS provides the encryption tools and infrastructure (KMS, encryption-at-rest options on S3/EBS/RDS), but enabling encryption, managing your keys, and encrypting data client-side before upload where required is your responsibility.
How is this tested on the AWS Cloud Practitioner exam?
Expect scenario questions asking "who is responsible for X" across different services, and questions distinguishing "of the cloud" vs "in the cloud" language directly. It is the single most-tested concept in Domain 2 (Security and Compliance), which is 30% of the CLF-C02 exam.
Who is responsible for patching in the AWS shared responsibility model?
It depends on the service. AWS patches the infrastructure for every service and the guest operating system on managed services such as RDS and Lambda. The customer patches the guest operating system and applications on EC2. AWS calls patch management a shared control.
What are inherited controls in the AWS shared responsibility model?
Inherited controls are controls the customer fully inherits from AWS, mainly physical and environmental protections such as data center access, power, cooling and fire suppression. Customers do not implement or manage them but can reference AWS compliance reports for evidence.
Is a public S3 bucket AWS's fault or the customer's?
The customer's. Access control, bucket policies and public access settings are security in the cloud, so exposing data through a misconfigured bucket is a customer responsibility. AWS provides protections such as S3 Block Public Access, but the customer must configure them.
Sources and further reading
- AWS: Shared Responsibility Model
- AWS Well-Architected Framework: Security Pillar
- AWS Well-Architected overview
Test yourself on this concept
30 free Cloud Practitioner questions cover shared responsibility scenarios directly — no signup, no credit card. Full 500-question bank is $11.99 lifetime, or $9.99/month Pro unlocks every CertSharp certification.