Command Palette

Search for a command to run...

Hectal
PHASE 17Advanced ~6 min· topic 2 of 5

Topic 17.2

Question Bank: Fundamentals, Transactions and Indexes

In one line

Eighteen high-frequency questions on modeling, keys, normalization, ACID, isolation, locking, MVCC, B-trees and index design, each with a concise model answer you can deliver in about a minute.

0/5 · 0%

Think of it like this

Flashcards before an exam. Short, precise answers to common questions free your time for the hard design problems.

Key ideas

  1. 01

    Answer shape: definition in one sentence, mechanism in one or two, an example, and the trade-off or pitfall.

  2. 02

    Link each answer back to the phase that teaches it if you hesitate.

Code & diagrams

answer-shape.txttext
1. Define it (one sentence)
2. How it works (one or two sentences)
3. Concrete example
4. Trade-off or pitfall

Explain it without notes

01

What is normalization?

02

Why use primary keys?

03

Natural vs surrogate key?

04

What is a foreign key and referential integrity?

05

When should you denormalize?

06

Explain ACID.

07

Explain isolation levels.

08

What causes deadlocks?

09

Optimistic vs pessimistic locking?

10

Explain MVCC.

11

What is write skew?

12

How does a B-tree index work?

13

What is a composite index and the leftmost prefix rule?

14

What is index selectivity?

15

What is a covering index?

16

Why can too many indexes hurt writes?

17

Why is OFFSET pagination slow?

18

What is the N+1 query problem?

Practice

01

Answer all 18 aloud in under 25 minutes, then check against the model answers.

Trade-offs

  • ↔

    Memorised answers help speed; interviewers probe follow-ups, so understand the mechanism behind each.

Done when you can

  • I can answer every core question concisely with mechanism and trade-off.