← Cloud Practitioner study path

Security and compliance · 14 min

AWS shared responsibility model

In this lesson you will learn which part of security is AWS's job and which part is yours, how that split changes between Amazon EC2, Amazon RDS and AWS Lambda, and what inherited, shared and customer-specific controls are.

The shared responsibility model is the way AWS splits the security work between AWS and its customers. Security, in this case, is everything that keeps someone without permission from seeing, changing or deleting your data. AWS protects the infrastructure its services run on, which is its buildings, its machines and its networks, and you protect what you put on top of it, such as the permissions that say who gets into your account, which in AWS are set up with the IAM service, and the of your data.

For example, if you have an online store on AWS, AWS makes sure nobody walks into its buildings and takes the machines your store runs on. You, on the other hand, make sure only your employees can see the list of orders and your customers' data.

What does AWS protect and what do you protect?

AWS sums up the model with two prepositions. AWS is responsible for security "of" the cloud, which includes the hardware, software, networking and facilities that run all of its services, as well as and the physical security of its global infrastructure. You are responsible for security "in" the cloud, which is everything you put on top: your data, who gets into your account and how you configure each service.

Two layers: at the bottom, AWS with hardware, service software, networking and facilities; on top, you with your data, IAM, operating system and the network you configure

The infrastructure is operated by AWS and you can't touch it. What you put on top, on the other hand, stays the way you configure it, so a mistake in that part is your responsibility. For example, if an AWS machine breaks down, repairing it is AWS's job, but if you give access to your account to someone who shouldn't have it, that mistake is yours.

Amazon S3, the AWS service for storing files, shows how this split works. In S3 files are stored inside a bucket, which is a space with its own name where you decide who can read what you store. AWS takes care of the servers and buildings where S3 runs, but you choose the bucket's permissions. For example, if your store leaves a bucket with its customers' data open to the internet, the responsibility is yours even though the service belongs to AWS, because AWS gives you the tools to close it and someone on your side chose the configuration that left it open.

AWS's part is reviewed by third-party on a regular basis. You can't walk into an AWS data center to check it, but you can download the reports from those audits from AWS Artifact, an AWS service that keeps those documents. For example, if a large customer of your store asks how you know AWS buildings are well protected, you can send them one of those reports.

Your part, on the other hand, depends on conditions that AWS doesn't know. According to the AWS Lambda documentation, what you are responsible for is determined by the service you use, how sensitive your data is, what your company requires and which laws apply. For example, a store that keeps its customers' card numbers has to protect more things than a recipe blog, even if both use the same AWS service.

True or false?

0 of 3
  1. If you leave an S3 bucket with customer data open to the internet, AWS is responsible because the service is theirs.

  2. You can request a visit to an AWS data center to review its controls.

  3. What you are responsible for depends on the service, how sensitive your data is, what your company requires and which laws apply.

How does the split change by service?

The line between AWS and you moves from one service to another. A managed service is one where AWS does part of the maintenance for you, such as installing updates, and the more managed a service is, the more work AWS does and the less is left to you. Three services show that difference well:

  • Amazon EC2, which rents you virtual servers where you install and manage everything.
  • Amazon RDS, which gives you a database ready to use, that is, the place where an application keeps its information in order.
  • AWS Lambda, which runs your code without you having to manage any server.

For example, your online store could use all three: EC2 for the website, RDS to store the orders and Lambda to send the confirmation email for each purchase. In each one you have a different job.

Table of responsibilities in Amazon EC2, Amazon RDS and AWS Lambda, row by row

The hardware belongs to AWS in all three services. The and the database engine or the are yours in EC2 and AWS's in RDS and Lambda. The database engine is the program that stores and finds the data, and the runtime plays that role for Lambda code. Your data, your permissions and your code, on the other hand, are yours in all three. For example, the orders your store keeps are your responsibility in any of the three services, because the data is always yours.

Move the line between AWS and you

Each band is a security layer, from the hardware at the bottom to your data at the top. Choose a service and see where the line falls between what AWS does and what you do.

Service
Your data and permissions (IAM)YouYour code, tables and usersYouNetwork: security groupsYouOperating system and its patchesYouDatabase engine or runtimeYouHardware, networking and facilitiesAWS
  • You
  • AWS
  • The line between the two

Amazon EC2: 5 of 6 layers are yours.

In Amazon EC2 you rent a virtual machine and almost everything that runs inside it is yours: the guest operating system with its patches, the security groups, the credentials to log in to the instance and the IAM roles you assign to it. AWS keeps the hardware and the facilities.

Amazon EC2

In Amazon EC2 you rent a , which in EC2 is called an instance, so almost everything that runs inside it is yours. The EC2 security guide lists what you are responsible for:

  • The network traffic, which you control with the VPC, which is your private network inside AWS, and with .
  • The credentials, which are the key or password you use to connect to the instance.
  • The guest operating system, which is called that because it runs inside the virtual machine and which you have to keep up to date with its updates and security .
  • The IAM roles, which you assign to the instance to give it permissions, for example to read a bucket.

For example, if your store's website runs on an EC2 instance with Linux and a patch comes out that fixes a Linux security gap, installing it is up to you. If you don't install it, the instance stays exposed even though AWS takes very good care of its hardware.

Amazon RDS

In Amazon RDS, AWS takes care of the hardware, the operating system of the DB instance and the maintenance of the database engine. It also schedules the security and reliability patches on its own, which according to the RDS documentation usually come out once every few months. The decisions about your database are left to you:

  • The maintenance window, which is the time slot when those patches are applied.
  • The network, which you configure with the VPC and security groups.
  • The IAM permissions, which say who can create or delete databases.
  • The database users, which are the ones who sign in to it.
  • The encryption of the data, which you turn on if you decide to encrypt it.

For example, if your store keeps its orders in RDS, AWS installs the operating system patches and you choose to have them applied early Sunday morning, when almost nobody is shopping.

AWS Lambda

In AWS Lambda you don't see any operating system, because AWS keeps the managed runtimes up to date with patches. You provide the code, the libraries you upload with it, which are pieces of code made by other people that your code uses, and the function's permissions. When AWS deprecates a runtime version, that version can stop receiving security patches, and moving your function to a new version is up to you.

For example, if your store's function that sends the confirmation emails uses a Python version that AWS deprecates, changing it to a new version and checking that it still works is your job.

Who takes care of it?

0 of 7

Tap the correct column for each task.

  1. Patching the operating system of an Amazon EC2 instance

  2. Patching the operating system of an Amazon RDS database

  3. Choosing the maintenance window of an Amazon RDS database

  4. Keeping the managed runtimes of AWS Lambda up to date with patches

  5. Moving a Lambda function to a new version when AWS deprecates its runtime version

  6. Configuring the security groups of an Amazon RDS database

  7. Replacing a failed disk in a server where your instances run

What are inherited, shared and customer-specific controls?

An IT control, short for information technology, is any measure that protects a system, from a lock on a building's door to a patch in a program. AWS classifies these controls into three types, based on who meets them.

The three types of IT controls based on who meets them: inherited, which AWS meets; shared, which each party meets in its own layer; and customer-specific, which depend on your application

Each type splits the work in a different way:

  • Inherited controls, which AWS meets and you receive as they are, such as the physical and environmental controls of a data center. For example, your store doesn't have to watch who walks into AWS buildings, because AWS already meets that control.
  • Shared controls, which each party meets in its own layer: AWS patches its infrastructure and you patch your operating system and your applications, AWS configures its equipment and you configure your systems, and AWS trains its people and you train yours. For example, AWS teaches security to its employees, and your store has to teach its own not to share passwords.
  • Customer-specific controls, which depend on how your application is built, such as separating data into security zones so the most sensitive data is kept apart. For example, your store can keep payment data in a different place from the product catalog, and only you can make that decision.

cloud path tip: if a question talks about training employees in security, the answer is that training is up to both parties, because AWS trains its people and you train yours.

What type of control is it?

0 of 5

Tap the correct column for each control.

  1. The physical and environmental controls of an AWS data center

  2. Applying patches: AWS to its infrastructure and you to your operating system

  3. Training the people who work with the account in security

  4. Separating your application's data into security zones

  5. Configuring equipment and systems

Accounts with the new experience

If you opened your account with the new AWS experience, which lets you sign up with Google, GitHub, Apple, Amazon or email, the split of responsibilities is the same as in a full account. AWS applies this split even to the you connect to that account, so you answer for what they do and for the security of what they create. For example, if you ask an agent to build your store's page and it leaves a bucket open to the internet, closing it is your responsibility.

On the exam

Questions on this topic describe a task and ask who is responsible for it. To answer them, first find the service in the question and then the layer the task belongs to, because the same task can be AWS's in one service and yours in another. For example, patching the operating system is up to you if the database runs on an EC2 instance, and it is AWS's job if the database is in Amazon RDS.

These words in the question tell you who is responsible for the task:

Words in the question Who is responsible
Guest operating system patches, security groups, encrypting data, IAM permissions The customer
Physical security, hardware, global infrastructure, virtualization AWS
Operating system patches with Amazon RDS or AWS Lambda AWS
Patches, configuration or training, with no further context Both, because it is a shared control

Review question

A company runs its application on Amazon EC2 instances and stores its data in an Amazon RDS database. According to the shared responsibility model, which task is the company's responsibility in both services?

Next