AI & Technical question

How would you implement the sync feature of Google Drive app or Google Docs? How would you design the DB for G-drive?

Practice this question out loud. An AI interviewer asks it, follows up like a real interviewer would, and scores your answer. Type or speak.

Start a mock interview on this question · Mock interview from a job description

What this question tests

System design thinking applied to a product problem: sync architecture and data modeling trade-offs.

How to approach it

  1. Clarify scope: syncing file edits across multiple devices with offline support and conflict resolution, not just upload/download.
  2. Describe the sync approach: chunk files into blocks, hash each block, and only transfer changed blocks to minimize bandwidth.
  3. Explain conflict handling: last-write-wins for simple cases, versioned branches or merge prompts for simultaneous edits like Docs.
  4. Sketch the DB schema: files table, versions table with block references, and a device-sync-state table tracking each client's last synced version.
  5. Discuss trade-offs: consistency versus latency, and how much local caching to keep for fast offline access.
  6. Define success metrics: sync latency, conflict rate, and failed sync rate.

What a strong answer includes

Common mistakes

Likely follow-up questions

More ai & technical questions

More questions from Google

Learn the skill behind it

Chapters of the AI PM course that teach what this question tests.

Preparing for a specific role?

Book summaries for this kind of question

Browse all 4,000+ questions in the bank