Lesson 2 of 2 Shared Responsibility Model

Explaining How Responsibility Shifts with the Type of Service

This lesson explains how the line between AWS's and the customer's responsibilities moves with the type of service: the more managed the service, the less the customer has to do.

Learning outcomes

After completing this lesson, you will be able to:

  • Compare customer responsibilities for infrastructure, managed and serverless services.
  • Identify the responsibilities that always remain with the customer, such as data and access.

Responsibilities by service type

The more a service is managed by AWS, the less the customer has to secure. With an infrastructure service such as Amazon EC2, AWS manages only the physical infrastructure and virtualisation, so the customer is responsible for the guest operating system and its patches, any software they install, firewall settings and their data.

With a managed service such as Amazon RDS, AWS also manages the operating system, installs and patches the database engine, and runs the backup and high availability features. The customer still manages the data, database users and permissions, network access and settings such as encryption, Multi-AZ and backup retention. With an abstracted or serverless service such as AWS Lambda, Amazon S3 or DynamoDB, AWS manages everything below the application, including servers, operating systems, runtimes and scaling, and the customer manages their code, data, access policies and encryption options. The following table summarises the three types.

Service typeExampleAWS managesCustomer manages
InfrastructureAmazon EC2Physical infrastructure and virtualisationGuest OS and its patches, installed software, security groups and firewalls, data
ManagedAmazon RDSAlso the OS, database engine installation and patching, backup infrastructure, high availability optionsData, database users and permissions, network access, settings such as encryption, Multi-AZ and backup retention
Abstracted / serverlessAWS Lambda, Amazon S3, DynamoDBEverything below the application: servers, OS, runtimes (including Lambda runtime patching), scalingCode, data, access policies (IAM, bucket policies), encryption options

The following diagram shows who does each task for three types of service.

How responsibility shifts with the type of service. With an infrastructure service such as Amazon EC2, the customer patches the guest operating system and any software installed. With a managed service such as Amazon RDS, AWS also manages the operating system and patches the database engine. With an abstracted or serverless service such as AWS Lambda or Amazon S3, AWS manages everything below the application. In every case the customer controls their data, access and encryption options.
The more managed the service, the less the customer does.
Scenario questions

Who patches it?

Exam skills 2.1.5

Work out who does each task for EC2, RDS and Lambda.

Log in to try this activity Interactive activities are free with an account.

What never moves

Whatever the service, the customer is always responsible for their data, who can access it (IAM) and how it is configured, such as whether an S3 bucket is public. AWS never manages your IAM users or decides who can see your data.

Worked example

Patching the same database three ways

A company runs a MySQL database and asks who applies database security patches in each case:

How the database runsOS patchesMySQL patchesData and access
MySQL installed on EC2CustomerCustomerCustomer
Amazon RDS for MySQLAWSAWS (in the maintenance window the customer chooses)Customer
Amazon DynamoDB instead of MySQLAWSAWS (no engine to patch)Customer

The more managed the service, the less the customer does, but one column never changes: the customer always controls its data and who can access it.

Check yourself

Which responsibilities stay with the customer whatever service is used?

Show answer

Their data, how it is classified and protected, and who can access it.

Exam Tips

Remember for the exam

  • Patching the EC2 guest operating system is the customer's job; patching the RDS operating system and database engine is AWS's.
  • Patching the Lambda runtime is AWS's job; the Lambda function code is the customer's.
  • The more managed the service, the less the customer is responsible for.
  • S3 bucket permissions and public access settings are the customer's responsibility.
  • Customer data and IAM are always the customer's responsibility.