← Questions

Design a simulator that replays recorded left-turn scenarios

0
Applied IntuitionSystem designLast asked Feb 2026

A system design interview question asked in Applied Intuition's system design round, last asked Feb 2026. It tests simulation, autonomous vehicles and replay.

Design a service that takes recorded videos of real left turns and replays them, so engineers can find the moments that matter (the oncoming car, the pedestrian in the crosswalk) and run an autonomous-driving stack against what actually happened. The service ingests recordings, indexes the events inside them, streams playback to users, and exposes an API for scenario search and replay.

Requirements

  • Functional: upload or register recorded drives with video and timestamped metadata; detect and index left-turn events (and the agents involved); search for scenarios ("unprotected left with oncoming traffic"); play a scenario back from a few seconds before the turn, with seek; replay it as a simulation input for a software version and keep the result.
  • Non-functional: large video volume, playback that starts fast and stays smooth, many users and many batch simulation runs, durable storage of raw data and results, reproducible replays.

Clarifying questions

  • What is recorded: camera video only, or also lidar, poses and the vehicle's own decisions?
  • Is "replay" watching the video, or feeding the recorded world to the stack under test (open loop or closed loop)?
  • How are left turns found: by map and pose data, by labels, or by a model?
  • How many hours of recordings a day, and how many scenarios run per software release?
  • Who uses it: engineers browsing, or CI running every scenario on every build?

What a strong answer covers

  • The data model: drive, time-indexed streams, event (type, start, end, agents, tags), scenario (event plus window), simulation run (scenario, software version, metrics).
  • Ingestion: store raw video in object storage, transcode into seekable segments, extract events offline and write them to an index.
  • An event index that answers search queries quickly (structured filters plus tags), separate from bulk storage.
  • Playback: segment streaming with a manifest, seeking to an event's start, keeping video and metadata on one clock.
  • Replay at scale: a job queue that fans scenarios out to workers, pinned inputs and software versions for reproducibility, and results compared across versions.
  • Latency, failure and cost: caching hot segments, retrying failed runs, tiering cold recordings.

Follow-ups

  • Make the replay closed loop, so other agents react when the stack under test drives differently.
  • Two software versions disagree on a scenario. How does the system surface that?
  • Add new event types without re-processing every recording.
  • Keep cost down when recordings grow by petabytes a year.

Where it's asked

What it tests

simulation · autonomous vehicles · replay · testing

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing