Databases¶
SQL, NoSQL, vector databases, data warehouses, lakehouses. The choice is rarely "which database" - it's "which database for which workload."
flowchart LR
W{Workload}
W -- transactional<br/>strong consistency --> SQL[Relational:<br/>RDS, Cloud SQL, Spanner]
W -- key-value<br/>at scale --> KV[Wide-column:<br/>DynamoDB, Bigtable]
W -- document<br/>flexible schema --> DOC[Document:<br/>Cosmos DB, Firestore, MongoDB]
W -- semantic search<br/>RAG --> VEC[Vector:<br/>pgvector, Pinecone, Weaviate]
W -- analytics<br/>columnar --> OLAP[(Warehouse:<br/>BigQuery, Redshift, Snowflake)]
W -- streaming<br/>+ batch unified --> LH[Lakehouse:<br/>Databricks Delta / Iceberg] Learn¶
- SQL joins explained - join types, fan-out, and how engines execute joins
- Window functions explained - latest row per key, running totals, rankings
- Indexes explained - B-trees, composite and covering indexes, reading a plan
- Transactions and ACID - isolation levels, write skew, MVCC
- OLTP vs OLAP - row stores vs column stores, and why both exist
- Replication and sharding - replicas, failover, shard keys, distributed SQL
- Eventual consistency - CAP, when EC is fine, when it bites
- Idempotency explained - retries, idempotency keys, common patterns
- Queues vs streams - SQS vs Kinesis (and equivalents), ordering, replay
- Vector databases for data engineers - where vectors can live and how to keep the index in sync
- Database normalization for OLTP - first to third normal form, and when to stop
- Time-series and graph databases - two specialized stores and when to pick them
- Backup and point-in-time restore - base backup plus log replay
- Embeddings and vector search - vector DB basics, the AI side
- Warehouses, lakes, and lakehouses - the analytical stores
- Data modeling for analytics - star schemas, grain, SCD types
- Change data capture - streaming every change out of an operational database
For how data gets into these stores - pipelines, ETL/ELT, batch vs streaming, partitioning, quality - see the Data engineering topic.
Compare¶
- Databases (cloud-native) - RDS vs Cloud SQL vs SQL Database, DynamoDB vs Cosmos DB vs Firestore, BigQuery vs Redshift vs Synapse
- Vector databases - Pinecone, Weaviate, Qdrant, Milvus, pgvector, OpenSearch, Vertex Vector Search
Reference¶
- Architecture pattern: Data Pipeline / ETL
- Architecture pattern: Lakehouse
- Architecture pattern: Data Mesh
- Architecture pattern: CQRS / Event Sourcing
- Architecture pattern: CDC into a lakehouse
- Migration: database
- Migration: legacy warehouse to cloud
- Troubleshooting: slow SQL queries - reading plans, indexes, statistics and skew
- Interview: SQL worked problems
- Interview: DBA - backup and recovery, HA, performance, locking, vacuum and online schema changes, with worked answers
- Postmortem: GitLab.com database deletion, 2017 - replication is not backup, and untested backups fail
- Postmortem: Atlassian site deletion, 2022 - RPO met, RTO missed: restores that did not scale
Build¶
- Build a data pipeline
- Design a star schema - dimensional design in DuckDB
- Build a dbt project - the same model as tested code
- Build a RAG pipeline - exercises pgvector
Certify¶
Cloud-side data certs - AWS Data Engineer Associate (DEA-C01) - AWS Database Specialty (DBS-C01) - retired, retained for credential holders - AWS Data Analytics Specialty (DAS-C01) - retired, retained - Azure Data Engineer (DP-203) - Azure Database Administrator (DP-300) - Azure Cosmos DB AI Developer Associate (DP-420) - Azure Fabric Analytics Engineer (DP-600) - Azure Fabric Data Engineer (DP-700) - GCP Data Engineer - GCP Cloud Database Engineer
Vendor-specific - Databricks Data Engineer Associate - Databricks Data Engineer Professional - Snowflake SnowPro Core - Snowflake SnowPro Advanced Architect - Snowflake SnowPro Advanced Data Engineer - Snowflake SnowPro Advanced Administrator - MongoDB Associate Developer - MongoDB Associate DBA - MongoDB Associate Atlas Administrator - Confluent Certified Developer for Apache Kafka - Confluent Certified Administrator for Apache Kafka
Roadmap¶
Career paths live in the Data Engineer roadmap and Database Specialist roadmap.