Lesson 3 of 3 Data Transfer and Cost-Optimized Design

Reducing NAT, Endpoint and Cross-AZ Network Charges

This lesson explains which design removes a large data processing or transfer charge without reducing resilience, since network charges rarely appear in diagrams yet can exceed compute in data-heavy systems.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the charge for each traffic path.
  • Choose gateway or interface endpoints instead of NAT.
  • Explain how unnecessary cross-AZ traffic is reduced.

Where the charges are

Network traffic is charged differently depending on its path. The following table gives the approximate charge for each common path.

PathCharge (approximate, us-east-1)
Within an AZ, private IPsFree
Between AZs in a Region$0.01 per GB in each direction
Through a NAT gatewayHourly charge plus $0.045 per GB processed, on top of transfer
Through an interface endpointHourly charge per AZ plus $0.01 per GB processed
Through an S3 or DynamoDB gateway endpointFree
Through a Transit GatewayPer attachment hour plus $0.02 per GB processed
Out to the internetTiered, from about $0.09 per GB
S3 or ALB origin to CloudFrontFree; you pay CloudFront's lower egress rates

Choosing the private path to AWS services

For S3 and DynamoDB, gateway endpoints belong in every VPC: they are free and remove NAT processing for what is often the largest traffic flow. For other services, such as ECR, CloudWatch, STS and Secrets Manager, interface endpoints are worth their hourly charge when traffic is heavy enough that their processing charge of about $0.01 per GB beats the NAT gateway's $0.045, or when policy requires that traffic never touches an internet path.

With many VPCs, interface endpoints can be centralised in a shared services VPC reached through a transit gateway, with private hosted zones shared to the spoke VPCs. This saves the hourly charge per VPC, but adds transit gateway processing, so it pays off for many VPCs with light traffic rather than a few VPCs with heavy traffic. S3 interface endpoints are needed only when on-premises clients reach S3 privately over Direct Connect or VPN, because gateway endpoints are not reachable from outside their VPC.

Reducing cross-AZ traffic

Multi-AZ designs create cross-AZ traffic, and that traffic is usually worth paying for because it buys resilience. The aim is to avoid unnecessary crossings. One NAT gateway per Availability Zone, with each subnet routing to the NAT gateway in its own zone, is both more resilient and cheaper than one shared NAT gateway, because no traffic crosses zones to reach it. Since November 2025, a NAT gateway can also be created in Regional mode, which places capacity in every Availability Zone that has workloads behind one gateway ID, giving the same zonal routing without a gateway and route table per zone; private NAT gateways remain zonal.

Routing can prefer the local zone: cross-zone load balancing can be disabled on Network Load Balancers when targets are balanced per zone, EKS topology-aware routing keeps service traffic within a zone, and read-heavy workloads can read from a replica in their own zone. Replication performed by managed services, such as RDS Multi-AZ synchronous replication and Aurora storage replication, is not billed as data transfer, whereas replication between self-managed instances is.

Worked example

A data pipeline in private subnets reads 40 TB a month from S3 in the same Region and pulls container images from ECR. All traffic goes through one NAT gateway in a single AZ. Finance has flagged the NAT gateway charges. The solution must also improve availability.

An S3 gateway endpoint removes NAT processing on 40 TB, about $1,800 a month, at no cost. ECR needs interface endpoints for ecr.api and ecr.dkr plus the S3 gateway endpoint, because image layers are served from S3. A NAT gateway per AZ for remaining internet traffic removes the single-AZ dependency.

Check yourself

Why does an S3 gateway endpoint cost less than sending S3 traffic through a NAT gateway?

Show answer

A gateway endpoint has no hourly or per-GB charge, while a NAT gateway charges for every gigabyte it processes.

Exam Tips

Remember for the exam

  • S3 and DynamoDB gateway endpoints are free and remove NAT processing charges.
  • Interface endpoints cost less per GB than NAT; centralise them only when many VPCs have light traffic.
  • Use a Regional NAT gateway, or one zonal NAT gateway per AZ with each subnet routed to its own AZ's NAT.
  • Origin to CloudFront transfer is free; CloudFront egress is cheaper than direct internet egress.
  • ECR pulls also need the S3 gateway endpoint, because layers come from S3.