Skip to main content
Albero Academy

Storage & Databases

Store files in S3, run relational databases with RDS, and use DynamoDB for scalable NoSQL — the core data services.

Chapter 3AWS15 min readBeginner friendly
  • #AWS
  • #S3
  • #Databases

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:

working with S3
aws s3 mb s3://albero-uploads # make a bucket
aws s3 cp report.pdf s3://albero-uploads/ # upload
aws s3 ls s3://albero-uploads/ # list
aws 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

ServiceUse for
S3Files, images, backups, logs, static sites, data lakes
RDSStructured, relational data queried with SQL
DynamoDBKey-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

  1. 01S3 stores files (objects) in buckets — cheap, durable, effectively unlimited; private by default.
  2. 02RDS runs managed relational databases (PostgreSQL/MySQL) — AWS handles backups & patching.
  3. 03DynamoDB is managed NoSQL for huge scale and low latency — no joins, design for access patterns.
  4. 04Match the store to the data: files → S3, relational → RDS, high-scale key-value → DynamoDB.
  5. 05Never leave S3 buckets public unless they are intentionally a public website.