Almost every app needs to store data. AWS has a service for each shape: files in S3, relational data in RDS, and high-scale key-value data in DynamoDB. Knowing which to reach for is a core cloud skill.
S3 — object storage
S3 (Simple Storage Service) stores objects (files) in buckets. It's effectively unlimited, extremely durable, and cheap — the default home for images, backups, logs, data-lake files and static websites:
aws s3 mb s3://albero-uploads # make a bucketaws s3 cp report.pdf s3://albero-uploads/ # uploadaws s3 ls s3://albero-uploads/ # listaws s3 sync ./dist s3://albero-site/ # deploy a whole folder
RDS — relational
RDS runs managed relational databases — PostgreSQL, MySQL (see the MySQL course), and others. AWS handles backups, patching and failover; you just use SQL. Reach for RDS when your data is structured and relational.
DynamoDB — NoSQL
DynamoDB is a fully-managed key-value / document database that scales to enormous traffic with single-digit-millisecond latency. There are no joins and you design around your access patterns — but it handles scale that would strain a relational database.
Choosing a data store
| Service | Use for |
|---|---|
| S3 | Files, images, backups, logs, static sites, data lakes |
| RDS | Structured, relational data queried with SQL |
| DynamoDB | Key-value/document data at huge scale, known access patterns |
Practice
Create a private S3 bucket and upload a file with the CLI. Spin up a free-tier RDS PostgreSQL instance and connect to it. Note which one you'd use for user-uploaded images versus student records — and why.
Key takeaways
- 01S3 stores files (objects) in buckets — cheap, durable, effectively unlimited; private by default.
- 02RDS runs managed relational databases (PostgreSQL/MySQL) — AWS handles backups & patching.
- 03DynamoDB is managed NoSQL for huge scale and low latency — no joins, design for access patterns.
- 04Match the store to the data: files → S3, relational → RDS, high-scale key-value → DynamoDB.
- 05Never leave S3 buckets public unless they are intentionally a public website.
