Interview Q&A · questions with model answers
Database Concurrency & Scaling Interview Questions
Part of the study plan for: Data Engineer · Site Reliability Engineer (SRE) · Backend Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
What risks come with automatic cross-region database failover?
With asynchronous replication, the promoted replica may lack recently acknowledged writes (data loss), and partitions can cause writes in two places. GitHub's October 2018 incident showed how a…
-
What does `idle in transaction` in pg_stat_activity tell you, and why is it dangerous?
A session opened a transaction and isn't running a query — usually the app is doing other work (HTTP calls) or forgot to commit/rollback. It holds locks and an old snapshot, blocking others and…