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.
Establish a VPC Peering connection to enable the serverless function hosted on one VPC to access the database in another VPC.
Configure the serverless function with specific network settings that include the VPC ID, subnet identifiers within the VPC, and security group identifiers.
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 and why is it important for serverless functions?
Open an interactive chat with Bash
What are security groups, and how do they affect network communication?
Open an interactive chat with Bash
What exactly are subnet identifiers 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...
IT & Cybersecurity Package Join Premium for Full Access