Data Ingestion and Transformation

A VPC-connected Lambda ingestion function accesses a public vendor database from private subnets in two Availability Zones, each routed through its own public NAT gateway. The vendor requires fixed source IPv4 allowlist entries; which addresses should the engineer provide?

Show the answer

Correct answerC. The Elastic IP addresses associated with both NAT gateways

AWhy not this: Database endpoint addresses identify the destination, not the source addresses the vendor must allow.

BWhy not this: Lambda interface addresses are private and are translated by the NAT gateways before traffic reaches the vendor.

CWhy this is right: Each NAT gateway presents its associated Elastic IP address to the vendor over the internet.

DWhy not this: Private subnet CIDRs are not the public source addresses observed by the vendor database.

The vendor sees the Elastic IP address of the NAT gateway used for each connection, so both addresses must be allowlisted. Lambda network interface addresses are private and are not the source addresses seen across the internet.