Design Anomaly Detection for Nightly Batch Job Runtime Overruns
Last updated: November 29, 2026
Quick Overview
Design an ML system for an AIOps platform that learns the normal runtime of thousands of nightly batch jobs per enterprise, predicts which jobs will overrun before they finish, and alerts operators early enough to protect business deadlines such as end-of-day settlement.
TCS
November 29, 20260
0
0 solved
Design an ML system for an AIOps platform that learns the normal runtime of thousands of nightly batch jobs per enterprise, predicts which jobs will overrun before they finish, and alerts operators early enough to protect business deadlines such as end-of-day settlement.
ignio's batch-operations capability is about predicting SLA breaches in complex job chains at banks and retailers, and the ML engineering roles behind it face exactly this problem. The interviewer checks seasonality handling, per-job versus global models, early prediction on partial runs, and alert precision for operators who hate noise.
What the Interviewer Expects
- Frame both anomaly detection and early SLA breach prediction
- Handle seasonality (month end, quarter end, holidays) and volume drivers
- Choose between per-job baselines and a global model with job features
- Predict on running jobs using elapsed time and upstream signals
- Propagate risk through the job dependency DAG to the deadline
- Measure precision, lead time and operator trust
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you handle a brand new job with no history?
- What happens to the model after a planned code change doubles a job's runtime?
- How would you explain an alert to an operator at 2 a.m.?
- How do you avoid alert storms when one upstream job delays fifty downstream jobs?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Per enterprise: 5,000 to 50,000 jobs per night, a scheduler (Control-M, Autosys and the like) emitting start, end and status events, and a handful of business deadlines. Goals: flag abnormal runtimes,...
High-Level Design
Ingest scheduler events and job metadata into a feature store. Offline: train runtime models and build the job DAG from historical dependencies. Online: a scoring service updates each running job's pr...