Scrivio Interview library
LeadershipPrincipal6 min read · updated 13 November 2026

Last year an automated database and traffic failover system triggered falsely three times, causing more downtime than the real incidents it handled. Some engineers want to remove automation and fail over manually; others want more automation.

As the senior technical leader, how do you decide which failovers are automated, and how do you make automation trustworthy?

I decide per failure type by comparing what a false or harmful automatic failover costs with what waiting for a human costs, against our availability target. Automation fits where detection is reliable and the action is safe and reversible, such as removing an instance or a zone with spare capacity; actions that risk data loss or split brain, such as promoting a database across regions, keep a human in the loop. Trust comes from robust detection with several independent signals, hold-down timers and rate limits, fast tested manual actions, and measuring every automated decision afterwards.

Why this question is asked

Automated failover promises to fix problems faster than any human, and when it misfires it causes outages faster than any human too. A team that has been hurt three times tends to split into two camps, and the senior leader's job is not to pick a camp but to give the organisation a way to decide case by case. Interviewers ask this to see whether we can reason about risk with numbers and build trust in automation deliberately. In this answer, we will set up the cost comparison, sort failovers into automated and human-approved, make detection robust, make manual failover fast, and close the loop with measurement.

1Start With the Cost of Each Kind of Mistake

Every failover system can make two mistakes. It can fail over when it should not, a false positive, or fail to act when it should, a missed or late failover. Both cost downtime, and the right amount of automation depends on which costs more for each failure type.

Suppose our target is 99.95 percent availability, about 22 minutes of downtime a month. For a web instance crash, waiting for a human means perhaps 15 minutes to notice and act, and a false automatic removal costs almost nothing because the other instances absorb the traffic. Automate. For a cross-region database promotion, a false failover can cost an hour of reconciliation and possible lost writes, while a human decision adds maybe 10 minutes to a real incident. Keep the human. Writing this down per failure type turns an argument about philosophy into a table we can discuss.

Automate or keep a human in the loop
Failure typeCost of false actionCost of waiting for a humanDecision
Instance crashnear zero, others absorb load10 to 15 min degradedautomate
Zone degraded, capacity sparesmall, reversible shift20 to 40 min of timeoutsautomate with caps
Database primary down, same regionseconds of writes, fencedminutes of write outageautomate with quorum and fencing
Region lost, promote replica elsewherelost writes, split brain riskabout 10 min more downtimehuman approves, one step
The decision follows from comparing the two costs, not from a general opinion about automation.

The three false triggers last year tell us which rows were wrong. If they were database promotions triggered by a monitoring blip, the fix is not to remove all automation, but to move that row to human approval while keeping the instance-level automation that worked.

2Automate What Is Reliable to Detect and Safe to Undo

Two questions sort the rows. First, can we detect this failure reliably? A crashed process that refuses connections is easy; a slow region seen from one monitoring location is not. Second, is the action safe and reversible? Removing one instance from a pool is both: if we were wrong, it comes back in a minute. Shifting traffic from one of three zones is reversible too, provided the other zones have capacity.

Promoting a database replica in another region fails both tests. Detection across regions is ambiguous, because a network partition looks the same as a dead primary, and the action is not cleanly reversible. If the old primary is still alive and accepting writes, we now have two primaries, which is split brain, and writes accepted on both sides must be reconciled by hand. For actions like that, automation should prepare everything and present one button, and a person decides.

3Make Detection Hard to Fool

Most false failovers come from trusting a single signal from a single place. A monitoring host in one zone loses its network and concludes that the primary is dead. The defences are well known. Require agreement from several independent signals, for example health probes, real error rates and replication status. Require agreement from several vantage points, for example probes from three zones, with a majority deciding. Add hold-down timers, so a condition must persist for, say, 60 seconds before action, which filters short blips.

Then limit what automation can do in a period. A rate limit of one database failover per hour, or no more than one zone evacuated at a time, stops a bad signal from triggering a chain of actions, each of which makes things worse. When the limit is reached, automation stops and pages a human.

Step throughA trustworthy automated failover
  1. Signal from one sourcefor example probe failures
  2. Confirmed by a second signal and a majority of vantage points?
    YesStart hold-down timerNoLog it, take no action
  3. Still failing after 60 s?
    YesCheck rate limitNoCancel, record a near miss
  4. Under the action limit for this hour?
    YesAct, fence the old side, pageNoPage a human with one-step action
  5. Review every actiontrue, false or missed

5 steps in order. Play them, or step through them one at a time.

Every automated action passes several independent checks and is reviewed afterwards.

4Make Manual Failover Fast

Keeping a human in the loop is only acceptable if the human is fast. If manual database failover means following a 40-step wiki page, people will reasonably push for automation again. So we build the same tooling the automation would use and expose it as one tested command or button: it checks replication lag, fences the old primary, promotes the replica, moves traffic and reports each step. The human makes the decision; the machine does the steps. That brings human failover down from an hour to a few minutes, which changes the cost table we started with.

5Measure and Practise Before Trusting

Trust in automation should be earned with evidence. Every automated action gets a short review: was it right, was it needed, how long did it take. We track false positives and missed failovers as metrics next to availability, and we report them, so the debate in a year is about numbers. New automation runs first in a shadow mode, where it logs what it would have done without acting, so we can compare its decisions with what really happened.

Finally, we test failover in game days, both the automated path and the manual one, in production or a faithful copy. A failover that has not been exercised in the last quarter should be assumed not to work.

6Follow-up questions

How would you prevent split brain when a database failover is automated?

Two mechanisms work together. First, a quorum: the decision to promote is made by a majority of independent nodes, for example three or five members of a consensus system such as etcd or the database's own cluster manager, so a minority partitioned with the old primary cannot elect its own. Second, fencing: before or as the new primary takes over, the old one is cut off, for example by revoking its lease so it stops accepting writes, by fencing it at the storage or network level, or by having clients include an increasing epoch number that the storage rejects when it is stale. The old primary must not be able to accept writes after the new one starts.

What do you tell the engineers who want to remove all automation?

That their concern is valid for the rows where the cost of a false action is high, and we will move those to human approval with fast tooling. But removing instance and zone automation would make every small failure a page and slow every recovery, which would cost more downtime than the false positives did. We will measure both and revisit with data.

7Conclusion

In this answer, we saw how to turn an argument about automation into a per-failure-type comparison of false-action cost against waiting cost. We automate where detection is reliable and the action reversible, keep humans for actions that risk data loss or split brain, make detection robust with multiple signals, vantage points, hold-downs and rate limits, give humans one-step tested tools, and earn trust by reviewing every action and rehearsing failovers.

What to say in the interviewAbout 90 seconds aloud

Open with

I would stop the debate being all or nothing and decide per failure type. For each one, I compare the downtime caused by a false or harmful automatic failover with the downtime of waiting for a human, against our availability target.

Then, if they want more

Removing a crashed instance or shifting away from a degraded zone with spare capacity is reliable to detect and easy to undo, so I automate it. Promoting a database across regions can lose writes and cause split brain, so automation prepares everything and a human approves with one step. Then I make the automation trustworthy.

Most false triggers come from one signal seen from one place, so I require agreement between independent signals, such as probes, error rates and replication status, from several vantage points with a majority.

I add hold-down timers so a condition must persist, and rate limits so automation cannot take more than one big action an hour; beyond that it pages a person. For the human path, I build tested one-command failovers so a manual decision takes minutes, not an hour.

And I measure: every automated action is reviewed, false positives and missed failovers are tracked as metrics, new automation runs in shadow mode first, and we rehearse failovers in game days. That gives us data instead of opinions next year.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "As the senior technical leader, how do you decide which failovers are automated, and how...": https://scrivio-interview-library.netlify.app/architecture/load-balancing-networking/4840852011/