Amazon S3
What is it?
Amazon S3 is a cloud storage service for keeping any amount of files (objects) and retrieving them from anywhere over the internet.
Explain like I'm 5
Why was it created?
Storing and serving large amounts of files reliably is hard to do yourself. S3 was created to offer durable, virtually unlimited storage as a simple service.
Where is it used?
- Storing images, video, and documents
- Backups and archives
- Hosting static websites
- Data lakes for analytics
Why should developers care?
S3 is one of the most widely used cloud services, behind countless apps' file storage, backups, and static sites.
How does it work?
You store files as objects inside buckets, each object identified by a key. S3 keeps multiple copies for durability and serves objects over HTTP, with permissions controlling access.
Real-world example
A photo app uploads each user's images to an S3 bucket and serves them (often via a CDN) instead of storing files on its own servers.
Common use cases
- Application file storage
- Backups and disaster recovery
- Static website hosting
- Storing data for analytics
Advantages
- Virtually unlimited capacity
- Very high durability
- Pay for what you store
- Integrates with many AWS services
Disadvantages
- Not a file system or database
- Misconfigured permissions can expose data
- Retrieval and transfer costs add up
When should you use it?
For storing and serving files, backups, and large unstructured data.
When should you avoid it?
For data needing fast structured queries or transactions — use a database instead.
Alternatives
Related terms
Interview questions
Beginner
- What is an S3 bucket?
- What kind of data does S3 store?
Intermediate
- What is object durability?
- How do you control who can access an object?
Senior
- How would you serve private S3 content securely?
- How do storage classes help manage cost?
Common misconceptions
- "S3 is a file system" — it's object storage; there are no real folders, just keys that look like paths.
- "S3 buckets are private by default and always safe" — misconfigured permissions are a common cause of data leaks, so access must be set carefully.
Fun facts
- S3 stands for Simple Storage Service.
- Different storage classes trade lower cost for slower or less frequent access.
Timeline
- 2006 — S3 launches as one of AWS's first services
Learning resources
Quick summary
Amazon S3 is durable, virtually unlimited cloud object storage for files, backups, and static content, billed by usage.
Cheat sheet
- Object storage in buckets
- Virtually unlimited and durable
- Not a file system or database
- Watch permissions and transfer costs