Bird
0
0

A microservice uses a circuit breaker to prevent cascading failures. The circuit breaker is set to open after 5 failures but it opens after only 2 failures. What is the likely cause?

medium📝 Analysis Q14 of 15
Microservices - Resilience Patterns
A microservice uses a circuit breaker to prevent cascading failures. The circuit breaker is set to open after 5 failures but it opens after only 2 failures. What is the likely cause?
AThe failure count threshold is incorrectly configured
BThe circuit breaker is ignoring failures
CThe service is not failing at all
DThe circuit breaker is disabled
Step-by-Step Solution
Solution:
  1. Step 1: Understand circuit breaker failure threshold

    The circuit breaker opens after a configured number of failures to stop calls temporarily.
  2. Step 2: Analyze early opening

    If it opens after 2 failures instead of 5, the threshold setting is likely wrong or misread.
  3. Final Answer:

    The failure count threshold is incorrectly configured -> Option A
  4. Quick Check:

    Early circuit breaker open = A [OK]
Quick Trick: Check config values when behavior differs from expectations [OK]
Common Mistakes:
MISTAKES
  • Assuming circuit breaker ignores failures
  • Thinking service is healthy when breaker opens
  • Believing circuit breaker is disabled if it opens

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes