← Questions

Primary and secondary circuit breakers with failover

0
DatabricksCodingLast asked Aug 2026

A coding interview question asked in Databricks's algorithms (two rounds) round, last asked Aug 2026. It tests object-oriented design, state machine and fault tolerance.

A service reads from a primary backend and can fail over to a secondary backend (for example a leader database and a follower). Put a circuit breaker in front of each backend so that a backend that keeps failing is skipped instead of…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

object-oriented design · state machine · fault tolerance

Your code and the AI tutor open when you unlock this question.