Code RoomIoT latest-state lakehouse
HardPrep Room Coding #3313

IoT latest-state lakehouse

System designDistributed systemsSenior–Staff~50 min

Design a near-real-time lakehouse for IoT/telematics: ~3M connected vehicles emit GPS + sensor pings every few seconds (~hundreds of thousands of writes/sec), and the platform must serve both (a) a 'latest state per vehicle' lookup used by an ops dashboard, and (b) historical analytical queries over months of pings. Pings arrive out of order and late (a vehicle reconnects and dumps an hour of buffered pings). You need fresh latest-state and queryable history on object storage without a separate OLTP database. Design ingestion, the upsert path, and the layout.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.