Design a Dropbox-Style File Vault for Storing and Sharing Files

Quick Overview

Design a file vault similar to Dropbox or Google Drive where users upload files into folders, download them on any device and share them with others. It tests separating file content from metadata, resumable large uploads, permission inheritance, sync conflicts, durability and encryption at a senior infrastructure level.

Design a Dropbox-Style File Vault for Storing and Sharing Files

Company: Harvey

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a file vault service similar to Dropbox or Google Drive. Users upload files into a folder hierarchy, download them later from any of their devices, and share files or folders with other people. The position is a senior infrastructure role, so plan to spend most of the discussion on how file contents and metadata are stored, how large uploads work, how permissions are checked, and how the system keeps files durable and consistent. ```hint Split the two kinds of data File contents and the folder tree differ in size, access pattern and consistency needs. Decide which store holds each and how the two stay in step. ``` ```hint Follow one large upload Trace a multi-gigabyte upload over an unreliable connection from the first byte to the moment the file appears in its folder, including what happens when the connection drops halfway. ``` ### Clarifying Questions - Is there a maximum file size, and how many files and how much storage per user should the design assume? - Do we need desktop and mobile clients that keep a local folder in sync, or only web upload and download? - What sharing model is needed: viewer and editor roles, link sharing, access for a whole organization? - Is version history required, and for how long are old versions and deleted files kept? - Are there requirements for encryption, data residency, retention or audit logs? - Should identical content be stored once, and if so within one account only or across accounts? ### What a Strong Answer Covers - Requirements and capacity estimates (users, files, bytes stored, upload and download rates) that drive the storage choices. - A split between object storage for content and a transactional metadata store for the namespace, with a schema for folders, files, versions, chunks and permissions. - The large-file upload path: chunking, resumable transfer, integrity checks and the moment a file becomes visible. - The download path: authorization, how bytes reach the client, and caching. - Sync across devices and the handling of conflicting edits. - Permission checks with folder inheritance, and the cost of moving or re-sharing a large folder. - Durability, consistency between metadata and content, garbage collection of unreferenced data, encryption and failure handling. ### Follow-up Questions - Two devices edit the same file offline and then both sync. How do you detect the conflict and what does each user see? - A user moves a folder containing 100,000 files into a folder shared with a team. How do paths and permissions update, and how long does the move take? - How would you design deletion so that files can be restored for a period, while storage is eventually reclaimed? - One tenant requires its files to stay in a specific region and to be encrypted with keys it controls. What changes?

Overview: Design a file vault similar to Dropbox or Google Drive where users upload files into folders, download them on any device and share them with others. It tests separating file content from metadata, resumable large uploads, permission inheritance, sync conflicts, durability and encryption at a senior infrastructure level.

Read the full Harvey Software Engineer interview experience this question came from

Harvey logo
Harvey
Nov 27, 2026
mediumSoftware EngineerOnsiteSystem Design
0
0

Design a file vault service similar to Dropbox or Google Drive. Users upload files into a folder hierarchy, download them later from any of their devices, and share files or folders with other people. The position is a senior infrastructure role, so plan to spend most of the discussion on how file contents and metadata are stored, how large uploads work, how permissions are checked, and how the system keeps files durable and consistent.

Clarifying Questions Guidance

  • Is there a maximum file size, and how many files and how much storage per user should the design assume?
  • Do we need desktop and mobile clients that keep a local folder in sync, or only web upload and download?
  • What sharing model is needed: viewer and editor roles, link sharing, access for a whole organization?
  • Is version history required, and for how long are old versions and deleted files kept?
  • Are there requirements for encryption, data residency, retention or audit logs?
  • Should identical content be stored once, and if so within one account only or across accounts?

What a Strong Answer Covers Guidance

  • Requirements and capacity estimates (users, files, bytes stored, upload and download rates) that drive the storage choices.
  • A split between object storage for content and a transactional metadata store for the namespace, with a schema for folders, files, versions, chunks and permissions.
  • The large-file upload path: chunking, resumable transfer, integrity checks and the moment a file becomes visible.
  • The download path: authorization, how bytes reach the client, and caching.
  • Sync across devices and the handling of conflicting edits.
  • Permission checks with folder inheritance, and the cost of moving or re-sharing a large folder.
  • Durability, consistency between metadata and content, garbage collection of unreferenced data, encryption and failure handling.

Follow-up Questions Guidance

  • Two devices edit the same file offline and then both sync. How do you detect the conflict and what does each user see?
  • A user moves a folder containing 100,000 files into a folder shared with a team. How do paths and permissions update, and how long does the move take?
  • How would you design deletion so that files can be restored for a period, while storage is eventually reclaimed?
  • One tenant requires its files to stay in a specific region and to be encrypted with keys it controls. What changes?