Lesson 2 of 3 AWS Pricing Models

Understanding Data Transfer and Storage Pricing

This lesson explains the few simple rules that govern the pricing of moving and storing data, which come up often in the exam.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify which data transfers are free and which are charged.
  • Distinguish pay-for-what-you-use storage from pay-for-what-you-provision storage.
  • Describe the AWS Free Tier and the AWS Pricing Calculator.

Data transfer

Data transfer charges depend on where data goes. Data coming into AWS from the internet is free. Data going out of AWS to the internet is charged per gigabyte, with lower prices at higher volumes. Moving data between Regions is charged, and so is moving it between Availability Zones within a Region. Traffic within one Availability Zone using private IP addresses is free. Designs that keep traffic inside AWS and inside one Region where possible therefore cost less. The following table summarises the rules.

TransferCost
Into AWS from the internetFree
Out of AWS to the internetCharged per GB, at tiered prices
Between RegionsCharged
Between Availability Zones in a RegionCharged
Within one AZ using private IPsFree

Amazon CloudFront often lowers delivery costs while improving speed, and keeping traffic inside AWS and in one Region also helps.

The following diagram marks which data movements are charged.

Which data transfers are charged. Data coming into AWS from the internet is free. Data going out to the internet is charged per gigabyte at tiered prices. Data moving between Regions is charged, and so is data moving between Availability Zones in a Region. Traffic within one Availability Zone using private IP addresses is free. CloudFront often lowers the cost of delivering content to users.
Data into AWS is free; data out to the internet is usually the largest transfer cost.
Sort into groups

Free or charged?

Exam skills 4.1.4

Decide whether each data transfer is free or charged.

Log in to try this activity Interactive activities are free with an account.

Storage pricing

Storage services are billed in different ways, and the main difference is whether you pay for what you use or what you reserve. Amazon S3 charges for the data stored each month, at a price that depends on the storage class, plus requests, retrievals from infrequent-access and archive classes, and data transferred out; colder classes such as Glacier are cheaper to store but cost more, and take longer, to retrieve. Amazon EBS charges for the size of the volume you provision, whether or not it is full, plus any extra performance and snapshots. Amazon EFS charges only for the storage you actually use. The following table summarises the models.

ServiceYou pay for
Amazon S3Storage per GB-month by class, requests (PUT, GET), retrieval from infrequent-access and archive classes, and data transfer out. Colder classes such as Glacier are cheaper to store but cost more, and take longer, to retrieve
Amazon EBSThe provisioned volume size, used or not, plus provisioned performance and snapshots
Amazon EFSThe storage you actually use
Sort into groups

How is storage billed?

Exam skills 4.1.5

Decide what you pay for with each storage service.

Log in to try this activity Interactive activities are free with an account.

Trying and estimating

AWS provides ways of trying services at no cost and of estimating costs before building. They are as follows.

  • The AWS Free Tier offers many services free within limits: always-free offers (such as Lambda requests each month), free trials and new-customer offers.
  • The AWS Pricing Calculator estimates costs before you build.
Worked example

What the bill includes for a video site

A video-sharing start-up stores 5 TB of videos in S3 and serves 50 TB a month to viewers. Looking at each part of the bill:

ActivityCharged?
Users uploading videos to S3No: data into AWS is free
Storing 5 TB in S3 StandardYes: per GB-month
Viewers downloading 50 TB a month directly from S3Yes: data out to the internet, per GB
Copying videos to an EC2 instance in the same AZ over private IPsNo
Copying backups to another RegionYes: inter-Region transfer

Data transfer out is the biggest line. Putting CloudFront in front of S3 caches popular videos at edge locations, usually lowering delivery cost and making playback faster. Moving old, rarely watched videos to a cheaper S3 storage class lowers the storage line too.

Check yourself

Is data transferred into AWS from the internet charged?

Show answer

No, inbound data transfer is generally free. Data transferred out to the internet is charged.

Exam Tips

Remember for the exam

  • Data transferred in from the internet is free.
  • Data transferred out to the internet is charged per GB.
  • Cheaper S3 storage classes have higher retrieval costs.
  • EBS bills for provisioned capacity, whether or not it is used.
  • To reduce content delivery costs and latency, use CloudFront.