Skill 5.1.4

Optimize the cost of network architectures

Key Concepts

Main cost drivers are NAT gateway hourly and per-GB processing charges, cross-AZ data transfer, inter-Region transfer, internet egress, interface endpoint hours, Transit Gateway attachments and data processing, and public IPv4 addresses (charged hourly, attached or idle).

Typical optimisations: gateway endpoints for S3 and DynamoDB instead of NAT, interface endpoints when NAT processing for AWS APIs costs more than the endpoints, keeping chatty components in the same AZ, serving internet content through CloudFront (lower egress pricing and caching), VPC peering instead of Transit Gateway for a few high-volume connections, releasing unused Elastic IP addresses, and using IPv6 where possible. Cost Explorer and Cost and Usage Reports, grouped by usage type, identify which transfer is expensive, and VPC Flow Logs show who generates it.