Skip to content
QSWEQB

Databases & SQL interview questions

Query-writing rounds and the storage-engine reasoning behind why a query is slow, for backend, data, and DBA roles alike.

13 published across 8 topics.

Database fundamentals58 short answers on one page, for revising rather than studying.

SQL Query Writing

2 questions

Joins, window functions, aggregation, and the analytical queries asked in a shared editor.

Indexing

2 questions

B-tree mechanics, composite-column order, covering indexes, and why an index goes unused.

Transactions & Isolation

2 questions

ACID guarantees, isolation levels, the anomalies each permits, and locking versus MVCC.

Query Optimisation

2 questions

Reading execution plans, statistics and cardinality estimation, and diagnosing real regressions.

mediumConceptScenario

Walk me through how you read a PostgreSQL execution plan.

Read the plan tree innermost-node-first, remember that EXPLAIN only estimates while EXPLAIN ANALYZE executes, multiply each node's actual rows by its loops, and treat a large gap between estimated and actual rows as the primary finding.

5 minmid, senior, staff

Data Modelling

2 questions

Normalisation and deliberate denormalisation, keys, constraints, and schema evolution under load.

NoSQL Stores

1 question

Document, key-value, wide-column, and graph stores, with honest selection criteria.

PostgreSQL Internals

1 question

MVCC and vacuum, WAL, connection handling, and the operational depth senior roles expect.

DBA & Operations

1 question

Backup and recovery, replication and failover, upgrades, capacity planning, and incident response.