Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design Facebook Ads CTR Predictor

Hard
System DesignML RankingFeature StoreModel ServingAsked 1 times

Problem

Product Context

Design the machine learning system that predicts whether a Facebook user will click on an ad shown in Feed, Stories, or Reels. The prediction is used inside Meta’s ads delivery stack to help rank eligible ads for each impression while balancing relevance, advertiser value, and strict latency constraints.

Scale

SignalValue
DAU2.2B Facebook/Instagram users exposed to ads
Peak ad impression opportunities12M requests/sec globally
Eligible ads per auction before pruning50K-200K
Ads active in last 30 days150M creatives/campaigns
New/updated ads per day8M
End-to-end p99 latency budget120ms
Training events/day60B impressions, 900M clicks

Task

Design an end-to-end ML system for click-through-rate prediction in Meta ads ranking. Address the following:

  1. Clarify the prediction target, product goals, and how CTR fits into the overall ads auction and ranking objective.
  2. Propose a multi-stage architecture from candidate retrieval/pruning to ranking and optional re-ranking, including what runs online vs batch.
  3. Define the data pipeline: labels, delayed feedback handling, feature engineering, training cadence, and how you avoid training-serving skew.
  4. Choose models for each stage and justify tradeoffs across quality, latency, interpretability, and serving cost.
  5. Explain offline evaluation, online experimentation, calibration, and business guardrails.
  6. Identify major failure modes at Meta scale, including feature drift, stale features, cold start, and infrastructure degradation.

Constraints

  • The system must support ads from new advertisers and new creatives with little or no click history.
  • User features should be fresh within minutes; campaign budget and pacing signals may update sub-minute.
  • Raw creative understanding models can run offline, but not synchronously in the serving path for every request.
  • The system must be highly available and degrade gracefully to simpler models if feature services or deep rankers are slow.
  • Predictions must be calibrated because downstream auction logic consumes probabilities, not just relative scores.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Meta Machine Learning Engineer Interview Questions
Next questions
MetaReal-Time Ad Impression TrackingHardMetaDesign Facebook Feed RecommenderHardMetaDesign Meta Ads Insights RankerHard
0 / ~200 words