← Study

DBMS

Databases for backend/AI-engineer interviews — Google, Microsoft, Amazon. Every page explains why a database behaves the way it does, then the trade-off your design takes on.

Study priority, if you're short on time

Tier 1 — master these first: SQL, JOINs, Indexes, Transactions & ACID, Isolation Levels, Locks & Concurrency, Deadlocks, Query Optimization, Normalization, Replication, Sharding, CAP, SQL vs NoSQL, Redis & Caching, Schema Design.

Tier 2 — strong understanding: Window Functions & CTEs, Storage Internals & WAL, MVCC, Connection Pooling, Database Security, Distributed Databases & Quorums.

For your Backend + AI target, right after Tier 1: pgvector & vector databases, embeddings storage, similarity search, hybrid search.

Tier 3 — learn after these: Two-Phase Commit, Saga, CDC, Event Sourcing, CQRS, Materialized Views, Database Recovery, Raft/Paxos, distributed-database internals.

Database Foundations & SQL
Database Fundamentals — DBMS vs RDBMS, Keys & Constraints
SQL Essentials — SELECT, GROUP BY, Subqueries & Aggregates
Window Functions & CTEs
SQL JOINs — INNER, OUTER, SELF & CROSS
Normalization (1NF–BCNF) & Denormalization
Database Schema Design — From Requirements to Tables
Indexes & Query Performance
Indexes — What They Are, B-Tree/B+Tree & Hash Indexes
Index Design — Composite, Covering & Selectivity
Query Optimization — Execution Plans, EXPLAIN ANALYZE & Join Strategies
Storage Internals — Pages, Buffer Pool & Write-Ahead Logging
Transactions & Concurrency
Transactions & ACID — COMMIT, ROLLBACK, SAVEPOINT
Concurrency Control — Race Conditions, Anomalies & Locks
Isolation Levels — Read Uncommitted to Serializable
Deadlocks — Detection, Prevention & Reduction
Scaling & Distribution
Replication — Primary/Replica, Lag & Sync vs Async
Partitioning & Sharding — Shard Keys, Hot Partitions & Consistent Hashing
CAP Theorem (and PACELC)
Distributed Databases — Eventual Consistency & Quorums
Choosing a Data Store
SQL vs NoSQL — Relational, Document, Key-Value, Wide-Column & Graph
Redis & Caching — Cache-Aside, Write-Through, Invalidation & Stampedes
Running Databases in Production
Database Connection Pooling
Database Security — SQL Injection, Encryption & Least Privilege
Advanced Data Patterns & Internals
MVCC Internals
Two-Phase Commit & Distributed Transactions
Saga Pattern
Change Data Capture (CDC)
Event Sourcing
CQRS
Materialized Views
Database Recovery — Checkpoints, Redo/Undo & ARIES
Consensus — Raft & Paxos
Distributed Database Internals — LSM Trees, Spanner & Dynamo-Style Systems
Databases for AI
Vector Databases & pgvector
Storing Embeddings — Schema, Dimensions & Versioning
Similarity Search — Distance Metrics & ANN Indexes (HNSW, IVFFlat)
Hybrid Search — Combining Keyword (BM25) and Vector Search
Putting It Together
Putting It Together — Designing a Food-Ordering Backend