21. How do you pick between relational vs document database? 

Not a religious choice — match the data model to the access pattern.

Choose relational (PostgreSQL, MySQL) when:

Choose document (MongoDB, DynamoDB, Firestore) when:

Practical guidance: Start with PostgreSQL. It handles documents (JSONB), time series, full-text search, and graph queries better than many think. Only move to a specialised document store when you have a concrete scaling or data model requirement that PostgreSQL genuinely can't serve.