Question 1 / 4 The client timed out after a reservation committed. What should happen when it resends the same key and payload?
The idempotency key identifies one logical request. A retry should recover its result without consuming stock again.
Review the lesson Question 2 / 4 The same reservation key arrives with a different quantity. How should the endpoint respond?
['request_id' => $key, 'sku' => 'BOOK', 'units' => 2]
['request_id' => $key, 'sku' => 'BOOK', 'units' => 3]
A key binds to the original payload. Reusing it for a different operation would make retries ambiguous.
Review the lesson Question 3 / 4 A worker is offline when a reservation succeeds. Where should its pending event be recorded?
The reservation and event commit together. The pending row survives until a worker can process it.
Review the lesson Question 4 / 4 Which test best checks the whole retry contract before release?
Checking all three persisted effects catches duplication even when both HTTP responses look successful.
Review the lesson Round resultRevisit the missed topics
This browser could not save your score.
My challenge record Each answer is worth 25 points. Replays keep your highest score.