Storage services
Choose the right storage service for objects, blocks and files, and match S3 storage classes to how often data is read.
16 min
AWS offers three kinds of storage. Start by naming the kind:
- Object storage: Amazon S3. Store any amount of data as objects in buckets, reached over HTTP. Designed for 99.999999999% (11 nines) durability. Great for backups, static websites, data lakes and media.
- Block storage: Amazon EBS. A virtual hard drive attached to one EC2 instance, living in one Availability Zone. Use snapshots to back it up. Instance store is temporary storage on the host and is lost when the instance stops or is terminated.
- File storage: Amazon EFS and Amazon FSx. EFS is a shared Linux file system many instances can mount at once, across AZs. FSx offers managed file systems for specific needs: Windows File Server, Lustre (high-performance computing), NetApp ONTAP and OpenZFS.
Other helpers: AWS Storage Gateway (connect on-premises to cloud storage), AWS Backup (central backup policies), AWS DataSync (move large data online), and the AWS Snow Family (physical devices to move data or compute at the edge).
S3 storage classes: from frequent to rare access
S3 Standard
- Use it when
- Data accessed often
- Retrieval
- Immediate
S3 Intelligent-Tiering
- Use it when
- Unknown or changing access pattern. S3 moves objects between tiers for you
- Retrieval
- Immediate for frequent and infrequent tiers
S3 Standard-IA
- Use it when
- Rarely accessed but needs fast access, kept in 3 or more AZs
- Retrieval
- Immediate, with a retrieval fee
S3 One Zone-IA
- Use it when
- Rarely accessed, re-creatable data. Stored in one AZ, so cheaper and less resilient
- Retrieval
- Immediate, with a retrieval fee
S3 Glacier Instant Retrieval
- Use it when
- Archive read about once a quarter, needing milliseconds
- Retrieval
- Milliseconds
S3 Glacier Flexible Retrieval
- Use it when
- Archive, retrieval in minutes to hours is fine
- Retrieval
- Minutes to hours
S3 Glacier Deep Archive
- Use it when
- Lowest cost, long-term retention such as compliance records
- Retrieval
- Hours (about 12 or more)
A **lifecycle policy** automatically moves objects to cheaper classes or deletes them after a number of days.
S3, EBS and EFS side by side.
Amazon S3
- Type
- Object
- Scope
- Regional, accessed over the internet or API
- Attach to
- No attachment, accessed by URL or API
Best for Backups, media, data lakes, static sites
Amazon EBS
- Type
- Block
- Scope
- One Availability Zone
- Attach to
- One EC2 instance at a time (typical)
Best for Boot volumes, databases on EC2
Amazon EFS
- Type
- File (NFS)
- Scope
- Regional, many AZs
- Attach to
- Many Linux instances at once
Best for Shared content, home directories
Choose the storage.
A company must keep seven years of financial records, almost never read, as cheaply as possible.
“An EBS volume can be shared by all EC2 instances in the Region.”
It is called 'Elastic', which sounds like it spreads everywhere.
What is actually true
A standard EBS volume lives in one Availability Zone and attaches to one instance. For a shared file system, use EFS.
- S3 is object storage with 11 nines durability, EBS is block storage in one AZ, and EFS is shared file storage.
- Choose an S3 class by access frequency: Standard, Intelligent-Tiering, IA, then Glacier tiers for archives.
- Lifecycle policies move data between classes automatically.
- Snow Family devices move data physically. DataSync moves it online. Storage Gateway bridges on-premises and cloud.
Pick the storage.
Which S3 storage class is designed for the lowest-cost long-term archive with retrieval in hours?
- AS3 Standard
- BS3 Glacier Deep Archive
- CS3 One Zone-IA
- DS3 Intelligent-Tiering
A workload's access pattern is unknown and changes over time. Which class automatically moves objects between access tiers?
- AS3 Glacier Flexible Retrieval
- BS3 One Zone-IA
- CS3 Intelligent-Tiering
- DS3 Standard-IA
Which storage service provides a block device for an EC2 instance's operating system?
- AAWS Storage Gateway
- BAmazon EFS
- CAmazon EBS
- DAmazon S3
Which service provides a managed file system for Windows applications?
- AAmazon S3
- BAmazon Glacier
- CAmazon FSx for Windows File Server
- DAmazon EBS
Order these S3 classes from fastest retrieval to slowest: Standard, Glacier Flexible Retrieval, Glacier Deep Archive.
- AGlacier Flexible Retrieval
- BStandard
- CGlacier Deep Archive
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of AWS Certified Cloud Practitioner (CLF-C02) is planned around your week. Free.