
Answer-first summary for fast verification
Answer: Enable the Lambda function to operate within the VPC, applying the correct security group settings.
The correct answer is A. To allow the Lambda function to access a database in a private subnet within the company's on-premises data center, the Lambda function needs to be configured to run within the VPC. By doing this and assigning the appropriate security group, the Lambda function can communicate with the database securely through the Direct Connect connection. Other options either add unnecessary complexity or are not valid configurations for this use case.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an AWS environment with a connection to an on-premises data center via Direct Connect, a development team has created a Lambda function needing access to a private subnet database. What configuration is required for the Lambda function to access the database?
A
Enable the Lambda function to operate within the VPC, applying the correct security group settings.
B
Establish a VPN connection between AWS and the data center, directing Lambda function traffic through this VPN.
C
Modify the VPC route tables to permit the Lambda function to reach the on-premises data center via Direct Connect.
D
Assign an Elastic IP and set up the Lambda function to utilize this IP for traffic routing without an elastic network interface.
No comments yet.