CS FundamentalsHardProduct-company placement

A service calls three downstream APIs using one shared pool of 200 threads. When one API becomes very slow, all 200 threads end up waiting on it and requests that need only the healthy APIs fail too. Which pattern most directly prevents this?

  1. A. Retry with exponential backoff
  2. B. Bulkhead: a separate, bounded pool (or concurrency limit) for each dependency
  3. C. Cache-aside for all responses
  4. D. Increasing the shared pool to 1000 threads

Correct answer: B. Bulkhead: a separate, bounded pool (or concurrency limit) for each dependency

Bulkheads isolate resources per dependency, so a slow one can exhaust only its own compartment. Retries make the overload worse, and a bigger shared pool only delays the same exhaustion; a circuit breaker would complement the bulkhead.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic