Ctrl K
Python · Mid-level · System design

Design a service where users upload CSV files of up to several gigabytes, and the service validates them and loads them into PostgreSQL. How would you build it in Python?

~10 min by voice

How to approach it

They're checking whether the candidate understands that a gigabyte-sized file can't be processed synchronously or fully in memory: you need an asynchronous design with a background task, streaming reads, batch inserts and a well-thought-out strategy for errors and atomicity.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsA mobile app sends about a billion events a day. Design a system for collecting and storing these events so that analysts can build reports and product dashboards update within a few minutes. Mid-levelEvery day you need to process a CSV export of about 100 gigabytes in Python: clean it, aggregate it, and load it into a database. You have a machine with 16 cores and 32 gigabytes of RAM. How would you design the processing? SeniorThe business wants a real-time dashboard of revenue and order count, with no more than a minute of delay, and the numbers have to match the daily report. How would you design this system? Senior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~10 min