KatInterview

Diagnosing a Sluggish Web UI and Handling a Live Defect

BehavioralModel answer
MediumModel answerBehavioraldebuggingperformanceincident-response

Last updated

Explain how you would find and fix the cause of a slow web frontend, then how you would triage, contain, root-cause, communicate and safely ship a fix for a production bug.

You are asked two open-ended engineering questions. Answer both as you would in a technical screen, with a clear order of steps rather than a list of random techniques.

Scenario A: a slow frontend

Users report that a web application's frontend feels very slow. Walk through how you would:

  • Narrow down and reproduce the problem.
  • Identify the precise bottleneck, whether it is a particular asset, API call, component, or DOM element.
  • Improve performance and confirm the improvement is real and lasting.

Scenario B: a bug in production

A defect has just been found in the live system. Describe how you would:

  • Judge how serious it is.
  • Limit the damage to users.
  • Find the root cause.
  • Keep stakeholders informed.
  • Ship a fix with low risk.
  • Reduce the chance of it happening again.

Be specific about tools, signals and trade-offs. Explain what you do first and why.

Hints

Hint 1

Start from measurement, not remedies: define what 'slow' means in numbers, decide which phase of the page lifecycle is slow (server, network, JS execution, rendering), and only then pick fixes.

Hint 2

For incidents, separate stopping the harm from understanding the cause. Think about which levers are fastest and safest (rollback, feature flag, rate limit) and what evidence you must preserve before using them.

Hint 3

Close both loops: verify the fix with the same measurements (or field data) you used to find the problem, and add a guard such as a performance budget, a regression test or an alert so it cannot silently return.