CS FundamentalsHardProduct-company system-design interview
A circuit breaker protecting calls to a slow service has three states. Which sequence is correct?
- A. Open (calls pass) → Closed (calls fail fast) → Half-open
- B. Closed → Half-open → Open, after which it never recovers
- C. Half-open → Closed → Open, cycling on a fixed timer
- D. Closed (calls pass) → Open after failures cross a threshold (calls fail fast) → Half-open after a timeout (a few trial calls) → Closed if they succeed
Correct answer: D. Closed (calls pass) → Open after failures cross a threshold (calls fail fast) → Half-open after a timeout (a few trial calls) → Closed if they succeed
Closed is normal; Open short-circuits calls to protect both sides; Half-open lets trial requests through, closing again on success or re-opening on failure.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A Kubernetes pod takes 60 seconds to warm its cache after start-up. During that time it should get no traffic but must not be restarted…
- A CI workflow uses a build matrix of 3 operating systems x 4 language versions, with 2 specific combinations excluded. How many jobs run…
- Which pairing of security testing approaches is correct?
- A team uses Terraform. Someone changes a security-group rule by hand in the cloud console. What is this called, and what happens at the…
- How many of these are among the four DORA key metrics of software delivery performance: (1) deployment frequency, (2) lead time for…
- A blue-green deployment keeps two identical production environments and switches the router from blue (old) to green (new). Which…