[CLF-C02 Practice Questions Q18] Shared Responsibility Model (Lambda and RDS)

CLF-C02 Practice Questions Q18 Shared Responsibility Model (Lambda and RDS) Certification

“Lambda and RDS are services that AWS manages, so isn’t all of the security AWS’s responsibility?”
“I’m not sure how much of the code and security group settings are my job, and it seems to change by service.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) often asks you to tell which part AWS is responsible for and which part remains with the customer in managed services such as Lambda and RDS. The boundary being tested is that the OS and patches belong to AWS, while code and permission settings belong to the customer.

This article is Question 18 of a series that explains CLF practice questions one at a time. The author wrote the questions to match the scope of the exam; they are not actual exam questions. Choose your answer first, then read the explanation.


Question

A company runs an application in which an AWS Lambda function saves received orders to an Amazon RDS for MySQL DB instance. Under the AWS shared responsibility model, which items is the company responsible for? (Choose two.)

  • A. Applying patches to the OS of the servers that run the Lambda function
  • B. Addressing vulnerabilities in the Lambda function’s code
  • C. Disposing of the physical disks used for RDS storage
  • D. Applying patches to the OS of the host on which the RDS DB instance runs
  • E. Configuring the security group that allows connections to the RDS DB instance

Once you have chosen two answers, open the section below.

Show the answer (click to open)

Answer: B and E

The Lambda function’s code and the security group settings that allow connections to RDS are both things the customer decides and manages. OS patches and the disposal of physical disks are AWS’s responsibility.


The answer is B and E

The correct answers are B and E.

  • B: the customer decides and manages the function’s code
  • E: the customer decides and manages the security group settings

The other three are about the OS and physical equipment, which AWS is responsible for. Let’s look at the options one at a time.


Explanation of each option

A: The OS of Lambda’s servers is AWS’s (incorrect)

On the left, a layered diagram of where responsibility divides between AWS Lambda and Amazon RDS. Customer responsibility is blue and AWS responsibility is orange. From the top, data and code (function code, table data) and IAM and security groups (IAM permissions (execution role), security groups and IAM permissions) are the customer's. Below the dashed line, OS and runtime (server OS and runtime, host OS and DB engine) and hardware and facilities (servers and facilities, disks and facilities) are AWS's. The Lambda server OS and runtime is highlighted. On the right, "The OS of the servers that run Lambda functions" is AWS responsibility: AWS manages the servers, OS, and runtime, and also applies patches to the OS and runtimes. Customers cannot touch the OS

The left of the diagram divides the responsibility between Lambda and RDS into layers. Blue is the customer’s responsibility and orange is AWS’s.

With Lambda, AWS manages the servers, OS, and runtime that run the function. AWS also applies patches to the OS and to language runtimes. Customers cannot touch the OS.

B: The function’s code is the customer’s (correct)

The diagram of where responsibility divides between Lambda and RDS, with the function code in the customer's (blue) layer highlighted. On the right, "Lambda function code" is customer responsibility: customers write and upload the code, and if a vulnerability is found, customers fix and replace it. Customers secure the code

A Lambda function’s code is something the customer writes and uploads. The security of the code is the customer’s responsibility. If a vulnerability is found, the customer fixes the code and replaces the function. The IAM permissions given to the function (the execution role), shown in the upper layers of the diagram, are also managed by the customer.

C: Disposing of physical disks is AWS’s (incorrect)

The diagram of where responsibility divides between Lambda and RDS, with disks and facilities for RDS, in the bottom layer of AWS's (orange) responsibility, highlighted. On the right, "The physical disks used for RDS storage" is AWS responsibility: AWS installs, maintains, and replaces the equipment, and disposes of used disks by a defined procedure. Security of the cloud

The physical disks used for RDS storage are equipment in AWS data centers. AWS installs, maintains, replaces, and disposes of the equipment. AWS disposes of used disks safely by a defined procedure. This is security “of” the cloud, and it is AWS’s responsibility.

D: The RDS host’s OS is also AWS’s (incorrect)

The diagram of where responsibility divides between Lambda and RDS, with the host OS and DB engine for RDS, in AWS's (orange) responsibility, highlighted. On the right, "The OS of the host that runs an RDS DB instance" is AWS responsibility: AWS patches the host OS and the DB engine, and customers choose the time in the maintenance window. Customers cannot touch the OS

RDS is a managed database service. AWS manages the OS of the host on which the DB instance runs. AWS also applies the patches to the OS and the database engine. What the customer can choose is the maintenance window, that is, the time of day when patches are applied.

E: The security group is the customer’s (correct)

The diagram of where responsibility divides between Lambda and RDS, with the security groups and IAM permissions for RDS, in the customer's (blue) layer, highlighted. On the right, "The security group that allows connections to RDS" is customer responsibility: the customer decides where connections to the DB instance can come from, for example allowing connections only from the app. Customers configure it

A security group is a firewall feature that AWS provides. AWS provides the mechanism, but it is the customer who decides where connections to the DB instance can come from. For example, you configure it to allow connections only from the app. This configuration is the customer’s responsibility.

Who applies OS patches?

On the left are three rows: OS patches, data and code, and IAM permissions and security groups. On the right are three service columns. For Amazon EC2, OS patches are the customer's (guest OS), data and code are the customer's, and IAM permissions and security groups are the customer's. For Amazon RDS, OS patches are AWS's, data and code are the customer's (data), and IAM permissions and security groups are the customer's. For AWS Lambda, OS patches are AWS's, data and code are the customer's, and IAM permissions and security groups are the customer's (security group: when connected to a VPC). The arrow at the bottom: the more managed or serverless the service, the more AWS covers

Here is a summary of who applies OS patches, by service. With EC2, the customer applies patches to the guest OS. With RDS and Lambda, AWS applies them. The more managed or serverless the service, the more AWS covers.

Even so, data, code, IAM permissions, and security group settings are the customer’s responsibility in every service. Note that for Lambda, you configure security groups when you connect a function to a VPC.


Key points

  • For Lambda and RDS, AWS applies the OS patches. For EC2, the guest OS is the customer’s
  • Code, data, IAM permissions, and security groups are the customer’s in every service
  • Maintaining and disposing of physical equipment is security “of” the cloud = AWS

The course articles explain the boundary of the shared responsibility model and what AWS takes on in RDS in detail.

  • Lecture 10, Part 2: How responsibilities are divided
  • Lecture 7, Part 4: RDS and Multi-AZ deployments

You can read all 14 lectures of AWS Cloud Practitioner Exam Prep in order from its series page.


The CLF-C02 Practice Questions series (100 questions)

All 100 questions with a reading guide: CLF-C02 Practice Questions

In this group (Questions 7–18: Well-Architected, AWS CAF, and migration):

This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.

コメント

Copied title and URL