AWS Certified Solutions Architect – Associate (SAA-C02) — Question 508

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?

Answer options

Correct answer: C

Explanation

To allow the Lambda function (running within the VPC) to access the on-premises database, the VPC's route tables must be updated to route traffic destined for the on-premises network range through the virtual private gateway connected to AWS Direct Connect. Establishing a new VPN is redundant since Direct Connect is already in place, and Lambda cannot route traffic directly through an Elastic IP without an ENI. Properly configuring the VPC route tables ensures that the network path to the on-premises private subnet is established and active.