Volume 5 · Chapter 8 — Storage and Databases
S3 in Depth: Storage Classes, Lifecycle, Replication, and Protection
8.1 Introduction
S3 is one of the most feature-rich and heavily-tested services. The fundamentals chapter covered the basics; the exam demands precise knowledge of every storage class, lifecycle transitions, versioning and Object Lock, replication, the encryption options, and features like access points, S3 Select, and Transfer Acceleration. This chapter provides that depth.
8.2 The Storage Classes in Detail
S3 offers a spectrum of storage classes trading cost against access.S3 Standard: frequent access, high durability and availability across ≥3 AZs.S3 Intelligent-Tiering: automatically moves objects between access tiers based on usage - ideal when access patterns are unknown, for a small monitoring fee.S3 Standard-IA(Infrequent Access): cheaper storage, retrieval fee, still multi-AZ - for infrequently accessed but rapidly-needed data.S3 One Zone-IA: like Standard-IA but stored in a single AZ (cheaper, but data is lost if that AZ is destroyed) - for reproducible/secondary data. Then the archives:Glacier Instant Retrieval(archive with millisecond access),Glacier Flexible Retrieval(minutes-to-hours retrieval, cheaper), andGlacier Deep Archive(cheapest, hours retrieval) for long-term compliance archives. The exam pattern: match access frequency and retrieval-time tolerance to the class, use Intelligent-Tiering when the pattern is unknown, and One Zone-IA only for non-critical reproducible data.
flowchart LR Std[S3 Standard - frequent] --> IA[Standard-IA - infrequent, multi-AZ] IA --> Oz[One Zone-IA - infrequent, single AZ] Std -.unknown pattern.-> IT[Intelligent-Tiering - auto] IA --> GIR[Glacier Instant - ms archive] GIR --> GFR[Glacier Flexible - min-hrs] GFR --> GDA[Glacier Deep Archive - hrs, cheapest]
8.3 Lifecycle, Versioning, and Object Lock
Lifecycle policiesautomate two actions:transitionobjects to cheaper classes as they age, andexpire(delete) them (including old versions and incomplete multipart uploads) after a period.Versioningkeeps every version of an object so overwrites and deletes are recoverable (a delete adds a delete marker); it’s the basis for protecting against accidental loss and for replication.Object Lockenforces write-once-read-many (WORM) - inGovernancemode (special permission can override) orCompliancemode (no one, not even root, can delete until retention expires), pluslegal holds- essential for regulatory records that must be immutable.MFA Deleteadds an MFA requirement to delete versions. These features make S3 a compliant, recoverable, cost-optimized record store.
8.4 Replication and Encryption
Replicationcopies objects automatically:*Cross-Region Replication (CRR)*for DR, lower-latency access in another Region, or compliance;Same-Region Replication (SRR)for log aggregation or prod-to-test copies. Replication requires versioning and can change storage class and ownership. Forencryption at rest, know the options:SSE-S3(S3-managed keys, default),SSE-KMS(KMS keys for control, audit, and access boundary),SSE-C(customer-provided keys), andDSSE-KMS(dual-layer). You can enforce encryption with a bucket policy that denies unencrypted uploads.Encryption in transitis TLS, enforceable viaaws:SecureTransport. The exam expects you to pick the SSE option by control needs (SSE-KMS for controlled/audited keys) and to know replication needs versioning.
8.5 Access Control and Advanced Features
S3 access is controlled byIAM policies,bucket policies(resource-based, for cross-account and conditions), and legacyACLs(now discouraged; disable them with Object Ownership set to bucket-owner-enforced), all underBlock Public Accesswhich overrides attempts to make data public.S3 Access Pointsprovide named, per-application access configurations (with their own policies) for shared buckets, andMulti-Region Access Pointsgive a single global endpoint routing to the nearest bucket. Useful features:S3 Select(query a subset of an object with SQL, saving transfer),Transfer Acceleration(upload via edge locations for faster long-distance transfers),Presigned URLs(time-limited access to a private object),Event Notifications(trigger Lambda/SQS/SNS/EventBridge on object events),Requester Pays, andStorage Lens(org-wide storage analytics). Note S3 now providesstrong read-after-write consistencyfor all operations. This breadth is exactly what the exam probes.
8.6 Banking Production Scenario
A bank stores statements in S3 Standard, transitioning to Standard-IA after 90 days and Glacier Deep Archive after a year via lifecycle policy, with Intelligent-Tiering for datasets of unknown access pattern. Versioning plus Object Lock in Compliance mode makes regulatory records immutable for their retention period, and Block Public Access is enforced org-wide. Objects are encrypted with SSE-KMS customer-managed keys, with a bucket policy denying unencrypted or non-TLS uploads, and CRR replicates to the DR Region (multi-Region keys keep them decryptable). S3 Access Points give each application a scoped view of a shared bucket, event notifications trigger document processing on upload, presigned URLs grant customers time-limited statement downloads, and Storage Lens reports storage across the organization. This complete S3 design is professional-level data management.
8.7 Chapter Revision Notes
- Classes: Standard, Intelligent-Tiering (auto, unknown patterns), Standard-IA, One Zone-IA (single AZ), Glacier Instant/Flexible/Deep Archive (retrieval time ↑, cost ↓).
- Lifecycle transitions + expires (incl. old versions/incomplete uploads); versioning enables recovery + replication; Object Lock WORM (Governance vs Compliance) + legal holds for immutability.
- CRR (DR/latency/compliance) and SRR (logs/test) require versioning; encryption SSE-S3, SSE-KMS (control/audit), SSE-C, DSSE-KMS; enforce with bucket policy.
- Access via IAM + bucket policies (disable ACLs), under Block Public Access; Access Points and Multi-Region Access Points for shared/global access.
- Features: S3 Select (SQL subset), Transfer Acceleration (edge uploads), presigned URLs, event notifications, Storage Lens; S3 is strongly read-after-write consistent.