AWS Certified Developer Associate DVA-C02 Practice Question
An application utilizes a serverless function to handle web requests and needs to retrieve data from a relational database safely contained within a subnet that is not exposed to the public internet. Which step is vital for the serverless function to communicate effectively with the database?
Alter the database settings to make it publicly accessible and thereby simplify function's access to it.
Enhance the computational resources of the function by increasing its allocated memory capacity.
Configure the serverless function with specific network settings that include the VPC ID, subnet identifiers within the VPC, and security group identifiers.
Establish a VPC Peering connection to enable the serverless function hosted on one VPC to access the database in another VPC.
To enable secure communication between a serverless function (such as AWS Lambda) and a relational database instance located within a private subnet of a Virtual Private Cloud (VPC), the developer must configure the serverless function with the specific network settings corresponding to that VPC. This includes the ID of the VPC, the subnets within the VPC where the database is situated, and the security groups that govern the allowed network traffic to and from the serverless function. This will provide the network path necessary for the function to access the database without exposing it to the public internet. Increasing the function's memory does not directly enable network connectivity to the VPC resources. A VPC Peering connection is unnecessary and inappropriate when both resources are in the same VPC. Opening public access to the database contradicts the requirement for private access and raises significant security risks.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a VPC in AWS?
Open an interactive chat with Bash
What is a security group and how does it work?
Open an interactive chat with Bash
Why use private subnets for databases in a VPC?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .