Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Design Facebook Feed Recommender

HardSystem Design00:00
Practice interviewer
In session
5 left
00:00

Your question is Design Facebook Feed Recommender. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Product Context

Design the machine learning system behind Facebook Feed ranking for logged-in users. The goal is to generate a personalized ranked set of posts from friends, Groups, Pages, and recommended content while balancing engagement, freshness, and safety.

Scale

SignalValue
DAU350M Feed users
Peak Feed request QPS2.2M
Candidate post universe3B active posts over 30 days
New posts/day180M
Per-request p99 latency budget180ms
Feed items returned/request20-50

Task

  1. Clarify the product objective, primary prediction target, and key constraints for Facebook Feed.
  2. Propose an end-to-end architecture covering candidate retrieval, ranking, and re-ranking at Meta scale.
  3. Define what should run in batch versus online, including feature computation, model inference, and index refresh.
  4. Choose models for each stage and justify them with latency, quality, and cost tradeoffs.
  5. Explain how you would evaluate the system offline and online, including guardrails.
  6. Identify major failure modes, especially around feature drift, training-serving skew, and stale or biased recommendations.

Constraints

  • Must support both heavy users and cold-start users with limited interaction history.
  • Fresh posts should become eligible within minutes, not hours.
  • Serving cost matters: the most expensive model cannot score millions of candidates per request.
  • Must respect policy filters such as blocked accounts, integrity constraints, and locale/language restrictions.
  • Assume some labels are delayed or noisy (for example, meaningful engagement may arrive after impression time).
  • The system should degrade gracefully if a model, feature service, or ANN index is unavailable.