Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 539
How should a server implement idempotency keys for POST /payments?
A
Cache the key in browser local storage only
B
Store key → (request hash, result) atomically; on a repeat key return the stored result, and reject a different body with the same key
C
Use the key as the payment amount
D
Ignore the key and process every request