AWS Certified Security – Specialty — Question 341

A company has two VPCs in the same AWS Region and in the same AWS account. Each VPC uses a CIDR block that does not overlap with the CIDR block of the other VPC. One VPC contains AWS Lambda functions that run inside a subnet that accesses the internet through a NAT gateway. The Lambda functions require access to a publicly accessible Amazon Aurora MySQL database that is running in the other VPC.

A security engineer determines that the Aurora database uses a security group rule that allows connections from the NAT gateway IP address that the Lambda functions use. The company’s security policy states that no database should be publicly accessible.

What is the MOST secure way that the security engineer can provide the Lambda functions with access to the Aurora database?

Answer options

Correct answer: B

Explanation

Option B is the correct choice because establishing private VPC endpoints (utilizing AWS PrivateLink) allows the VPCs to communicate securely and privately over the AWS network backbone without exposing the database to the public internet. Option A is incorrect because private IP routing between two distinct VPCs is not natively supported without a peering connection or transit gateway. Options C and D are incorrect because Direct Connect is meant for hybrid on-premises connectivity, and exposing public IPs for database access violates the company's security policy.