Interview Prep/AWS/VPC and Networking

An application needs a stable outbound IP that a partner can whitelist. How?

IntermediateScenarioVPC and Networking
Answer

Situation read → Outbound IPs come from NAT gateway Elastic IPs, which are stable.

What I'd do →

  1. Create a NAT gateway with an allocated EIP in each AZ
  2. Route private subnets through it
  3. Give the partner all EIPs
  4. For Lambda, place it in the VPC private subnets so egress uses the NAT
  5. Verify curl https://checkip.amazonaws.com

Why → Auto-assigned public IPs change on stop/start, Elastic IPs and NAT EIPs do not.

Interview tip → Mention you need all AZ EIPs on the allowlist, not just one.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking