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

  1. 6.1 Availability math and targets
  2. 6.2 Reliability requirements, SLAs and trade-offs
  3. 6.3 Redundancy, failure domains and single points of failure
  4. 6.4 Failover, health checking and leader election
  5. 6.5 Resilience patterns for dependencies
  6. 6.6 Overload, degradation and recovery
  7. 6.7 Multi-region and cell-based architecture
  8. 6.8 Disaster recovery strategies
  9. 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

  1. Roughly how much downtime per year does 99.9% ("three nines") availability allow?

    1. About 52 minutes
    2. About 8.8 hours
    3. About 5 minutes
    4. 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.

  2. What is the difference between an SLA, an SLO and an SLI?

    1. They're three different names for exactly the same thing
    2. An SLA is a metric, an SLO is a contract, and an SLI is a dashboard
    3. SLI is the measurement, SLO the internal target, SLA the contract
    4. 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%.

  3. In an availability review, which component counts as a single point of failure?

    1. One whose failure alone takes down the whole system
    2. A failure that only ever happens a single time
    3. Whichever server was added to the cluster first
    4. 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.

  4. What does a load balancer health check do?

    1. Encrypts the traffic between the load balancer and instances
    2. Restarts the database whenever queries start to slow down
    3. Scans the application's code for known vulnerabilities
    4. 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.

  5. Why should retries use exponential backoff with jitter?

    1. It guarantees that every request succeeds on its very first attempt
    2. It reduces the size of the client code needed to make each request
    3. The HTTP specification requires it for all clients that retry requests
    4. 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.

  6. What is graceful degradation?

    1. Shutting down the whole site whenever any error occurs
    2. Keeping core features working when a dependency fails
    3. Performance slowly getting worse over several years
    4. 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.

  7. What's a downside of cell-based architecture?

    1. Every cell must share one database
    2. Cells can't serve more than one user
    3. It makes blast radius larger
    4. More stacks to deploy, monitor and route between

    Answer: D. More stacks to deploy, monitor and route between Operational overhead.

  8. What do RPO and RTO mean?

    1. RPO is the time it takes to recover; RTO is the amount of data that's lost
    2. They measure the network's throughput during a disaster recovery failover
    3. RPO is the acceptable data loss in time; RTO is the acceptable time to restore
    4. 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.

  9. What is chaos engineering?

    1. Writing code without any plan or design up front
    2. Randomly assigning tickets to developers each sprint
    3. Deleting production data for fun to see what happens
    4. 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.

  10. Two services in series, each 99.9% available, are both required to serve a request. What is the approximate combined availability?

    1. 99.9%
    2. 99.99%
    3. About 99.8%
    4. 100%

    Answer: C. About 99.8% Availabilities multiply for serial dependencies: 0.999 × 0.999 ≈ 0.998.

Practice all 261 questions

More Architecture