Your NAT gateway bill is $4,000 a month. How do you cut it?
IntermediateScenarioVPC and Networking
Answer
Situation read → NAT charges per hour and per GB; most heavy traffic is usually to AWS services or ECR and S3.
What I'd do →
- Use VPC Flow Logs or CloudWatch metric
BytesOutToDestinationto find top talkers - Add free gateway endpoints for S3 and DynamoDB
- Add interface endpoints for ECR, STS, CloudWatch Logs where traffic is high, since endpoint per-GB cost is lower than NAT
- Keep chatty cross-AZ traffic in the same AZ as its NAT
- Consider NAT instances only for dev environments
Why → Most NAT spend is avoidable traffic to AWS public endpoints.
Interview tip → Mention that cross-AZ data transfer through NAT adds a second charge.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner