Design file storage and sync (like Dropbox or Google Drive)
You put a file in a folder on your laptop, and a few seconds later it's on your phone and your tablet, and on a colleague's laptop if the folder is shared. Edit it on a plane, and the edit arrives when you land. It's a family's shared photo album: everyone keeps a copy at home, and each new page is posted to every house.
It's also asked as "design Dropbox", "design Google Drive" or "design iCloud Drive". Its closest case study is the Collaborative editor, where many people edit one document live; here files are saved whole and rarely edited at once, which changes how conflicts are handled. Interviewers like it because it tests big uploads, a change log every device follows, and conflicts that must never lose an edit. The sync contract it uses is taught in The client–server contract.
Below is a full mock interview following the seven steps of the framework. You're the candidate: at each Guess before you read on, stop and answer first.
Step 1 · Clarify the features and cut the scope
Minutes 0–5 · How this step works
Interviewer: Design file storage and sync, like Dropbox.
You: A few questions first. Is the core a folder that stays the same on every device, including offline edits?
Interviewer: Yes. Desktop apps sync a folder; phones and the web browse and upload.
You: Can people share folders with others, and edit in them?
Interviewer: Shared folders with edit rights, and view-only links.
You: How big can files be, and do we keep old versions?
Interviewer: Up to 50 GB. Versions and deleted files can be restored for 30 days.
You: Then I'll cover upload and download, sync across devices with offline edits, conflicts, shared folders, and versions. Out: live co-editing, search, previews and billing. OK?
Interviewer: Good.
Each answer shapes the design: offline edits reach the server late, sharing sends a folder's changes to several people, and versions keep blocks after their files change.
Step 2 · Non-functional requirements
Minutes 5–8 · How this step works
You: Say 100 million users, 20 million active a day with about two devices each, storing ~10 GB each on average. A saved file under 10 MB should reach the user's other online devices within 10 seconds for 99% of saves. Metadata calls answer within 200 ms at p99. Sync is 99.9% available, and since the app works offline, users rarely see a short outage. A saved version is never lost. A device never shows half of one version and half of another, and no edit is ever silently dropped.