Recommendation, Ranking, and Personalization Questions

Systems that select and order items for users. Covers candidate generation and ranking (two-stage retrieval, embedding-based retrieval with two-tower models and approximate nearest-neighbour candidate lookup, multi-stage scoring and cross-encoder re-ranking), collaborative and content-based filtering, matrix factorization (alternating least squares, Bayesian personalized ranking), sequence-aware and graph-based recommenders, cold start, learning-to-rank and negative sampling, turning noisy implicit feedback into labels, position, exposure and popularity bias and feedback loops, diversity, fairness-aware exposure and multi-objective re-ranking, counterfactual (off-policy) evaluation of recommenders (inverse propensity scoring, doubly robust estimators), and exploration with multi-armed and contextual bandits (epsilon-greedy, upper-confidence-bound and Thompson sampling, LinUCB, regret, non-stationarity, constraints, rollout, and when a bandit beats a fixed split or full reinforcement learning). Includes end-to-end recommender and personalized feed design. Focuses on the modeling and evaluation patterns specific to recommendation and ranking at scale. General A/B test design, generic ranking-metric definitions and ML serving infrastructure are covered elsewhere.

MediumTechnical
92 practiced

Implement a simple two-stage pipeline: retrieve candidate items with an inverted index on tags, then score the candidates with a lightweight model.

MediumSystem Design
91 practiced

Design an ANN-backed candidate retrieval service for a recommender with a 200 ms end-to-end budget at 10k QPS. How do you choose and configure the index, shard and replicate it, warm it, and handle cold items?

MediumTechnical
65 practiced

Per inference call you must produce top-k recommendations for a user from millions of items. What algorithmic and numerical techniques make this efficient and stable?

MediumTechnical
85 practiced

Implement brute-force top-k retrieval in NumPy: given item embeddings and a user embedding, return the top-k items by cosine similarity. Discuss complexity and when this stops being viable.

MediumSystem Design
91 practiced

Design a recommendation system for a video streaming service with tens of millions of users and millions of items. Specify the stages, candidate sizes, retrieval method, ranking features and how you evaluate it offline and online.

Unlock Full Question Bank

Get access to all 7 Recommendation, Ranking, and Personalization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.