Storage classes, versioning and uploads
Choose by how the data is used
S3 storage classes are ways to trade storage cost, access latency, resilience and retrieval cost. For frequently read product images, start by evaluating Standard. For infrequently read but immediately needed records, evaluate Standard-IA. One Zone-IA stores data in one AZ and is unsuitable as the only copy of irreplaceable data. Intelligent-Tiering can adapt to unknown access patterns, but check monitoring charges and small-object rules.
Archives and lifecycle
Glacier Instant Retrieval supports immediate reads, whereas Glacier Flexible Retrieval and Deep Archive require a restore before ordinary retrieval. Choose using the recovery deadline rather than storage price alone. Lifecycle rules can transition or expire matching objects. Minimum storage durations and retrieval, request or transition charges can change the total. Durability describes retention against loss; availability describes ability to access data. Neither is a guarantee of recovery from an authorized accidental deletion.
Versioning makes recovery possible, not automatic
In a versioning-enabled bucket, overwriting an object creates a new version. A normal delete without a version ID adds a delete marker, making the key appear absent to ordinary reads. Previous data versions remain until explicitly removed or expired. To recover, an authorized operator can inspect versions and copy a known good version into the current state; verify content afterward. Every stored data version contributes to storage costs. Versioning is not an independent backup.
Multipart uploads and request limits
Multipart upload sends numbered parts, then completes the object using the part list. Failed parts can be retried without resending all bytes. Unfinished uploaded parts can incur charges until completion or abort. AWS documentation checked on 2026-11-27 lists 10,000 parts, 5 MiB–5 GiB per part except the final part has no minimum, and an approximately 48.8 TiB maximum object size. ListObjectsV2 returns at most 1,000 entries per request. Recheck API and client-specific limits before real work.
Example: recover a report and estimate retained data
The toy history below contains two complete versions and one delete marker. Ordinary GET sees no object, but the prior versions still contain 30 MiB in total. Restoring v1 by copying it creates another data version and increases retained bytes. This counts data only, not billing metadata, requests or real prices. Use a lifecycle plan for noncurrent versions and incomplete multipart uploads, with retention reviewed before deletion.
report.csv: v1 = 10 MiBreport.csv: v2 = 20 MiBreport.csv: v3 = delete marker (current)Practice and safe cleanup
Choose a class for a daily image, a replaceable rarely read export and a long-retention archive that can wait for restoration. For the report history, predict the bytes after copying v1. In a separately approved live lab, inventory all object versions, delete markers and unfinished uploads; review retention and cost, remove only lab-owned resources and verify cleanup. This chapter performs none of those actions.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Storage classes, versioning and uploads — knowledge check
Apply S3 concepts to fictional offline scenarios.
A rarely read record must be available immediately and survive AZ loss. Which class is worth evaluating?
What happens after an ordinary delete in a versioning-enabled bucket?
Which archive class requires restore before ordinary retrieval?
Two data versions occupy 10 and 20 MiB; a delete marker is current. How much data remains, excluding metadata?
What should be planned for unfinished multipart uploads?