Design Share Recipient Suggestions in the Google Drive Share Dialog

Last updated: November 29, 2026

Quick Overview

When a user opens the Share dialog in Google Drive, suggest the people they are most likely to share this file with before they type. Design the ranking model and data flow.

Google
ML System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Phone Screen
ML System Design
Easy

0

0

0 solved


When a user opens the Share dialog in Google Drive, suggest the people they are most likely to share this file with before they type. Design the ranking model and data flow.

A compact ML design prompt suited to generalist engineers on Workspace, testing whether you can build a useful ranker from interaction logs with privacy constraints. Interviewers check feature choices, label definition and that you never leak contacts across organizations.

What the Interviewer Expects
  • Generate candidates from collaboration history and organization directory
  • Use features from the file itself (folder, current collaborators, title)
  • Define a label from accepted suggestions and actual shares
  • Respect domain sharing policies and privacy
  • Keep latency low for an interactive dialog
Key Topics to Cover
Contact ranking
Collaboration graph
Feature engineering
Privacy boundaries
Implicit labels
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you handle a new employee with no history?
  • Should suggestions change as the user types the first letters?
  • How do you evaluate without showing bad suggestions to many users?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Show 3 to 6 suggested people when the dialog opens, under 100 ms. Success: a suggestion is clicked or the user ends up sharing with a suggested person. Constraints: only people the user is allowed to ...

High-Level Design
  1. Candidates: people the user shared with recently, co-editors of files in the same folder, collaborators on files with similar titles, frequent email and Chat contacts within the domain, manager...

Submit Your Answer
Markdown supported