Skip to content
Preptima

Databases & Storage interview questions

Choosing a store, sharding and partitioning, replication topologies, and storage-engine trade-offs.

8 questions in System Design.

hard8

hardDesign

How do you choose a datastore, and then how do you choose its shard key?

Choose the store from the dominant access pattern and the invariants it must enforce, not from a category label. Choose the shard key so the most frequent query is answerable from one shard, the key has enough distinct high-traffic values to spread load, and shards can be split later without rewriting every row.

6 minsenior, staff, lead
hardScenarioDesign

When a transatlantic cable is severed and your multi-region database inevitably enters split-brain, how do you resolve the conflicting writes without data loss?

An uncompromising examination of split-brain resolution, quorum consensus, fencing tokens, and why timestamp-based last-write-wins is fundamentally flawed. Use this distributed systems answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects databases to the point an interviewer is testing.

3 minsenior, staff