Lesson 1 of 16
39. Design File Storage and Sync (Google Drive / Dropbox)

The interview prompt

3 min read+10 XP

This chapter is a full interview round, played out step by step. The interviewer's lines are in quotes. At each step you'll see what a strong candidate says, the pushback the interviewer throws, and how to answer it. At the end, grade yourself with the rubric.

How to use this chapter

  1. Read only the prompt below. Then stop.
  2. Set a 45-minute timer and do the whole round yourself, on paper or a whiteboard, out loud. Use the framework from Chapter 1: READ, then Draw, Dive, Defend.
  3. Then read the walkthrough and compare. Score yourself with the rubric at the end.

The core idea of this round: separate the bytes from the bookkeeping. File contents are huge and rarely change; the list of what's where is small and changes constantly. Design them as two different systems.

The prompt

"Design a file storage and sync service like Google Drive or Dropbox. Users put files in a folder on their laptop, and they appear on their phone and other computers."

Stop here. Start your timer.