InterviewLegend

Design a CSV Upload and Lookup System

Commonly asked
Alex Chen28 min readGuide updated

This is the design candidates have named most often for Samsara. Reports come from Poland, London, San Francisco and US full stack loops, mostly at SWE and SWE II, between 2019 and August 2024. One 2024 candidate called it "transaction logging": the user submits a CSV on a website, and the data is then available for lookup. A 2019 full stack candidate listed the ground to cover as uploading, parsing, storing, and making the data available for display and reporting. No report from the last 12 months names this prompt. Recent loops still include a design round in the virtual onsite, and the fuel-card fraud prompt reported into January 2025 starts from the same uploaded CSV. So it remains the best rehearsal for the flow, API and storage questions. Just don't walk in expecting it word for word.

On the surface this looks easy. Accept a file, split it on commas, insert rows. The interesting parts show up once you take the sizes seriously. A big fleet's monthly export can run to a million rows, and some of them will be broken. Browsers drop connections halfway through. A worker can crash after inserting half a file, and the retry must not insert that half twice. And the people searching later want an answer in well under a second from a table holding billions of rows.

The Samsara angle
The 2024 Wroclaw report put it plainly: "Be prepared to describe the entire flow, input/output, and all services' responsibilities." So for every box you draw, say what goes in, what comes out, and what that service owns. The services table later in this lesson is built for exactly that.

SamsaraPremium lesson · System design round

The Samsara design, worked end to end.

  1. Requirements and scopeSystem design
  2. The API and data model
  3. The design, drawn out1 diagram
  4. 5 deep divesWith the tradeoffs
Get the Samsara questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

Samsara interview guide

Know what Samsara asks before you walk in.

25 coding · 4 system design · 11 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Samsara interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.