Design a CSV Upload and Lookup System
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.
SamsaraPremium lesson · System design round
The Samsara design, worked end to end.
- Requirements and scopeSystem design
- The API and data model
- The design, drawn out1 diagram
- 5 deep divesWith the tradeoffs
$49 a year · all 122 companies · instant access
21,000+ candidate reports
Samsara interview guideKnow what Samsara asks before you walk in.
25 coding · 4 system design · 11 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.