InterviewLegend

Design File Search

Sometimes asked
Alex Chen45 min readUpdated 72 real interview reports

Dropbox stores a person's documents, spreadsheets, images, and PDFs. At some point that pile gets big enough that scrolling folders stops working, and people just want to type a few words and find the file. The real system behind this is Nautilus, Dropbox's search engine. It was built to serve more than 500 million users across hundreds of billions of documents, with results personalized to each person. This design shows up in senior and machine-learning-adjacent loops rather than every mid-level interview. It is a good one to have ready, because it rewards the two instincts Dropbox cares about most: separating the heavy write-side work from the read path, and getting access control exactly right.

The job sits between a user typing a few words and a ranked list of their files coming back. To do it, the system has to have already read the contents of every file, pulled out searchable text, and folded it into an index, all while files keep changing underneath it. And it has to do the one thing a generic web search never worries about: make absolutely sure a result set never includes a file the searcher is not allowed to see.

The Dropbox angle
The constraint that makes this a Dropbox problem, and not a generic "design search," is that a result must never leak a file the user cannot access, not even its existence. Web search indexes public pages, so ranking is the whole game. File search is private by default and layered with sharing. A file lives in a folder, that folder may be shared with a team, and a link may grant outside access. Any of that can be revoked at any moment. So retrieval is only half the work. Every candidate the index returns has to be checked against who is allowed to see it right now, and the filter has to reflect a permission that changed one second ago.
What's inside
  • 1 diagram
  • 5 sections
  • about 45 min

Premium lessonDropbox interview guide

These took digging.

What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.

100 companies. Checked every month.

Unlock all 100 companies

$49 a year · less than $1 a week · Cancel anytime

Had your Dropbox interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Dropbox interview guide

Know what Dropbox asks before you walk in.

16 coding · 5 system design · 23 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

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