InterviewStack.io LogoInterviewStack.io

Recommendation, Ranking, and Personalization Questions

Systems that select and order items for users. Covers candidate generation and ranking, personalization signals, collaborative and content-based approaches, learning-to-rank, multi-armed bandits, and online experimentation for model validation. Focuses on the modeling and evaluation patterns specific to recommendation and ranking at scale.

HardTechnical
86 practiced

Implement a Python evaluation function to compute recall@k and Mean Reciprocal Rank (MRR) for batches of sessions. Input: list of ground-truth next-item IDs and a corresponding 2D array of predicted top-k item IDs. The implementation should be vectorized and handle missing ground-truths robustly.

HardSystem Design
82 practiced

Design an offline policy selection system that ranks thousands of candidate bandit policies using historical logs. Explain how you would compute IPS/DR estimates at scale, control variance, perform multiple-comparison corrections, and decide which policies to promote to online canary tests. Discuss compute and storage architecture.

MediumTechnical
77 practiced

Compare using a heavy Transformer-based sequence model versus a lightweight matrix factorization model for playlist generation in production. Discuss trade-offs regarding inference latency, training cost, capacity to model long-term preferences versus short-term session signals, maintainability, and which product situations favor each approach.

EasySystem Design
64 practiced

Outline a simple two-stage recommendation architecture (retrieval + ranking) for a startup with 10M users and 1M items. Describe core components (candidate generation, ANN or inverted indices, feature store, ranker), data flow, and where lightweight vs heavyweight models should run.

MediumTechnical
75 practiced

Describe a monitoring and observability plan for Spotify's recommendation models in production. List key metrics at model, feature, and business levels (including latency and fairness metrics), describe strategies to detect data drift and concept drift, set alerting thresholds, and outline remediation workflows for detected anomalies.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.