Peak latency report overstates one endpoint
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
A performance reviewer runs this before signing off on a latency regression. This morning it shows one endpoint far slower at the peak than that endpoint's own traces support, and the review is stuck until the number reconciles.
latency_rollup.py reads a request-latency feed and prints, per endpoint, the peak (slowest) request latency in milliseconds and how many requests it saw.
What this round practices
A short observability round on peak latency, the number a regression review hinges on. One endpoint reads slower than its own traces, so the work is to pick out that endpoint's rows, compute the peak yourself, and find where the report's arithmetic parts ways with yours.
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/latency_rollup.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
Monitor board reads OK for a series whose exporter went silent
The monitor status board on-call watches during an incident reports OK for a series that sent no samples all window, so a blind monitor is indistinguishable from a healthy one and on-call stopped trusting the board.
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