All guide activities

CH-10 · CHAPTER REVIEW

Security deployment and engineering decisions

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 signed-in student changes a submission ID in a download URL. Explain the checks needed before returning the artifact, including tenant and signed-URL concerns.

Reveal model answer

Find the object under current user/tenant permission or an explicit reviewer grant, not just by ID. Only then issue appropriately scoped, expiring access if using a signed URL. Review caching and forwarded-link exposure. Apply the same object checks to exports and background paths; identity alone is insufficient.

Question 2

An application must replace a database field while old instances still run. Give the rollout order and identify when reverting the code may stop being safe.

Reveal model answer

Add a compatible field, deploy coexistence logic, backfill and verify, switch reads, then contract after old versions retire. Once destructive changes remove data or structure old code expects, reverting the binary alone may be unsafe. Keep a tested forward-repair or restore option.

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