Interview Prep/Networking/VPC & Cloud Network Design

Your NAT gateway bill jumped. How do you find what is driving it?

IntermediateScenarioVPC & Cloud Network Design
Answer

Situation read → Data processing charges scale with bytes, so one chatty workload can dominate.

What I'd do →

  1. Check CloudWatch metrics BytesOutToDestination and BytesInFromSource for the NAT
  2. Enable VPC flow logs on the NAT ENI and query top talkers with Athena grouped by source IP
  3. Look for container image pulls, S3 or log shipping traffic
  4. Add gateway endpoints for S3 and DynamoDB and interface endpoints for ECR and CloudWatch
  5. Consider NAT per AZ to avoid cross-AZ charges

Why → Most NAT cost is traffic that never needed the internet: AWS service calls.

Interview tip → Mention that image pulls from ECR over NAT are a classic hidden cost.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Cloud Network Design