Interview Prep/AWS/VPC and Network Design

What are the biggest levers to reduce NAT gateway cost?

IntermediateProductionVPC and Network Design
Answer
  1. S3 and DynamoDB gateway endpoints: free, and remove the largest traffic from NAT.
  2. Interface endpoints for chatty AWS APIs (ECR API and DKR, STS, CloudWatch Logs, SSM, Secrets Manager) where volume justifies the hourly cost.
  3. Pull-through cache in ECR instead of pulling from Docker Hub through NAT.
  4. Keep NAT and its consumers in the same AZ.
  5. IPv6 egress via egress-only internet gateway, which has no processing charge.

Use VPC Flow Logs filtered on the NAT ENI to find the top destinations first.

aws All AWS questions Roadmap: AWS core services

More on VPC and Network Design