Domain 4 of 4 · Chapter 4 of 4

Cost-Optimized Network

Unlock the complete study guide + 1,040 practice questions across 16 full exams.

Bundled into the existing AWS Certified Solutions Architect – Associate premium course — no separate purchase.

Included in this chapter:

  • NAT Gateway cost optimization: per-AZ deployment vs central NAT
  • VPC Endpoint billing breakdown: hourly + per-GB processed
  • CloudFront egress pricing tiers and price classes
  • Worked example: cutting a $4k/month NAT bill in half with Gateway Endpoints
  • Cross-region replication frequency tradeoffs

Decision tree

Where does traffic go?To AWS serviceTo internetCross-AZS3 or DynamoDB?Cacheable content?Co-locate workloadin same AZ when possibleYesNoYesNoGateway Endpoint(free, S3/DDB only)Interface Endpoint(per-hour + per-GB)CloudFront(lower egress + cache)NAT Gateway(consolidate per-AZ)Always: VPC peering ≠ free across AZs; inter-AZ = $0.01/GB both ways

Cheat sheet

  • Attack data egress first when optimizing network cost
  • Front cacheable content with CloudFront and co-locate chatty tiers
  • Use a Gateway Endpoint (free) for S3/DynamoDB, an Interface Endpoint (paid) for everything else
  • Route AWS-bound traffic through endpoints and keep NAT for genuine internet
  • Cross-AZ traffic is billed at both ends, so design AZ-affinity for chatty tiers
  • Serve high-volume cacheable egress via CloudFront, not straight from EC2
  • Pick a cheaper CloudFront price class when your audience is confined to a few regions
  • For high-volume on-prem transfer, Direct Connect beats internet egress per GB

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. Amazon EC2 on-demand pricing (Data Transfer)
  2. Gateway endpoints (S3, DynamoDB)
  3. What is AWS PrivateLink (Interface endpoints)
  4. NAT gateways
  5. Amazon CloudFront overview
  6. VPC pricing (NAT Gateway rates)
  7. Amazon CloudFront pricing
  8. AWS Direct Connect pricing
  9. https://aws.amazon.com/privatelink/pricing/
  10. AWS PrivateLink and VPC Endpoints
  11. S3 Replication FAQ