FDEInterviews logo
Practice tests · 37 questions

ML System Design (Product): the practice test

Design the model behind a product surface: feed ranking, recommendations, watch-time and ETA prediction, fraud and bot detection, ads ranking. Candidate generation, feature and label design, training, offline and online evaluation, and serving at scale, the way Meta, Google, Netflix and recsys teams run the round. This test drills exactly that: 12 easy, 10 medium and 15 hard questions, every one explained, every explanation linking into the worked material.

Set up your test
Topic
How confident are you feeling?
Questions
12 in this pool · about 7 min
Reveal answers
Sign in to startFree account · your questions rotate between takes

Sample questions, answered

easy · sample
Every large-scale recommender splits into candidate generation and ranking. Why two stages instead of one great model?
A cheap stage cuts millions to hundreds, so the expensive model ranks only those
The two stages are trained on different clouds for fault isolation
Regulation requires separating retrieval from personalization logic
One model would overfit the catalog; two stages act as an ensemble regularizer instead

It is an economics theorem more than an architecture choice: a heavy ranking model spending even a millisecond per item cannot touch a hundred-million-item catalog inside a 200ms budget, so a cheap, recall-oriented stage (embedding retrieval, popularity, follows) narrows the field to a few hundred, and the precision-oriented ranker spends its capacity only there. Every serious feed, marketplace and video platform converges on this funnel, sometimes with a light pre-ranker between the stages. The design consequence interviewers probe next: the stages need different metrics, recall-at-k for generation, ranking quality for the ranker, because each can fail independently.

easy · sample
Why is the two-tower architecture the workhorse of retrieval stages?
Two towers regularize each other during training, preventing collapse
It doubles model capacity without doubling the serving latency
Cross-attention between the towers captures fine-grained user-item interactions cheaply
Item embeddings precompute into an ANN index; only the user embeds at request time

The architecture is shaped by a serving constraint: if user and item interact only through a final dot product, then item vectors depend on nothing about the user, so the entire catalog can be embedded offline into an approximate-nearest-neighbor index, and serving becomes one user-tower forward pass plus an ANN lookup, fast at any catalog size. The price is exactly the missing cross-attention: no early user-item feature crossing, which is why a heavier ranker sits downstream to capture what the towers cannot. Understanding that the dot-product bottleneck is the point, not a limitation someone forgot to fix, is what the question screens for.

Go deeper than the quiz

A practice test measures recall. The material it draws from teaches the reasoning: