ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 CLF-C02

Data transfer cost design

Know which paths cost money, then route traffic to avoid them.

本课尚未翻译,暂以英文显示。

你在云从业者中已学过

  • Data into AWS is free.
  • Data out to the internet, to another Region or between AZs is charged.
  • CloudFront can lower the cost of delivery.
阅读云从业者课程
  • Into AWS

    Free
  • Same AZ, private IP

    Free
  • Between AZs

    Per GB each way
  • Between Regions

    Per GB
  • Out to internet

    Per GB, tiered
What each path costs.
  • Gateway endpoints

    S3 and DynamoDB traffic skips the NAT gateway fee.

  • CloudFront

    Free origin fetch, cheaper egress.

  • Same AZ

    Keep chatty tiers together if availability allows.

  • Private IPs

    Public IPs add a charge inside a Region.

Four ways to avoid charges.

是什么

Free: data into AWS, and traffic between resources in the same AZ over private IP addresses. Charged: traffic between AZs in a Region (a small per-GB fee in each direction), traffic between Regions, and traffic out to the internet. Internet egress gets cheaper per GB as volume grows, and a small amount each month is free. Traffic between instances over public or Elastic IP addresses is charged even inside one AZ, so use private addresses.

是什么

Design rules. Keep chatty tiers in the same AZ when the availability need allows it. Use private IPs. Use a gateway endpoint for S3 and DynamoDB, which is free, instead of a NAT gateway. Use CloudFront for internet delivery: the fetch from an AWS origin to CloudFront is free, and CloudFront egress is usually cheaper than direct egress from EC2 or S3. Compress and cache. Copy across Regions only what you need. Traffic from S3 to EC2 in the same Region is free.

There is a trade-off. Spreading a workload over AZs raises availability and adds cross-AZ fees. Decide per tier what the workload is worth.

要记住

  • Free: inbound, and private traffic inside one AZ.
  • Cross-AZ: charged in each direction. Cross-Region: charged per GB.
  • Internet out: charged per GB, cheaper at higher volume.
  • Traffic over public or Elastic IPs is charged even inside one AZ. Use private IPs.

要记住

  • S3 and DynamoDB gateway endpoints are free. A NAT gateway adds a per-GB fee.
  • CloudFront fetches from AWS origins for free, and its egress is usually cheaper.

考试中

  • “Reduce transfer cost between an application and its database” points to the same AZ (if availability allows) and private IPs.
  • “Cut internet egress for global static content” points to CloudFront.
  • “Private subnet reads a lot of S3 through a NAT gateway” points to a gateway VPC endpoint.