Skip to Content
Asterrr's Handbook
2 · New solutions

Amazon S3

Storage classes and lifecycle, versioning, replication, Object Lock, encryption, performance, events and transfer options, with the limits the exam asks about.

Exam tasks: 2.2 (replication and DR), 2.5, 2.6 (storage cost), 4.2 (data transfer), 3.2

The decision: how often is the data read, how long must it live, and what must protect it from deletion, loss of a Region or the wrong reader? S3 has a feature for each, and the exam names the requirement and not the feature.

S3 is regional object storage with 11 nines of durability and strong read-after-write consistency for all operations.

Region ARegion B, other accounttransitionnew objectreplicationSource bucket,versioning onLifecycle:Standard-IA,GlacierEventnotificationLambdaReplica bucket,Object Lock
A bucket protects data in layers. Versioning and Object Lock guard against deletion, lifecycle rules move data to cheaper classes, and replication copies it to another Region.
5 TB / 5 GB
Largest object, and largest single PUT. Use multipart above that, and from about 100 MB up
5,500 / 3,500
GET and write requests per second, per prefix
30 / 90 / 180
Minimum days: Standard-IA, Glacier Instant and Flexible, Deep Archive
128 KB
Minimum billable size in the infrequent access classes
Strong
Read-after-write consistency for every request

Storage classes

Frequent access · higher storage costRare access · lowest storage cost
  1. S3 Standard
    ms access · no minimums

    Active data, no retrieval fee. Express One Zone is the single-AZ, lowest-latency option for hot data.

  2. Intelligent-Tiering
    ms access · monitoring fee

    Moves objects between tiers by access pattern. No retrieval fees. Optional archive tiers.

  3. Standard-IA / One Zone-IA
    ms access · 30-day minimum

    Monthly or rarer access. Retrieval fee per GB. One Zone-IA only for data you can recreate.

  4. Glacier Instant Retrieval
    ms access · 90-day minimum

    Quarterly access, but needed immediately when it is.

  5. Glacier Flexible Retrieval
    minutes to hours · 90-day minimum

    Backups and archives. Expedited, standard and free bulk retrievals.

  6. Glacier Deep Archive
    12–48 hours · 180-day minimum

    Compliance archives kept for years. The cheapest storage.

  • Intelligent-Tiering is the answer when access patterns are unknown or changing. Known patterns are cheaper with lifecycle rules, such as Standard for 30 days, then Standard-IA, then Glacier after 180 days.
  • Lifecycle transitions are billed per object. Moving millions of tiny objects to Glacier can cost more than it saves; aggregate them first.
  • Expire old noncurrent versions and incomplete multipart uploads with lifecycle rules too.
  • Use S3 Storage Lens and storage class analysis to find candidates.

Versioning, replication and locks

FeatureWhat it doesRemember
VersioningKeeps every version, a delete adds a delete markerCan be suspended, never fully removed. MFA delete protects permanent deletes
Replication (SRR, CRR)Copies new objects to another bucket, Region or accountNeeds versioning on both buckets and an IAM role. Existing objects need Batch Replication. It is not transitive
Replication Time ControlA 15-minute replication target with metricsUse it when the replica has an RPO
Object LockWORM retention: governance (privileged users can override) or compliance (nobody can, including root), plus legal holdsNeeds versioning. Turn on at creation or later
LifecycleTransitions and expirations by ageAlso expire old versions and incomplete multipart uploads
Inventory and Storage LensReports on objects and usageFind lifecycle candidates

Replication does not copy history

Turning on replication affects new objects only. A question about copying an existing 10 TB bucket needs Batch Replication, or S3 Batch Operations with a copy job. Delete markers are not replicated unless you choose to.

Encryption

  • All new objects are encrypted at rest by default with SSE-S3. Choose SSE-KMS for key policy control and an audit trail of key use, DSSE-KMS for two layers, or SSE-C where you supply the key with each request.
  • SSE-KMS counts KMS requests, so very busy buckets enable S3 Bucket Keys to cut those calls and the cost.
  • Enforce encryption and HTTPS with a bucket policy using s3:x-amz-server-side-encryption and aws:SecureTransport.
  • Access control, Block Public Access and access points are on private S3 access.

Performance and transfer

  • Each prefix supports 5,500 reads and 3,500 writes per second, so spread keys across prefixes to scale further.
  • Multipart upload parallelizes large objects and retries parts. Byte-range fetches parallelize downloads.
  • Transfer Acceleration routes uploads through CloudFront edge locations to the bucket, for users far from the Region.
  • S3 Express One Zone (directory buckets) gives single-digit millisecond access in one AZ for latency-sensitive data.
  • Requester Pays bills the requester for transfer and requests, which suits datasets shared with other accounts.
  • Event notifications go to Lambda, SQS, SNS or EventBridge. EventBridge adds filtering and many targets.

Glacier retrievals

ClassRetrieval options
Glacier Instant RetrievalMilliseconds
Glacier Flexible RetrievalExpedited 1 to 5 minutes, standard 3 to 5 hours, bulk 5 to 12 hours
Glacier Deep ArchiveStandard within 12 hours, bulk within 48 hours

Scenarios

Scenario
A bank must keep monthly statements for seven years so that no one, including administrators and the root user, can delete or alter them before the period ends. Which configuration meets this?
Scenario
A company stores 600 TB of analytics logs. Logs are read often for 30 days, rarely for the next 11 months, then must be kept seven years but are almost never read, with retrieval within 12 hours acceptable. Which lifecycle policy minimizes cost?
Scenario
An existing 20 TB bucket in Region A must now also exist in Region B for disaster recovery, with new objects arriving within minutes. Replication was just configured. A week later the team notices Region B holds only recent objects. How do they copy the older ones?

Further reading

On this page