KatInterview

Design Data Models and Pipelines for a Robotaxi Fleet

System DesignModel answer
HardModel answerSystem Designdata modelingpipelinestelemetry

Last updated

Design the analytics data model for a remote vehicle assistance function and an end-to-end pipeline for measuring autonomous fleet stability.

Background

A fully autonomous ride-hail service operates a fleet of self-driving vehicles. Passengers book trips through an app; the vehicle handles pickup and dropoff without a human driver. A team of remote operators — called mission specialists — monitors the fleet from a central operations hub throughout each shift.

Mission specialists can:

  • Track any vehicle's live position on a map.
  • Watch a live video feed from vehicle cameras.
  • Step in when a vehicle requests help: they may observe, give guidance, take remote control, escalate to field support, or mark the issue resolved.

The operational flow when a vehicle needs help:

  1. The vehicle sends a help request.
  2. The request enters a queue.
  3. A mission specialist is assigned to it.
  4. The specialist works the issue until it is resolved, handed off, or escalated.

There are always more active vehicles than specialists. A single specialist handles multiple vehicles over the course of a shift.


What to Design

Part 1 — Remote Operations Data Model

Design a data model to measure the efficiency and effectiveness of the remote operations function.

Your answer should cover:

  • Core entities and their table grain (what one row represents).
  • Relationships between entities.
  • The key metrics the model should support, grouped by efficiency and effectiveness.

Part 2 — Fleet Stability Pipeline

Design a data architecture and pipeline to measure vehicle stability across the autonomous fleet.

Your answer should cover:

  • Data sources.
  • Ingestion approach (streaming and/or batch).
  • Storage layers.
  • Key transformations.
  • Data quality checks.
  • Metrics produced.
  • Downstream consumers of this data.

What is Expected

This is a design question, not a coding exercise. A strong answer will:

  • State assumptions about scale (fleet size, request volume, telemetry rates).
  • Scope the problem clearly: this is the analytics and observability layer, not the real-time control plane.
  • Define what "efficiency," "effectiveness," and "stability" mean concretely before jumping into schemas.
  • Justify design choices and name trade-offs.
  • Use specific numbers, latency targets, and technology examples where they add clarity.

Hints

Hint 1

Before drawing any tables, nail down the grain of each fact table. Ask: what does one row represent? The most common mistake here is mixing help-request-level and assignment-level facts into a single table, which makes handoff and escalation metrics impossible to compute correctly.

Hint 2

Don't forget the denominator. Efficiency metrics like utilization and requests-per-hour need a specialist state interval table — something that records when each specialist was available, handling a case, or on break. Without it, you can't divide handling time by anything meaningful.

Hint 3

For the stability pipeline, think in two paths: a low-latency streaming path for real-time alerts (fleet-wide fault spikes, vehicles stuck without an open request) and a higher-fidelity batch path from depot uploads that becomes the source of truth. The batch path reconciles data lost over the cellular connection.