Skip to main content
EasyBug fixPython40 min

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.md
  • src/latency_rollup.py
  • fixtures/input.txt
  • tests/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.