Skip to content
GKgkml.dev
← Learn AWS Cloud

Lesson 4 of 7 · 9 min

Storage: object, block and file

Pick between S3, EBS and EFS on access pattern, and use storage classes without getting caught by minimums.

The three kinds

TypeServiceAccessUse when
ObjectS3HTTP API, flat key namespaceFiles, backups, static assets, data lakes
BlockEBSAttached to one instance as a diskBoot volumes, databases, low-latency I/O
FileEFS, FSxMounted by many instances at onceShared content, lift-and-shift file workloads

S3 essentials

Objects live in buckets with globally unique names. There are no real folders — slashes in a key are just characters the console displays as a hierarchy. A single object can be up to 5 TB, and anything over 5 GB must use multipart upload.

S3 Standard is designed for eleven nines of durability by storing redundantly across at least three AZs. Since 2020 it also provides strong read-after-write consistency, including for overwrites and listings — older material describing eventual consistency is out of date.

Storage classes

ClassRetrievalRight for
StandardImmediateFrequently accessed data
Intelligent-TieringImmediateUnpredictable access — moves objects automatically
Standard-IAImmediate, retrieval feeKnown-infrequent access, 30-day minimum
One Zone-IAImmediateRe-creatable data; lost if that AZ is lost
Glacier InstantImmediateQuarterly access at archive pricing
Glacier FlexibleMinutes to hoursArchives with occasional retrieval
Deep Archive~12 hoursLong-term compliance retention

Protecting data

Versioning keeps every version, so a delete writes a marker rather than destroying data. It is the prerequisite for replication and for most recovery scenarios — but without a lifecycle rule expiring noncurrent versions, storage grows without bound.

Object Lock in compliance mode enforces write-once retention that not even the root user can shorten, which is what regulators and ransomware defences require. Governance mode allows a privileged override, so it is not equivalent.

Worth remembering

  • S3 is object storage — flat keys, HTTP access, no file-system semantics.
  • EBS attaches to one instance; EFS mounts on thousands.
  • Storage classes have minimum durations and per-object overhead that can outweigh the saving.

Test it now

Storage-class and lifecycle economics are heavily tested.