Volume 1 · Chapter 4 — AWS Foundations and Cloud Computing

The Shared Responsibility Model and Account Foundations

Goutham Mayaluri 11 min read AWSCloudCloud Computing

4.1 Introduction

Security in AWS is a partnership, and the single most important concept for reasoning about it is the shared responsibility model. It draws a clear line between what AWS secures and what you secure, and almost every security question - and many exam and interview questions - come back to which side of that line a given control falls on. Getting this model wrong leads to two opposite failures: assuming AWS secures things it doesn’t (leaving your data exposed) or duplicating effort on things AWS already handles. This chapter also introduces the foundational account setup every AWS environment should start with.

4.2 Security “of” the Cloud vs “in” the Cloud

The model splits responsibility into two halves. AWS is responsible for securityofthe cloud - the physical data centres, the hardware, the network infrastructure, and the virtualization layer that underpins the services. You never patch a hypervisor or guard a data centre door; AWS does. You are responsible for securityinthe cloud - everything you put on top: your data, how it’s encrypted, your identity and access management, your network configuration (which ports are open, what’s public), the guest operating system and patching on any EC2 instances you run, and your application’s own security. The dividing line shifts depending on the service: with EC2 (IaaS) you’re responsible for the OS and patching; with a managed database like RDS, AWS patches the database engine and OS, leaving you responsible for access control, encryption settings, and the data itself; with a fully managed service like Lambda or S3, your responsibility narrows further to permissions, configuration, and data.

flowchart TB
  subgraph Customer[Customer: security IN the cloud]
      C1[Your data & encryption choices]
      C2[Identity & access - IAM]
      C3[Network & firewall config]
      C4[OS & patching - for EC2]
      C5[Application security]
  end
  subgraph AWS[AWS: security OF the cloud]
      A1[Physical data centres]
      A2[Hardware & host OS]
      A3[Network infrastructure]
      A4[Virtualization layer]
  end
  Customer --- Line[[Shared Responsibility boundary]] --- AWS

4.3 Where the Line Moves by Service Type

Because the boundary moves with the service model, a practical skill is knowing where it sits for each service you use. For raw compute (EC2), you own the operating system, its patches, and everything above - maximum control, maximum responsibility. For managed platforms (RDS, ElastiCache), AWS takes over the OS and engine maintenance, and you keep access control, encryption configuration, network placement, and data. For serverless and fully managed services (Lambda, S3, DynamoDB), AWS runs essentially all the infrastructure, and your responsibility narrows to identity/permissions, configuration (like an S3 bucket’s public-access settings), and the data. The lesson banks internalize is that choosing more managed services shrinks the surface you must secure and patch - but never to zero, because access control, encryption choices, and data protection always remain yours.

4.4 Account Foundations: Root, IAM, and Guardrails

Every AWS environment starts with account hygiene that flows directly from the model. The root user - the identity created with the account - has unlimited power and should be locked down: secure it with a strong password and multi-factor authentication, and then never use it for daily work, creating instead least-privilege identities for people and workloads. Human access should be federated through a central identity provider with MFA rather than scattered long-lived credentials, and workloads should use IAM roles that grant temporary credentials rather than embedded access keys. At scale, organizations use multiple accounts (for example separating production from development) governed centrally, with guardrails - service control policies - that enforce non-negotiable rules across every account. These foundations are covered fully in the security volume; the point here is that they are the first thing you set up, because they’re the customer’s half of the responsibility model.

4.5 Banking Production Scenario

A bank onboards a new AWS account by immediately securing the root user with MFA and setting it aside, then federating all engineer access through the corporate identity provider so people log in with their existing corporate identities plus MFA and receive only the permissions their role requires. Applications on EC2 and Lambda are given IAM roles, so no access keys are stored anywhere. Organization-wide guardrails block the creation of public S3 buckets, forbid disabling encryption, and restrict resource creation to approved Regions to keep data in-country. Because they chose managed services where possible, AWS handles patching of the database engine and the serverless runtime, and the bank concentrates its security effort on identity, network design, encryption, and data - exactly the responsibilities the model assigns to it.

4.6 Troubleshooting: Misattributed Responsibility

The classic real-world failure is the publicly-exposed S3 bucket leaking sensitive data. It happens because someone assumes AWS keeps their data private by default in the same way it secures the physical data centre - but data protection and access configuration are firmly the customer’s responsibility. The fix is to treat every customer-side control as yours to get right: block public access at the account level, encrypt by default, scope permissions tightly, and review configuration. The mirror-image failure is wasting effort trying to secure things AWS already handles, like the hypervisor. The remedy for both is the same - know exactly where the responsibility line sits for each service, secure everything on your side of it rigorously, and trust AWS for its side while verifying through the compliance reports AWS publishes.

4.7 Responsibility by Service Type (At a Glance)

Because the boundary shifts with the service model, it helps to see it laid out. The pattern is that the more managed the service, the more AWS handles - but customer responsibilities like access control, data, and configuration never disappear.

Service type AWS is responsible for You are responsible for
IaaS (EC2, EBS, VPC) Hardware, hypervisor, network, facilities Guest OS + patching, firewall/security groups, IAM, app, data, encryption config
Managed (RDS, ElastiCache) OS + engine patching, backups infra, HA infra Access control, encryption settings, network placement, schema, data
Serverless/Managed (S3, Lambda, DynamoDB) Almost all infrastructure and runtime IAM/permissions, configuration (e.g. bucket public-access), and data

The one constant across every row: identity and access management, data, and how you configure the service are always yours. This is why a public-S3-bucket leak is a customer failure even though S3 is highly managed - the public-access configuration and access control are on the customer side of every service.

4.8 Compliance, Artifact, and Assurance Programs

Regulated workloads need toproveAWS’s side of the responsibility model, and AWS provides that through its assurance programs.AWS Artifactis the self-service portal for downloading AWS’s compliance reports and certifications - SOC 1/2/3, PCI DSS, ISO 27001, and others - and for accepting agreements like a Business Associate Addendum (BAA) for HIPAA workloads. AWS maintains compliance with a broad set of programs (PCI DSS for card data, HIPAA for health data, FedRAMP for US government, GDPR support, and many industry and regional standards), and services are documented as being “in scope” for specific programs. For a bank, the practical point is: AWS’s infrastructure compliance is evidenced through Artifact, while the bank remains responsible for configuring its workloads compliantly on top - and tools like AWS Config and Audit Manager (covered later) help demonstrate the customer side. Knowing that Artifact is where you obtain AWS’s audit evidence is a tested detail.

Interview Question

Explain the AWS shared responsibility model and give an example of a failure caused by misunderstanding it.

The shared responsibility model divides security between AWS and the customer, and understanding exactly where the dividing line sits is fundamental to securing anything on AWS. AWS is responsible for securityofthe cloud - the physical data centres, the hardware, the underlying network, and the virtualization layer - so you never patch a hypervisor, guard a facility, or maintain the physical network; AWS does, and proves it through third-party audits and compliance reports. The customer is responsible for securityinthe cloud - everything you put on top: your data and how it’s encrypted, identity and access management (who and what can do what), network and firewall configuration (what’s open, what’s public), the guest operating system and its patching on any EC2 instances you run, and your application’s own security. Critically, the line moves with the service model: with EC2 you own the OS and patching; with a managed service like RDS, AWS patches the engine and OS while you keep access control, encryption settings, and the data; with fully managed services like S3, Lambda, or DynamoDB, AWS runs almost all the infrastructure and your responsibility narrows to permissions, configuration, and data - but it never disappears entirely, because access control and data protection are always yours. The classic failure from misunderstanding this is the publicly-exposed S3 bucket that leaks sensitive data: someone assumes AWS keeps their data private automatically, the way it secures the data centre, but configuring access and protecting data are the customer’s responsibility, so a misconfiguration leaves the data open to the world. It’s not an AWS breach - AWS did its part; the customer didn’t do theirs. The mirror-image mistake is wasting effort trying to secure things AWS already handles, like the physical hardware or hypervisor. The way to avoid both is to know precisely where the boundary falls for each service, rigorously secure everything on your side - block public access, encrypt by default, apply least-privilege IAM, configure networks carefully, patch what you own - and trust AWS for its side while verifying through its published compliance attestations. So the model isn’t a legal footnote; it’s the mental checklist for every design decision, and the discipline of always asking “which side of the line is this control on, for this service?” is what prevents the most common and damaging cloud security failures.

Interview Question

What are the first things you secure when setting up a new AWS account, and why?

The first things I secure flow directly from the customer’s half of the shared responsibility model, because identity and access are the foundation everything else depends on. The very first is the root user - the all-powerful identity created with the account. I give it a strong unique password, enable multi-factor authentication, remove or avoid any root access keys, and then stop using it for everyday work, because if the root user is compromised the entire account is compromised. Daily work is done through least-privilege identities instead. Second, I establish proper identity for humans: rather than creating scattered long-lived users with passwords and keys, I federate access through a central corporate identity provider so people sign in with their existing corporate identity plus MFA and receive only the permissions their role needs - this gives central control, easy revocation, and strong authentication. Third, I ensure workloads use IAM roles that provide temporary, automatically-rotated credentials rather than embedding long-lived access keys in code or configuration, because stored keys are the most common source of breaches. Fourth, at any real scale I use multiple accounts to separate environments - for example production from development - and govern them centrally with guardrails (service control policies) that enforce non-negotiable rules everywhere: block public S3 buckets, forbid disabling encryption, restrict resource creation to approved Regions to satisfy data residency. Fifth, I turn on the account-wide safety and visibility controls - block public access, default encryption, audit logging of every API call, and configuration monitoring - so I have both prevention and a record. The reasoning is that these are all squarely the customer’s responsibility, and they’re foundational: if identity is weak or the root user is exposed, no amount of downstream security helps; and if guardrails and logging aren’t in place from the start, misconfigurations and untracked changes creep in. So I secure the root user, establish federated least-privilege human access with MFA, give workloads roles instead of keys, separate and govern accounts with guardrails, and enable encryption, public-access blocking, and audit logging - in that order, because each is a prerequisite for trusting everything built on top, and together they cover the identity, access, and account-level controls the responsibility model assigns to me before any application is even deployed.

Chapter Revision Notes

  • AWS securesofthe cloud (data centres, hardware, network, virtualization); customer securesinthe cloud (data, IAM, network config, OS patching for EC2, app security).
  • The responsibility line moves by service: EC2 (you patch the OS) → RDS (AWS patches engine) → S3/Lambda (you own permissions, config, data).
  • More managed services shrink your security surface - but access control, encryption choice, and data protection are always yours.
  • Secure the root user with MFA and stop using it; federate human access; give workloads roles not keys; govern with guardrails.
  • The classic failure - a public S3 bucket leak - comes from misattributing a customer responsibility to AWS.