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 →
- Check CloudWatch metrics
BytesOutToDestinationandBytesInFromSourcefor the NAT - Enable VPC flow logs on the NAT ENI and query top talkers with Athena grouped by source IP
- Look for container image pulls, S3 or log shipping traffic
- Add gateway endpoints for S3 and DynamoDB and interface endpoints for ECR and CloudWatch
- 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.
More on VPC & Cloud Network Design
What makes a subnet public versus private in AWS?BeginnerExplain internet gateway versus NAT gateway and when you use each.BeginnerPrivate instances need to pull packages from the internet but must not be reachable from it. What do you set up?BeginnerWhy shouldn't production run in the default VPC?BeginnerPublic IP, Elastic IP and private IP: how do they differ on EC2?BeginnerWhy use SSM Session Manager instead of a bastion host?Beginner