KatInterview

Build a Live Same-Day Delivery Dashboard for a Station Lead

System DesignModel answer
HardModel answerSystem Designdashboard-designmetricsvisualization

Last updated

Design a dashboard for a delivery-station lead covering metric definitions, chart choices, layout, interactions, alerting, validation, and scalable aggregation that keeps tail behavior visible.

You are the analyst responsible for a live dashboard used by the lead of a last-mile delivery station. The lead makes same-day calls: pulling a dispatch wave forward, reassigning stops, adding a rescue courier, requesting extra flex capacity, or escalating a late inbound truck.

Design the dashboard end to end. Your answer should cover:

  1. Metrics and charts. Define precisely a set of operational metrics, for example on-time dispatch rate, backlog by hour, courier utilization, SLA risk by route, and defects per million orders. For each one, choose a visualization and justify it using the shape of the data (skew, bounded rates, rare events), seasonality, and how quickly the lead has to act.
  2. Layout. Describe the top-level KPIs, the time-series area, and the drill-down paths (route, zip code, courier).
  3. Interactions. Explain time selection, filters, cross-filtering, and how anomalies are annotated.
  4. Alerting. Propose thresholds and explain when to use absolute limits versus relative deviations from a baseline.
  5. Validation and honesty. Describe how you would test whether the dashboard actually helps (usability tasks, decision latency, false-alert rate) and how you would avoid misleading visuals, such as dual axes, truncated axes, and Simpson's paradox across zip codes.
  6. Scale. The station produces 50k+ events per day. Explain how you would aggregate data so the dashboard stays responsive without hiding the tails of the distributions (pre-aggregation, tiles, quantile sketches).

Be concrete: give formulas, example thresholds, and the trade-offs behind your choices.

Hints

Hint 1

Start from the decisions the lead makes and how many minutes they have; fast decisions need ranked, glanceable views, slower ones can use distribution views.

Hint 2

Always compare to a seasonal baseline (same weekday and hour), and pair any relative-change alert with an absolute floor so small denominators do not trigger noise.

Hint 3

50k events a day is tiny for storage; the real load is many viewers and percentile queries, so think about rollups by minute and hour, mergeable quantile sketches, and keeping raw events for drill-down only.