← Solutions Architect Associate study path

Performance and cost · 13 min

Block, file or object storage on AWS

In this lesson you will learn what the three types of AWS storage are, when to use Amazon EBS, the instance store, Amazon EFS, Amazon FSx or Amazon S3, and which service to use to move data to AWS online or offline.

Storage is the place where an application keeps its data so that it is still there tomorrow: photos, documents, sales records. On the SAA-C03 exam, a storage question describes an application and asks you for the service where its data should live. The AWS decision guide settles that choice with a question that comes before any service: does the application read the data like a disk, like a shared folder or by requesting items one by one over the internet? For example, an online store keeps its database on a disk, the images its employees upload in a shared folder and its product photos in a store that visitors reach over the internet.

Types of storage on AWS

On AWS, the computers you rent are called Amazon EC2 , and each type of storage delivers data to them in a different way. AWS divides storage into three types, and each one has its own services:

  • Block storage, where data is split into blocks of the same size and the instance sees them as an attached disk, just like the hard drive in a laptop. Its services are Amazon EBS and the EC2 instance store.
  • File storage, where data is stored in folders and files that several machines open at the same time, like a shared folder in an office. The machines connect with such as NFS and SMB, and the services are Amazon EFS and the Amazon FSx family.
  • Object storage, where each file is stored whole as an object with a unique name and data that describes it, such as its type or its date. Programs read and write it over the internet with an , and the service is Amazon S3.

Table that compares block, file and object in four rows: how it is accessed, who uses it, where the data lives and whether it is mounted as a disk

What separates the three types the most is who uses the data: a block volume belongs to a single instance, a file system is shared by many and a bucket, which is the container where S3 stores objects, is used by anyone who has permission. Where the data lives also changes, and what happens to it if an goes down depends on that. For example, the disk for the store's database is used only by the database instance, while any visitor can request the product photos in S3.

Amazon EBS or instance store?

Amazon EBS and the instance store are both block storage, but they store data differently. An Amazon EBS volume is a virtual disk that connects to the instance over the AWS network, keeps the data even if you stop the instance and lives in a single Availability Zone. Because it attaches to a single instance, an EBS volume doesn't work for ten servers that read and write the same images, no matter how large or fast it is. For example, the store puts its database on an EBS volume, because only one instance uses it and the orders can't be lost if that instance restarts.

The instance store, on the other hand, is made up of disks physically attached to the server where your instance runs. It isn't charged separately, because it is included in the price of the instance, but its data is lost when the instance stops. That is why AWS recommends it for , caches and temporary data, or for data that is already copied to other instances in a group. For example, the store can keep copies of its most visited pages in the instance store, because if they are erased it creates them again from the database.

Amazon EFS or Amazon FSx?

Amazon EFS is a file system that many instances open at the same time with the NFS protocol. A Regional EFS file system stores data across several Availability Zones, and each zone has a mount target, which is the network endpoint through which the instances in that zone connect to the file system.

A Regional EFS file system with a mount target in each zone and two EC2 instances that mount it in each zone

Each instance connects to the mount target in its own zone, and all the instances see the same files even if they are in different zones. That is the difference from an EBS volume, which can't be shared that way across zones. For example, if the store has ten Linux instances in two zones and all of them save the images that sellers upload, with EFS an image that one instance uploads is seen right away by the other nine.

The four Amazon FSx services with the client or workload of each one: for Windows File Server, for Lustre, for NetApp ONTAP and for OpenZFS

Amazon FSx, for its part, is a family of four services based on file systems that companies already know, and each one is chosen by the file system or the type of computer that the scenario names:

  • Amazon FSx for Windows File Server, which is for Windows computers that connect with SMB.
  • Amazon FSx for Lustre, which is for Linux in workloads where speed rules, such as , scientific calculations on many machines at once (HPC), video and financial modeling, and which integrates with S3.
  • Amazon FSx for NetApp ONTAP, which offers NFS and SMB at the same time over the same data, for companies with both Linux and Windows machines or for moving NetApp-brand systems they already have to AWS.
  • Amazon FSx for OpenZFS, which is used to move ZFS file servers or other Linux file servers to AWS.

For example, if the store's office employees use Windows and open their shared folders with SMB, the service is FSx for Windows File Server. On the other hand, if a team of scientists runs a calculation on a hundred Linux machines with data that is already in S3, the service is FSx for Lustre.

When is Amazon S3 used?

Amazon S3, the object storage service, is designed for read-heavy workloads, such as distributing content, hosting websites, analyzing data and training machine learning models, with data that is reached over the internet. You don't have to attach it to an instance: each program or browser requests the object it needs by its name. For example, the store's product photos go in S3, because millions of visitors request them from their phones and no instance has to sit in between.

Which type of storage does it need?

0 of 5

Tap the correct column for each workload.

  1. The MySQL database you installed on an EC2 instance

  2. Ten Linux instances that read and write the same images uploaded by users

  3. Product photos served to millions of visitors over the internet

  4. Temporary cache data that can be lost if the instance stops

  5. Shared Windows folders for employees, with SMB

How is data moved to AWS?

Moving data to AWS means copying what a company has in its to an AWS storage service. The decision guide splits that migration into two paths. The online path uses the network and measures the copy in minutes or hours, although it takes up the the company uses day to day. The offline path uses physical disks, takes days and is meant for a one-time move when the network isn't enough. For example, a school that copies the new homework to AWS every night uses the online path, while a company with years of video and a slow connection brings its disks in person.

The services to move data to AWS: DataSync, Transfer Family and Storage Gateway over the network, and Data Transfer Terminal with physical disks

For the online path, the guide suggests three services:

  • AWS DataSync, which copies data between your data center, other clouds and AWS, and on each copy moves only what changed since the previous one.
  • AWS Transfer Family, which gives you an SFTP, FTPS or FTP server managed by AWS, which are common ways to send files between companies, and which stores the files in S3.
  • AWS Storage Gateway, which lets the servers you have in your office use storage backed by AWS.

For example, if the store's suppliers send it their price list every day over SFTP, Transfer Family receives those files and puts them in S3 without the store having to maintain a server of its own.

For the offline path there is AWS Data Transfer Terminal, a physical location where you bring your disks to upload the data over a high-speed connection. This service is currently available only to AWS Enterprise Support customers, which is the highest AWS support plan. For example, a company that is going to move a huge video archive only once can bring its disks to that location instead of tying up its network for weeks.

cloud path tip: if your study material mentions the Snow family, the decision guide says it is no longer available to new customers and that AWS ends support for Snowball in the commercial Regions on December 31, 2026.

How do you move the data?

A company has 40 TB on an on-premises NFS server and wants to copy it to Amazon EFS. The copy has to be incremental and repeat every night until cutover day. Outside business hours it has good bandwidth. What does it use?

If your account uses the new experience

In a new experience account, S3, EBS, EFS and DataSync are in the free plan, and Storage Gateway needs the paid plan. Amazon FSx and AWS Transfer Family aren't available, so you study those two in theory or try them in a full account. For example, you can create an EFS file system to practice in your account, but not an FSx for Windows File Server.

On the exam

The questions on this topic describe an application and ask you for the storage. These words in the question point to the answer:

  • "Several instances", "shared", "NFS" or "Linux", which point to Amazon EFS.
  • "Windows", "SMB" or "Active Directory", which point to FSx for Windows File Server.
  • "A single instance", "database" or "boot volume", which point to Amazon EBS.
  • "Copy or synchronize data from a data center", which points to DataSync, and "SFTP", which points to Transfer Family.

For example, if the question says "twenty Linux servers have to read the same files", the word "Linux" and the fact that the files are shared point to Amazon EFS.

Review question

A genomics company processes files on a cluster of Linux EC2 instances. The input data is in Amazon S3 and the process needs the fastest possible file system for a few hours. When it finishes, the results go back to S3. Which solution achieves this with the LEAST operational overhead?

Next

  • Choosing an AWS storage service, the AWS decision guide. The table in the "Choose" section compares the storage services.
  • Take a Solutions Architect practice exam at /examenes and review your results in the high-performing architectures domain.