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.
Storage classes
- S3 Standardms access · no minimums
Active data, no retrieval fee. Express One Zone is the single-AZ, lowest-latency option for hot data.
- Intelligent-Tieringms access · monitoring fee
Moves objects between tiers by access pattern. No retrieval fees. Optional archive tiers.
- Standard-IA / One Zone-IAms access · 30-day minimum
Monthly or rarer access. Retrieval fee per GB. One Zone-IA only for data you can recreate.
- Glacier Instant Retrievalms access · 90-day minimum
Quarterly access, but needed immediately when it is.
- Glacier Flexible Retrievalminutes to hours · 90-day minimum
Backups and archives. Expedited, standard and free bulk retrievals.
- Glacier Deep Archive12–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
| Feature | What it does | Remember |
|---|---|---|
| Versioning | Keeps every version, a delete adds a delete marker | Can be suspended, never fully removed. MFA delete protects permanent deletes |
| Replication (SRR, CRR) | Copies new objects to another bucket, Region or account | Needs versioning on both buckets and an IAM role. Existing objects need Batch Replication. It is not transitive |
| Replication Time Control | A 15-minute replication target with metrics | Use it when the replica has an RPO |
| Object Lock | WORM retention: governance (privileged users can override) or compliance (nobody can, including root), plus legal holds | Needs versioning. Turn on at creation or later |
| Lifecycle | Transitions and expirations by age | Also expire old versions and incomplete multipart uploads |
| Inventory and Storage Lens | Reports on objects and usage | Find 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-encryptionandaws: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
| Class | Retrieval options |
|---|---|
| Glacier Instant Retrieval | Milliseconds |
| Glacier Flexible Retrieval | Expedited 1 to 5 minutes, standard 3 to 5 hours, bulk 5 to 12 hours |
| Glacier Deep Archive | Standard within 12 hours, bulk within 48 hours |
Scenarios
Compliance mode cannot be shortened or removed by anyone during retention. Governance mode can be overridden by users with the right permission, so it does not meet an "even root" requirement. A bucket policy can be edited by an administrator, and MFA delete works only with versioning on and can be disabled by the root user.
The access pattern is known, so lifecycle rules beat Intelligent-Tiering. Standard-IA fits the rare reads, and the archive classes fit multi-year retention with relaxed retrieval. Staying in Standard overpays. The scenario does not say the logs are reproducible, so One Zone-IA risks them, and moving to Instant Retrieval after a day breaks the 30 days of frequent reads.
Replication rules apply to new objects. Batch Replication replicates objects that existed before the rule, as well as those that failed. Recreating the rule does not backfill, Transfer Acceleration speeds uploads, and suspending versioning would break replication.
Related
- Private S3 access: presigned URLs, OAC, access points and Block Public Access.
- Pricing models: storage cost levers and data transfer.
- Data transfer: getting data into S3.
Further reading
Caching
Where to cache (CloudFront, API Gateway, ElastiCache, DAX), how to raise the CloudFront cache hit ratio, and how to make a cache layer fault tolerant.
EBS, EFS, FSx and Storage Gateway
Choosing between EBS volume types, EFS, the FSx family, instance store and Storage Gateway, with the limits the exam asks about.