New

Claude certification practice exams and study guides are now availableNew: Claude exams

See Claude exams (opens in a new tab)
Skip to content
Tutorials Dojo

Amazon S3

S3 stores objects in buckets. Choose a storage class by how often you read an object and how long you can wait to retrieve it.

Reading an S3 URI
s3://example-bucket/notes/s3.pdf
Bucket
example-bucket
Object key
notes/s3.pdf

Storage classes

Amazon S3 storage classes by use case and retrieval time
Storage classWhen to use itRetrieval
StandardFrequently read files, such as website images.Retrieval · MillisecondsMilliseconds
Intelligent-TieringObjects whose popularity changes over time.Retrieval · Tier-dependentTier-dependent
Standard-IAInfrequent reads with copies across availability zones.Retrieval · MillisecondsMilliseconds
One Zone-IAInfrequent reads of data you can recreate after losing a zone.Retrieval · MillisecondsMilliseconds
Express One ZoneLatency-sensitive work in a directory bucket in one zone.Retrieval · Single-digit millisecondsSingle-digit milliseconds
Glacier Instant RetrievalArchives that must open immediately when requested.Retrieval · MillisecondsMilliseconds
Glacier Flexible RetrievalArchives that can wait for a restore job.Retrieval · Minutes to hoursMinutes to hours
Glacier Deep ArchiveLong-term records that can tolerate a longer restore.Retrieval · Typically 12–48 hoursTypically 12–48 hours

Intelligent-Tiering serves objects in milliseconds from its instant-access tiers. The optional Archive Access and Deep Archive Access tiers require a restore.

AWS storage class documentation

Lifecycle rules

A rule can apply to a whole bucket or a subset of objects, such as keys beginning with logs/.

Transition
Move eligible objects into another storage class as they age. For example, archive older log files after the period when you regularly read them.
Expiration
Set a retention period. In a versioned bucket, expiring the current version generally adds a delete marker. Configure noncurrent-version expiration to remove older versions.
AWS lifecycle documentation

Access control

IAM and bucket policies
Grant the actions a workload needs. Listing keys in a bucket and reading the contents of an object require different permissions.
Block Public Access
Use these settings to restrict public access. New general purpose buckets have all four settings enabled by default.
AWS access management documentation

This quick reference draws on the full Tutorials Dojo S3 cheat sheet, which also covers replication, encryption and monitoring.