CS FundamentalsVery hardProduct-company placement · SRE interview

A request flows client → A → B → C → D. Services A, B and C each make up to 3 attempts (1 + 2 retries) when their downstream call fails. D is completely down. How many calls reach D for one client request?

  1. A. 27
  2. B. 9
  3. C. 81
  4. D. 3

Correct answer: A. 27

C tries D 3 times per call from B, B calls C 3 times per call from A, and A calls B 3 times: 3³ = 27. Adding retries per layer (3 + 3 + 3 = 9) misses that they multiply; this retry amplification is why retries belong at one layer only.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic