“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)

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)

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 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)

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)

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?

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):
- Question 7: The six pillars of Well-Architected (reliability and performance efficiency)
- Question 8: Design principles of the reliability pillar (automatic recovery and horizontal scaling)
- Question 9: Design principles of the sustainability pillar (maximizing utilization and managed services)
- Question 10: Phases of the AWS CAF transformation journey (Envision, Align, Launch, Scale)
- Question 11: AWS CAF perspectives (configuration and patch management belong to Operations)
- Question 12: A business case for migration (Migration Evaluator)
- Question 13: AWS CAF perspectives (role and organizational change belong to People)
- Question 14: Moving servers to EC2 as they are (AWS Transform MGN)
- Question 15: Migrating files (AWS DataSync)
- Question 16: The 7 Rs of migration (repurchase: switching to SaaS)
- Question 17: Rightsizing (CPU to spare, memory running short)
- Question 18: Shared responsibility model (AWS Lambda and Amazon RDS) (this article)
This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.


コメント