Questions: Timeout and Retry Strategies

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A payment service processes a charge to a customer's credit card. The charge succeeds on the server, but the network drops the acknowledgment before it reaches the client. The client times out and retries the request. What problem arises if the payment operation is not idempotent?

AThe retry increases network latency, slowing down subsequent requests from other clients
BThe customer may be charged twice, since the server processes the retry as a new, independent request
CThe timeout was set too short — increasing the timeout would have prevented the retry
DThe server's connection pool becomes exhausted from handling the duplicate connection
Question 2 Multiple Choice

A service becomes overloaded and starts responding slowly. All 500 clients time out and immediately retry simultaneously. What happens, and what is the standard mitigation?

AThe retries succeed — the brief timeout period allowed the server to recover
BA retry storm occurs — the simultaneous retries double the load on the already-struggling server, potentially causing complete failure; exponential backoff with jitter is the standard mitigation
CClients should use shorter timeouts to detect failures faster and retry more aggressively
DLoad balancers automatically absorb the retry burst by routing requests to healthy replicas
Question 3 True / False

Setting a shorter timeout typically improves distributed system reliability because it detects failures faster and allows clients to retry sooner.

TTrue
FFalse
Question 4 True / False

Adding jitter (randomized variation) to exponential backoff helps prevent multiple clients from retrying at exactly the same moment after backing off.

TTrue
FFalse
Question 5 Short Answer

Why must retry strategies be paired with idempotent operations, and what would happen to a payment system that retries a non-idempotent charge operation?

Think about your answer, then reveal below.