概念 · 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
| Path | Price |
|---|---|
| Into AWS | Free |
| Same AZ, private IP | Free |
| Between AZs | Per GB each way |
| Between Regions | Per GB |
| Out to internet | Per GB, tiered |
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.
概要
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.
混同しやすいもの
- NAT gateway cost designA NAT gateway bills per hour and per GB, so place it by AZ and send heavy traffic around it.
- Cost of network connectivityCompare the cost shape of each link: hourly fee, port fee, data-out price and how bandwidth is sized.
- CDN and edge caching for costA CDN pays off when many requests are served from cache. Tune the hit ratio and the price class.
ほかのタスクにも登場
このタスクの内容 · 4.4
- Data transfer cost design
- NAT gateway cost design
- Cost of network connectivity
- CDN and edge caching for cost
- Throttling strategies
Organizations
- Subnets, route tables, gateways and NAT
- VPC endpoints
Load Balancing
Route 53
- Service Quotas
- VPC peering
Transit Gateway
PrivateLink
NLB and GWLB
CloudFront
Global Accelerator
- Hybrid connectivity decision
Direct Connect
Site-to-Site VPN
- Cost allocation tags
Cost Explorer
Budgets
Cost and Usage Reports
- Multi-account billing