All guide activities

CH-15 · CHAPTER REVIEW

Databases and distributed data

Solve these two questions after studying the chapter. State your assumptions and explain your reasoning.

Read. Try. Defend.

Companion to the Buildfest System Design guides.

Chapter review: two questions

Attempt both questions before opening the model answers.

Question 1

Explain how an index differs from a replica and a shard, using a student-order example.

Reveal model answer

An index helps find selected orders in a store. A replica copies those records to another node. A shard divides ownership, for example by a chosen user key. Each adds different write, consistency or routing consequences.

Question 2

Two buyers see one available seat. State where the final decision belongs and what happens to a loser.

Reveal model answer

The decision belongs to an authoritative atomic update or correct database transaction, with the unique sale/reservation invariant enforced. One request succeeds; the other receives an unavailable result. A stale browse response does not justify accepting both.

Answers stay in this tab. Download before leaving. This practice is not graded or saved to your account.