A Lambda function needs network access to private resources inside a VPC. Which approach provides that access with the least operational overhead?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure the Lambda function to run within the VPC using private subnets and attach a security group that allows access to the private resources..
Why this is the answer
Configuring the Lambda function to run within the VPC using private subnets and attaching a security group is the most straightforward and operationally least burdensome method. This places the Lambda function directly into your VPC network, allowing it to access private resources using their private IP addresses, secured by security groups and network ACLs. Routing traffic through a VPN connection adds significant operational overhead for managing the VPN itself. Creating a VPC endpoint for the Lambda function is not applicable; VPC endpoints are for services accessed from a VPC, not for Lambda accessing resources within a VPC. AWS PrivateLink is used to access services hosted by other AWS accounts or third parties privately, not typically for a Lambda function accessing resources within its own VPC.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed