Monitor board reads OK for a series whose exporter went silent
A practice debugging interview round in Python. Reproduce the failure in an unfamiliar codebase, narrow down the cause, ship a minimal fix, and explain your reasoning to an AI interviewer.
The incident
On-call keeps this status board open during an incident. For every monitored series it evaluates the samples that landed in the current window and prints one status line: ALERT if the series is at or over its threshold, OK if it is under, and NO DATA if nothing arrived for it this window. This morning the board printed OK for a series whose exporter had gone silent, so on-call could not tell a healthy service from a blind monitor and stopped trusting the board.
monitor_eval.py reads the collector feed and prints, per monitored series, its status for the fixed evaluation window.
The evaluation window is the fixed span 12:00:00Z up to (but not including) 12:05:00Z. A series' window average is the mean of its sample values inside that span.
What this round practices
A monitor that reports OK when it has no data is worse than no monitor at all. This easy round is about the difference between a healthy series and a missing one, and about making the status board say which is which.
Files you will work in
These 4 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.
task.mdsrc/monitor_eval.pyfixtures/input.txttests/expected_output.txt
What you are assessed on
The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.
- Reproduction
- File navigation
- Evidence gathering
- Hypothesis
- Root-cause understanding
- Regression prevention
- Patch scope
- Verification
- Edit control
- Communication clarity
How the round works
You get 40 minutes in a Python workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.
Ready to debug this codebase?
Open the workspace, run the failing check first, and walk the AI interviewer through your findings.
Related rounds
View all debugging rounds- EasyBug fix
Peak latency report overstates one endpoint
The per-endpoint peak latency report shows one endpoint far slower than its own traces support, and a latency regression review is stuck on the discrepancy.
Python · 40 min
- EasyBug fix
Reliability rollup over-reports one service's ERROR count
The nightly per-service ERROR-line rollup reports more errors for one service than the metering dashboard, so the on-call engineer cannot trust it.
Python · 30 min
- EasyBug fix
Object link report undercounts one object type
The ontology link report shows fewer active links for one object type than the graph explorer does, and a data-quality review is blocked until the counts reconcile.
Python · 40 min