ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 72 - DVA-C02 discussion

Report
Export

A developer is migrating some features from a legacy monolithic application to use AWS Lambda functions instead. The application currently stores data in an Amazon Aurora DB cluster that runs in private subnets in a VPC. The AWS account has one VPC deployed. The Lambda functions and the DB cluster are deployed in the same AWS Region in the same AWS account.

The developer needs to ensure that the Lambda functions can securely access the DB cluster without crossing the public internet.

Which solution will meet these requirements?

A.
Configure the DB cluster's public access setting to Yes.
Answers
A.
Configure the DB cluster's public access setting to Yes.
B.
Configure an Amazon RDS database proxy for the Lambda functions.
Answers
B.
Configure an Amazon RDS database proxy for the Lambda functions.
C.
Configure a NAT gateway and a security group for the Lambda functions.
Answers
C.
Configure a NAT gateway and a security group for the Lambda functions.
D.
Configure the VPC, subnets, and a security group for the Lambda functions.
Answers
D.
Configure the VPC, subnets, and a security group for the Lambda functions.
Suggested answer: D

Explanation:

This solution will meet the requirements by allowing the Lambda functions to access the DB cluster securely within the same VPC without crossing the public internet. The developer can configure a VPC endpoint for RDS in a private subnet and assign it to the Lambda functions. The developer can also configure a security group for the Lambda functions that allows inbound traffic from the DB cluster on port 3306 (MySQL). Option A is not optimal because it will expose the DB cluster to public access, which may compromise its security and data integrity. Option B is not optimal because it will introduce additional latency and complexity to use an RDS database proxy for accessing the DB cluster from Lambda functions within the same VPC. Option C is not optimal because it will require additional costs and configuration to use a NAT gateway for accessing resources in private subnets from Lambda functions.

Reference: [Configuring a Lambda Function to Access Resources in a VPC]

asked 16/09/2024
Darpan Sodhi
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first