High Availability and Fault Tolerance Interview Questions
261 multiple-choice tech interview questions on High Availability and Fault Tolerance: SLAs and nines, redundancy and failover, retries with backoff, circuit breakers, bulkheads, disaster recovery and chaos engineering. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 78 key terms with the flashcards first, then test yourself.
Take the practice test · Flashcards · All study tools
What it covers
- 6.1 Availability math and targets
- 6.2 Reliability requirements, SLAs and trade-offs
- 6.3 Redundancy, failure domains and single points of failure
- 6.4 Failover, health checking and leader election
- 6.5 Resilience patterns for dependencies
- 6.6 Overload, degradation and recovery
- 6.7 Multi-region and cell-based architecture
- 6.8 Disaster recovery strategies
- 6.9 Resilience testing, safe deployment and incident learning
Key terms
6.1 Availability math and targets
- SLO
- Internal reliability target measured by an SLI
- Error budget
- Allowed unreliability under an SLO; spent on change and risk
- MTTR
- Mean time to recovery after a failure
- MTBF
- Mean time between failures
- Series availability
- Combined availability of required parts, multiplied together
- Parallel availability
- Combined availability of redundant parts
- Correlated failure
- Several parts failing from a shared cause
- Request-based availability
- Share of valid requests that succeed
- Hard dependency
- One whose failure breaks your service
- Soft dependency
- One your service can work without
6.2 Reliability requirements, SLAs and trade-offs
- SLA
- Contract promising a service level, with consequences if missed
- Service credit
- Fee refund paid when an SLA is missed
- Criticality tier
- Rating of how much an outage would hurt the business
- Availability budget
- Targets for each component so the product meets its goal
- Static stability
- Keeps working when a dependency or control plane fails
- Bimodal behavior
- Acting very differently during failures than normally
- Production readiness review
- Pre-launch check of monitoring, capacity and failure handling
6.3 Redundancy, failure domains and single points of failure
- Single point of failure
- A component whose failure alone stops the system
- Active-passive
- A standby takes over only when the primary fails
- Split-brain
- Two nodes both act as primary after losing contact
- Failure domain
- Components that can fail together
- Anti-affinity
- Rule keeping replicas apart on hosts or zones
- N+1 redundancy
- One unit more than needed
- Shared nothing
- Nodes share no memory or disk
- Quorum
- Majority needed for safe decisions
- Witness node
- Small tie-breaker node for quorum
- Dependency map
- Diagram of what each service depends on
6.4 Failover, health checking and leader election
- Fail open
- Sending traffic to all nodes when all look unhealthy
- Flapping
- Repeated switching between healthy and unhealthy
- Lease object
- Kubernetes resource used for leader election
- Fencing
- Stopping an old primary from accepting writes
- Lease
- Time-limited lock a leader must renew
- Floating IP
- IP address moved from a failed node to a standby
6.5 Resilience patterns for dependencies
- Circuit breaker
- Stops calling a failing dependency, then probes before resuming
- Bulkhead
- Isolates resource pools so one failure cannot drain everything
- Exponential backoff
- Increasing, jittered delays between retries
- Half-open
- Breaker state sending trial calls to test recovery
- Fallback
- Alternative response when a dependency fails
- Timeout budget
- Total time limit split across downstream calls
- Retry storm
- Many layers and clients retrying at once
- Idempotency key
- Client ID letting servers spot repeated requests
- Request coalescing
- Merging identical in-flight requests
- Fail fast
- Reporting failure quickly instead of waiting
- Outlier ejection
- Temporarily avoiding one bad instance
6.6 Overload, degradation and recovery
- Cascading failure
- Overload spreading from one part to others
- Admission control
- Deciding which requests to accept when busy
- CoDel
- Dropping queued work when delays stay too high
- Brownout
- Turning off optional features to save capacity
- Slow start
- Ramping traffic to a recovering node
- Metastable failure
- Failure that persists after its trigger is gone
- Headroom
- Spare capacity above normal peak
- Read-only mode
- Serving reads while pausing writes
- Backpressure
- Signaling upstream to slow down
6.7 Multi-region and cell-based architecture
- Cell router
- Maps each user or tenant to its cell
- Shuffle sharding
- Tenants get small overlapping subsets of resources
- Blast radius
- Share of users or systems one failure can affect
- Regional independence
- Region serves traffic without another region
- Region evacuation
- Moving a region's traffic elsewhere during trouble
- Read-local, write-global
- Nearby replicas for reads, one leader region for writes
- Reliability tax
- Extra cost of replication, testing and operations
- Tenant rebalancing
- Moving tenants between cells to spread load
6.8 Disaster recovery strategies
- RPO
- Maximum acceptable data loss, measured in time
- RTO
- Maximum acceptable time to restore service
- Chaos engineering
- Controlled failure injection to verify resilience
- Backup and restore
- DR by rebuilding and restoring after disaster
- Warm standby
- Scaled-down running copy scaled up on disaster
- Recovery sequence
- Order of restoring dependencies before apps
- Go/no-go checklist
- Criteria for declaring disaster and switching
- Tabletop exercise
- Walking through a disaster scenario without switching systems
- DR drift
- Recovery environment falling behind production
6.9 Resilience testing, safe deployment and incident learning
- Steady state
- Normal behavior a chaos experiment should preserve
- Abort condition
- Threshold stopping an experiment if impact is too large
- Game day
- Planned practice with controlled failures
- Chaos Monkey
- Netflix tool randomly terminating instances
- Toxiproxy
- Proxy injecting network faults for tests
- Jepsen
- Distributed consistency testing under faults
- Incident commander
- Coordinates response, keeping the whole picture
- Resilience as code
- Versioned failure-handling policies and tests
Sample practice questions
Roughly how much downtime per year does 99.9% ("three nines") availability allow?
- About 52 minutes
- About 8.8 hours
- About 5 minutes
- About 3.6 days
Answer: B. About 8.8 hours 99.99% allows about 52.6 minutes per year, and 99.999% about 5.3 minutes.
What is the difference between an SLA, an SLO and an SLI?
- They're three different names for exactly the same thing
- An SLA is a metric, an SLO is a contract, and an SLI is a dashboard
- SLI is the measurement, SLO the internal target, SLA the contract
- SLIs only apply to databases, while SLOs apply to web services
Answer: C. SLI is the measurement, SLO the internal target, SLA the contract Example: SLI = percentage of successful requests; SLO = 99.9% over 30 days; SLA = credits if below 99.5%.
In an availability review, which component counts as a single point of failure?
- One whose failure alone takes down the whole system
- A failure that only ever happens a single time
- Whichever server was added to the cluster first
- An automated test that always fails in CI
Answer: A. One whose failure alone takes down the whole system Eliminating SPOFs through redundancy is the first step toward high availability.
What does a load balancer health check do?
- Encrypts the traffic between the load balancer and instances
- Restarts the database whenever queries start to slow down
- Scans the application's code for known vulnerabilities
- Probes instances and stops sending traffic to failing ones
Answer: D. Probes instances and stops sending traffic to failing ones Health endpoints should reflect real readiness without being so deep that one dependency failure takes out every instance.
Why should retries use exponential backoff with jitter?
- It guarantees that every request succeeds on its very first attempt
- It reduces the size of the client code needed to make each request
- The HTTP specification requires it for all clients that retry requests
- Spread-out, randomized retries avoid storms that swamp a recovering service
Answer: D. Spread-out, randomized retries avoid storms that swamp a recovering service Also cap the total number of retries and only retry idempotent or safe operations.
What is graceful degradation?
- Shutting down the whole site whenever any error occurs
- Keeping core features working when a dependency fails
- Performance slowly getting worse over several years
- Removing old features that few customers still use
Answer: B. Keeping core features working when a dependency fails Example: show a product page without personalized recommendations if the recommendation service is down.
What's a downside of cell-based architecture?
- Every cell must share one database
- Cells can't serve more than one user
- It makes blast radius larger
- More stacks to deploy, monitor and route between
Answer: D. More stacks to deploy, monitor and route between Operational overhead.
What do RPO and RTO mean?
- RPO is the time it takes to recover; RTO is the amount of data that's lost
- They measure the network's throughput during a disaster recovery failover
- RPO is the acceptable data loss in time; RTO is the acceptable time to restore
- They're two file formats commonly used for storing database backups
Answer: C. RPO is the acceptable data loss in time; RTO is the acceptable time to restore An RPO of 5 minutes means you may lose up to 5 minutes of data.
What is chaos engineering?
- Writing code without any plan or design up front
- Randomly assigning tickets to developers each sprint
- Deleting production data for fun to see what happens
- Injecting failures in a controlled way to verify the system copes
Answer: D. Injecting failures in a controlled way to verify the system copes Netflix's Chaos Monkey popularized it; Azure Chaos Studio and AWS Fault Injection Service offer managed tools.
Two services in series, each 99.9% available, are both required to serve a request. What is the approximate combined availability?
- 99.9%
- 99.99%
- About 99.8%
- 100%
Answer: C. About 99.8% Availabilities multiply for serial dependencies: 0.999 × 0.999 ≈ 0.998.
More Architecture
- System Design Interview Fundamentals
- Monoliths vs Microservices
- Event-Driven Architecture
- Scalability: Horizontal and Vertical Scaling, Sharding and Partitioning
- CAP Theorem and Distributed Consistency
- API Gateways and Service Meshes
- Domain-Driven Design
- Clean and Hexagonal Architecture
- Security Architecture: Zero Trust and OWASP Top 10
- AI and LLM Integration: RAG, Prompts and APIs