CS FundamentalsHardProduct-company placement

A client calls a payment API with exponential backoff: wait 100 ms before the first retry and double the wait each time, for up to 4 retries. If every attempt fails instantly, what is the total waiting time, and why add random jitter?

  1. A. 400 ms; jitter makes the retries faster
  2. B. 800 ms; jitter is needed only for GET requests
  3. C. 1,500 ms; jitter spreads out clients so they do not retry in synchronised bursts
  4. D. 1,600 ms; jitter guarantees success

Correct answer: C. 1,500 ms; jitter spreads out clients so they do not retry in synchronised bursts

100 + 200 + 400 + 800 = 1,500 ms. Without jitter, many clients failing together retry together, hammering the recovering service (a thundering herd).

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic