
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company has an AWS account used for software engineering. The AWS account has access to the company's on-premises data center through a pair of AWS Direct Connect connections. All non-VPC traffic routes to the virtual private gateway.
A development team recently created an AWS Lambda function through the console. The development team needs to allow the function to access a database that runs in a private subnet in the company's data center.
Which solution will meet these requirements?
A
Configure the Lambda function to run in the VPC with the appropriate security group.
B
Set up a VPN connection from AWS to the data center. Route the traffic from the Lambda function through the VPN.
C
Update the route tables in the VPC to allow the Lambda function to access the on-premises data center through Direct Connect.
D
Create an Elastic IP address. Configure the Lambda function to send traffic through the Elastic IP address without an elastic network interface.
Explanation:
Correct Answer: A
Why Option A is correct:
Why other options are incorrect:
Option B: Setting up a VPN connection is unnecessary because the company already has Direct Connect connections established. This would be redundant and more complex.
Option C: Simply updating route tables won't work because the Lambda function created through the console runs outside the VPC by default. The Lambda function needs to be configured to run in the VPC first.
Option D: Elastic IP addresses are for EC2 instances and NAT gateways, not for Lambda functions. Lambda functions cannot be directly associated with Elastic IP addresses without running in a VPC and using a NAT gateway.
Key AWS Concepts: