All guide activities

CH-01 · CHAPTER REVIEW

System design foundations

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

A college canteen app lets students order lunch. Write two functional requirements, two measurable quality requirements, one constraint and one invariant.

Reveal model answer

Functional examples are placing an order and checking its status. Quality targets must state a workload and measurement window, such as a chosen success fraction or response-time boundary. A fixed team size or monthly budget is a constraint. An invariant is that one accepted checkout operation cannot create two orders. Different targets are valid when explicit and justified.

Question 2

Draw the client, application and database flow. A reply is lost after the database commits. Explain why the student should not create a new checkout identity automatically.

Reveal model answer

The client sends a stable operation key to the application, which stores the order and associated result consistently in the database. A lost reply leaves the result uncertain, not definitely failed. Reusing the same operation identity lets the server return the existing outcome; a new identity can be interpreted as a second purchase.

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