What is Amazon S3?
Amazon S3 (Simple Storage Service) is like a giant warehouse on the internet where you can store any type of file — photos, videos, documents, backups — with no storage limit.
Think of it like Google Drive or iCloud, but an enterprise-grade version that is far larger and more powerful. It is one of the most widely used services across all of AWS.
---
Why Are There Different Storage Types?
Imagine you have a physical warehouse. It wouldn't make sense to store items you use every day in the same expensive space as items you look at once a year. Keeping rarely used items in a premium location is just wasted money.
S3 works the same way. Files you access frequently go into fast, higher-cost storage. Files you rarely need go into slower, cheaper storage. These different storage options are called "storage classes."
---
Storage Classes Using Analogies
Here is a simple way to picture each class.
S3 Standard = shelf right next to your desk. Grab anything instantly. Most convenient, most expensive. S3 Intelligent-Tiering = a smart assistant that automatically moves items closer or further based on how often you use them. S3 Standard-IA = a storage room down the hall. You visit occasionally. Cheaper to keep things there, but there is a small fee each time you retrieve something. S3 One Zone-IA = a storage room in just one building. Cheaper than Standard-IA, but if that building has a problem, you could lose your items. S3 Glacier Instant Retrieval = a basement archive. You visit about once a quarter. Retrieval is instant, but the storage level is deep. S3 Glacier Flexible Retrieval = an offsite warehouse. You visit once or twice a year. Takes minutes to hours to retrieve items. S3 Glacier Deep Archive = a long-term records vault. Almost never accessed. Takes up to 12 hours to retrieve, but costs the least.
---
S3 Storage Classes at a Glance
| Class | Access Frequency | Retrieval Time | Cost Level | |-------|-----------------|----------------|------------| | Standard | Daily or frequent | Instant | Highest | | Intelligent-Tiering | Unpredictable | Instant | Auto-optimized | | Standard-IA | Occasional (monthly or less) | Instant | Low storage, small retrieval fee | | One Zone-IA | Occasional (single AZ) | Instant | Cheaper than Standard-IA | | Glacier Instant Retrieval | Quarterly | Instant | Fast archive | | Glacier Flexible Retrieval | 1–2 times per year | Minutes to hours | Very cheap | | Glacier Deep Archive | Rarely | Up to 12 hours | Cheapest |
!S3 storage classes from most to least accessed
What is a Lifecycle Policy?
A lifecycle policy is a rule that automatically moves files to a cheaper storage class as they get older.
For example, you can create a rule like this.
"After 30 days, move from Standard to Standard-IA. After 90 days, move to Glacier. After 365 days, delete."
This one rule automates your cost management. No manual work needed.
---
What is Versioning?
Versioning preserves every older copy of a file even when you overwrite it with a new version.
For example, if you upload an updated "report.docx," S3 keeps both the old version and the new version. If you make a mistake or accidentally delete something, you can restore any previous version.
---
Useful S3 Extra Features
S3 Replication: Automatically copies files to another region or bucket. Used for disaster recovery or compliance. S3 Transfer Acceleration: Uses global edge locations to speed up uploads from distant locations. S3 Object Lock: Prevents files from being deleted or modified for a set period. Used for finance, healthcare, or any regulated industry.
---
Exam Quick Reference
Here are the patterns that appear most often in exam questions.
"Files accessed daily" — S3 Standard "Unknown access pattern" — S3 Intelligent-Tiering "Occasional access but instant retrieval required" — S3 Standard-IA "Archive but instant retrieval required" — S3 Glacier Instant Retrieval "Archive and 12 hours is acceptable" — S3 Glacier Deep Archive "Automatically change storage class over time" — Lifecycle Policy "Recover an accidentally deleted file" — Versioning S3 is object storage. It replaces entire files, not parts of files.