Sub topic 2
The shared responsibility model and architectural decisions
This chapter assumes you know the basics of EC2, S3, IAM and VPC, and that you have seen a typical multi-tier application (load balancer, application servers, database). It explains where AWS's duties end and yours begin, and how that line changes the choices you make in each pillar.
What the model says
The AWS shared responsibility model splits work between AWS and the customer. AWS describes the split in two phrases:
- Security of the cloud is AWS's job. AWS runs and protects the hardware, software, networking and facilities that host its services. This includes data centers, physical hosts, the hypervisor, the global network and the Regions and Availability Zones (AZs).
- Security in the cloud is your job. You decide what you put in the cloud and how you configure it. This includes your data, identity and access settings, operating system patches on instances you manage, network rules, encryption choices and application code.
The model is not only about security. The same split applies to reliability, performance, cost and operations. AWS provides reliable building blocks. Whether your workload survives the loss of one AZ depends on how you assemble them.
Why it matters for the Well-Architected Framework
The Framework's questions are written for the customer side of the line. When a review asks, "How do you protect your data at rest?", AWS has already secured the disks in its data centers. The question is about whether you enabled encryption, who holds the keys and who can read the data.
Knowing the line tells you three things:
- Which risks you can ignore because AWS already controls them, such as physical access to a server.
- Which risks remain yours no matter how much AWS provides, such as a public S3 bucket.
- How much work a service choice moves from your side to AWS's side.
The line moves with the service type
The boundary is not fixed. It depends on how much of the stack a service manages for you. The more AWS manages, the less you operate, but you never reach zero responsibility.
| Service example | AWS manages | You manage |
|---|---|---|
| Amazon EC2 | Hardware, hypervisor, physical network | Guest OS, patches, firewall rules (security groups), application, data, IAM |
| Amazon RDS | Hardware, OS and database engine patching (within your maintenance window), backups infrastructure | Database users and permissions, network access, encryption settings, schema and queries, backup retention choices |
| AWS Lambda | Servers, OS, runtime patching, scaling | Function code, dependencies, IAM execution role, event configuration |
| Amazon S3 | Storage infrastructure, durability of the service | Bucket policies, public access settings, encryption configuration, data classification, lifecycle rules |
Read the table from top to bottom. The management burden shifts toward AWS, but the last column never becomes empty. Data and access control always stay with you.
Inherited, shared and customer-specific controls
AWS compliance material groups controls into three types:
- Inherited controls come entirely from AWS. Physical and environmental controls are the standard example. You can cite AWS audit reports instead of building these yourself.
- Shared controls apply to both sides, but each side covers a different part. Patch management is one case. AWS patches the infrastructure and managed service software. You patch your guest operating system and applications. Configuration management and awareness and training follow the same pattern.
- Customer-specific controls depend only on how you use the service. Service and communications protection, or zone security, that your compliance regime requires fall here.
When you document a workload, label each control with one of these types. Then a reviewer can see who owns each gap.
How the model shapes decisions in each pillar
The model affects every pillar. These examples show how.
Security
You cannot assume a managed service is safe in every configuration. S3 is operated securely by AWS, but a bucket that allows plaintext HTTP or public reads is a configuration you own. The following bucket policy denies any request that does not use TLS. It is a customer-side control, because AWS provides the capability and you must apply it.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyInsecureTransport",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::example-bucket",
"arn:aws:s3:::example-bucket/*"
],
"Condition": {
"Bool": { "aws:SecureTransport": "false" }
}
}
]
}The Deny with aws:SecureTransport set to false blocks requests made over plain HTTP. Replace example-bucket with your bucket name before attaching the policy.
Reliability
AWS builds Regions from multiple AZs, each with independent power, cooling and networking. That is AWS's contribution. Your contribution is to use it. A database placed in a single AZ will go down with that AZ, even though AWS has done everything correctly. The decision "Multi-AZ or single-AZ?" is yours.
Operational Excellence
For EC2, you own patching, monitoring agents and runbooks for the operating system. For Lambda, you give those up, but you still own deployment practices, logging and alerting for your own code. Choosing a managed service removes operational tasks but adds a dependency on how AWS exposes the service's metrics and events.
Performance Efficiency, Cost Optimization and Sustainability
AWS controls the underlying hardware and its efficiency. You control instance size, storage class, scaling policy and how much idle capacity you run. Under sustainability, AWS is responsible for the sustainability of the cloud, such as efficient facilities, and you are responsible for sustainability in the cloud, such as right-sizing and removing unused resources.
Making architectural decisions with the model
Use this routine whenever you choose a service or design a component.
- List the responsibilities. For the service you are considering, write down what AWS handles and what stays with you. The AWS documentation for each service has a "security" section that says this.
- Count your operational load. Compare the customer-side column across options. Running PostgreSQL on EC2 gives you control but also patching, backups and failover. RDS or Aurora takes on most of that.
- Check for control you need. Some workloads need OS-level access, a custom kernel module or a specific database version. Those requirements can justify keeping more responsibility.
- Decide who owns each remaining risk. Assign each customer-side item to a team, a tool or an automation. An unowned responsibility is the usual source of findings in a review.
Common mistakes
- Assuming "AWS handles it." Teams often believe that encryption, backups or high availability come by default. Many are options you must turn on. Multi-AZ on RDS, S3 Block Public Access exceptions and EBS encryption are all settings you check.
- Ignoring guest OS patching on EC2. AWS patches the host. Your instances run your operating system, so vulnerabilities there are yours.
- Over-broad IAM permissions. AWS enforces whatever policy you write. A role with
*:*permissions is a valid configuration that AWS will honor. - Skipping the documentation for shared controls. A shared control leaves a gap if each side assumes the other covers it.
- Treating compliance reports as a certificate for your workload. AWS audit reports cover AWS's part. Your workload still has to be assessed for its own part.
Connecting to the review
In a Well-Architected review, you answer questions from the customer's position. Answers like "AWS does this" are accepted only where a best practice is truly inherited. For everything else, the review expects evidence that you configured, automated or monitored the control. When you later find a high-risk item, the shared responsibility model helps you see which side of the line it belongs to, and so who must fix it.
Exercise
A team runs its application database on a single Amazon RDS instance in one AZ. They say, "AWS manages RDS, so reliability is AWS's responsibility." Using the shared responsibility model, explain what is correct and what is not, and name one change they should make.
Show answer
AWS is responsible for the hardware, the facility, the database engine patching within the maintenance window and the Multi-AZ capability itself. The team is responsible for deciding to use it. A single-AZ deployment will be unavailable if that AZ fails, and that design choice belongs to the customer. They should enable Multi-AZ on the instance, which keeps a standby in a second AZ and fails over automatically. They should also confirm backup retention and test restore, since those settings are theirs too.
Exercise
Classify each control as inherited, shared or customer-specific: (a) physical access to the data center, (b) patching the guest OS of an EC2 instance versus patching the host, (c) the bucket policy on an S3 bucket.
Show answer
(a) Inherited, because AWS fully controls it. (b) Shared, because AWS patches the host and infrastructure while you patch the guest OS and applications. (c) Customer-specific, because it depends entirely on how you configure your own bucket.