Skill 7.2.2
Reduce data transfer costs
Key Concepts
Providers charge for data by direction and path. Data into the cloud is usually free. Data out to the internet (egress) is charged per gigabyte, often in decreasing tiers. Data between regions is charged, and on many providers data between availability zones in the same region is also charged in each direction. NAT gateways add a per-gigabyte processing charge on top of transfer.
Engineers reduce transfer cost by keeping chatty components in the same zone where resilience allows, serving content through a content delivery network, compressing and batching data, using private endpoints to reach provider services without NAT processing, avoiding unnecessary cross-region replication, and processing data where it is stored.
Transfer cost is easy to miss in estimates because it depends on traffic patterns rather than on resource size. Billing data grouped by usage type reveals it, and architecture diagrams annotated with data flows and volumes help predict it.