Choose the Right Storage Service

Learning Objectives

After completing this unit, you’ll be able to:

  • Summarize the functions of each AWS storage service.
  • Explain when to use each AWS storage service.

In this module, you learned mostly about Amazon EBS and Amazon S3. However, there were also brief mentions about other storage types and AWS services as well. In this unit, we recap all of the storage services mentioned and answer the question, “Which storage service should I use?” for some of the most common scenarios. 

Amazon EC2 Instance Store

Icon for Amazon EC2 instances, depicting storage existing on the instance.

Instance store is ephemeral block storage. This is preconfigured storage that exists on the same physical server that hosts the EC2 instance and cannot be detached from Amazon EC2. You can think of it as a built-in drive for your EC2 instance. 

Instance store is generally well-suited for temporary storage of information that is constantly changing, such as buffers, caches, and scratch data. It is not meant for data that is persistent or long-lasting. 

If you need persistent long-term block storage that can be detached from Amazon EC2 and provide you more management flexibility, such as increasing volume size or creating snapshots, then you should use Amazon EBS. 

Amazon EBS

Icon for Amazon EBS, a data volume with arrows pointing outward depicting scale.

Amazon EBS is meant for data that changes frequently and needs to persist through instance stops, terminations, or hardware failures. Amazon EBS has two different types of volumes: SSD-backed volumes and HDD-backed volumes.

SSD-backed volumes have the following characteristics. 

  • Performance depends on IOPS (input/output operations per second).
  • Ideal for transactional workloads such as databases and boot volumes.

HDD-backed volumes have the following characteristics: 

  • Performance depends on MB/s.
  • Ideal for throughput-intensive workloads, such as big data, data warehouses, log processing, and sequential data I/O.

Here are a few important features of Amazon EBS that you need to know when comparing it to other services. 

  • It is block storage.
  • You pay for what you provision (you have to provision storage in advance).
  • EBS volumes are replicated across multiple servers in a single Availability Zone.
  • Most EBS volumes can only be attached to a single EC2 instance at a time.

Amazon S3

Service icon for Amazon S3 depicted by a bucket with a handle.

If your data doesn’t change that often, Amazon S3 might be a more cost-effective and scalable storage solution. S3 is ideal for storing static web content and media, backups and archiving, data for analytics, and can even be used to host entire static websites with custom domain names.

Here are a few important features of Amazon S3 to know about when comparing it to other services. 

  • It is object storage.
  • You pay for what you use (you don’t have to provision storage in advance).
  • Amazon S3 replicates your objects across multiple Availability Zones in a Region.
  • Amazon S3 is not storage attached to compute.

Amazon Elastic File System (Amazon EFS) and Amazon FSx

Amazon EFS depicted bfiy a file folder and cloud with arrows indicating scale, and Amazon FSx service icons.

In this module, you’ve already learned about Amazon S3 and Amazon EBS. You learned that S3 uses a flat namespace and isn’t meant to serve as a standalone file system. You also learned most EBS volumes can only be attached to one EC2 instance at a time. So, if you need file storage on AWS, which service should you use?

For file storage that can mount on to multiple EC2 instances, you can use Amazon Elastic File System (Amazon EFS) or Amazon FSx. Use the following table for more information about each of these services. 

Service Characteristic More Information

Amazon Elastic File System (EFS)

Fully managed NFS file system. 


Amazon FSx for Windows File Server 

Fully managed file server built on Windows Server that supports the SMB protocol. 

FSx for Windows File Server FAQs

Amazon FSx for Lustre 

Fully managed Lustre file system that integrates with S3. 

FSx for Lustre FAQs

Here are a few important features of Amazon EFS and FSx to know about when comparing them to other services. 

  • It is file storage.
  • You pay for what you use (you don’t have to provision storage in advance).
  • Amazon EFS and Amazon FSx can be mounted onto multiple EC2 instances.

Wrap Up

When choosing the right storage option for your use case, keep in mind pricing models, durability and availability characteristics, and the three categories of storage. Your cat photo application now uses two kinds of storage: Amazon EBS for your cat photo application boot drive and system files, and Amazon S3 for storage of the actual cat photos.

In the next module, you learn about a more structured type of storage: databases. 


Lernen Sie weiter kostenlos!
Registrieren Sie sich für einen Account, um fortzufahren.
Was ist für Sie drin?
  • Holen Sie sich personalisierte Empfehlungen für Ihre Karriereplanung
  • Erproben Sie Ihre Fähigkeiten mithilfe praktischer Aufgaben und Quizze
  • Verfolgen Sie Ihre Fortschritte nach und teilen Sie sie mit Arbeitgebern
  • Nutzen Sie Mentoren und Karrierechancen