Deciding What Ops Work to Automate and Where to Stop
System DesignModel answerLast updated
Explain how you pick operational toil to automate, how you make automation safe in production, and how you judge when it is good enough, excellent, or not worth building.
You are interviewing for a senior reliability engineering role. The interviewer asks how you decide which parts of running a service should be automated so that engineers can spend more of their time on development. They then press on two points:
- What is the difference between automation that is merely good enough and automation that is excellent?
- How do you decide that something should not be automated at all?
There is nothing to diagram. The interviewer wants a clear, principled position supported by concrete examples.
You may ask clarifying questions first, for example:
- Is the scope a live production service (deployments, remediation, capacity changes), or also developer workflow tooling?
- How large is the team that would build and then maintain the automation?
- Is there existing data on where on-call and operational time goes?
Part 1: Your philosophy. Explain how you choose what to automate first, how you make automation safe to run against production, and how you verify that engineers actually got time back.
Part 2: The quality bar and the limit. Describe your criteria for good-enough versus excellent automation, and where you stop. Give examples on both sides of the line.
A strong answer takes a defensible stance (not "automate everything"), uses simple arithmetic, treats automation as production software, and acknowledges the risks automation introduces.
Hints
Hint 1
Start by defining toil (manual, repetitive, automatable work that scales with service size and produces no lasting value) and describe how you would measure it, for example with ticket and page tagging, or a short time log.
Hint 2
Rank candidates with a rough payback calculation: frequency x time per occurrence x number of people, versus build cost plus ongoing maintenance. Add risk, since rare but dangerous tasks can justify automation on safety grounds alone.
Hint 3
Define the quality bar by frequency, blast radius and who runs the tool. Also cover the cases where deleting the task, fixing the root cause or simplifying the process beats automating it, and the downsides of automation such as skill atrophy and hidden failures.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Position
I treat automation as an investment, not a virtue. The goal is to return engineering time to development and to reduce risk, so I automate where the measured payoff is clear, and I match the quality of the automation to how often it runs, how much damage it can do, and who depends on it. Often the best move is to eliminate the work rather than automate it.
Part 1: Philosophy
1. Find and measure toil
Toil is work that is manual, repetitive, automatable, interrupt-driven, and grows linearly with the size of the service while leaving nothing lasting behind. I would:
- Tag every page, ticket and ad-hoc request by category for a few weeks (or review the last quarter's history if it exists).
- Ask on-call engineers for a quick time log for the categories that data cannot capture.
- Set a budget, for example toil under roughly 50% of an SRE's time, so the work has a trigger and a target.
2. Prioritize with simple arithmetic
For each candidate:
- Annual cost of the manual work = occurrences per year x minutes each x people involved. A 20-minute task done 10 times a week is about 170 hours a year.
- Cost of automation = build time + review and testing + ongoing maintenance (often 10 to 30% of build cost per year).
- Payback period = build cost / annual savings. Under about 6 months is an easy yes; beyond 2 years I need another reason.
Then adjust for factors the arithmetic misses:
- Risk: a rare, error-prone, high-stakes procedure (a failover, a certificate rotation) can justify automation even at low frequency, since human error is the real cost.
- Interrupt cost: a task that wakes someone at night costs far more than its raw minutes.
- Reach: a tool that a whole organization can self-serve beats one that only the SRE team uses.
3. Make automation safe in production
Automation acts faster and more widely than a human, so mistakes spread faster. I require:
- Idempotency so reruns and retries are safe.
- Dry-run / plan mode that shows what would change.
- Blast-radius limits: rate limits, batch sizes, canary first, and an automatic halt if error rates rise.
- Preconditions and health checks before and after each step.
- Kill switch and a clear way to pause it.
- Audit logging and observability: who or what triggered it, what changed, metrics on success and failure.
- Tests, code review and an owner, as with any production code.
- A manual fallback that is documented and still practiced.
4. Verify that time was actually freed
- Compare the toil category's hours or ticket and page counts before and after.
- Check that the work was not just moved, for example into maintaining a brittle tool, handling its exceptions, or reviewing its output.
- Track the automation's own failure rate and the time spent on it.
- Look at the outcome: did the freed time go into planned development work?
Part 2: Good enough, excellent, and where to stop
Good enough
A solid, minimal bar:
- Works correctly for the common case and fails loudly, not silently.
- Safe to rerun, with a dry run and logging.
- Documented, with a named owner.
- Maybe a script in a repo run by an engineer, with no UI.
This is right for tasks that are infrequent (monthly), have a low blast radius, and are run by the team that wrote them.
Excellent
Excellent is justified by high frequency, high blast radius, or broad use by non-experts. It adds:
- Self-service and low friction: triggered by an API, a chat command or a pipeline, with no tribal knowledge needed.
- Full safety: canarying, automatic rollback, rate limits, approvals for risky actions.
- Handles edge cases and states clearly when it cannot, escalating with context.
- Observability and SLOs of its own, plus tests and a staging environment.
- Closed loop: it detects the condition and fixes it without a human (for example, automatic remediation of a stuck node), with alerts only when remediation fails.
Where not to automate
- Remove the work instead. If a weekly manual step exists only because of a bad design, fix the root cause: make the service self-healing, eliminate the alert that is always a false positive, or drop an unnecessary approval.
- Payback is too long. A task done twice a year that takes 15 minutes is not worth a tool that costs weeks to build and maintain.
- The process is unstable. Automating something that keeps changing means constant rework; stabilize and document it first.
- Judgment dominates. Incident diagnosis, capacity planning trade-offs and ambiguous customer cases need human judgment. Automate the data gathering (dashboards, runbook links, diagnostics) rather than the decision.
- The danger outweighs the saving. Irreversible, rare, high-impact actions (deleting data) are better as a reviewed, semi-automated procedure with a human approval step.
Examples
| Task | Decision |
|---|---|
| Deploys, many times a day | Excellent: pipeline with canary and automatic rollback |
| Restarting a hung worker, paged weekly | Auto-remediation first, then fix the root-cause bug |
| Quarterly certificate rotation | Automate for safety even though it is rare |
| Annual data-center audit report | Good-enough script, or leave manual |
| Rare, bespoke customer data migration | Runbook plus helper scripts, human in the loop |
Risks to acknowledge
- Skill atrophy: when automation handles everything, engineers forget how the system works. Practice manual procedures through game days.
- Hidden problems: auto-remediation can mask a real defect, such as a service that restarts every hour. Count and review remediations as signals.
- Cascading failures: automation acting on bad input at scale (for example, mass-draining nodes). Hence blast-radius limits.
- Maintenance debt: untended automation rots as the systems around it change.
Common mistakes in answers
- Saying "automate everything" without cost-benefit reasoning.
- Ignoring maintenance cost and treating build time as the only cost.
- Skipping safety properties.
- No way to prove that time was freed.
- Never mentioning that removing the task can beat automating it.
Summary line
Measure toil, rank by payback and risk, build automation with production-grade safety proportional to its blast radius, check that the time really came back, and prefer eliminating work over automating it.