Design Click-Through Rate Prediction for Microsoft Advertising Search Ads
Last updated: November 29, 2026
Quick Overview
Design the CTR prediction system used in the Microsoft Advertising auction on Bing, which must score thousands of candidate ads per query in milliseconds and be well calibrated because prices depend on it.
Microsoft
November 29, 20260
0
0 solved
Design the CTR prediction system used in the Microsoft Advertising auction on Bing, which must score thousands of candidate ads per query in milliseconds and be well calibrated because prices depend on it.
pCTR drives both ranking and pricing in the search ads auction, so small calibration errors become revenue and advertiser trust problems. A senior interviewer expects the full loop: features, model architecture, training at scale, calibration, serving latency, and experimentation.
What the Interviewer Expects
- Explain how pCTR enters the auction (bid x pCTR x quality) and why calibration matters
- Design features: query-ad text match, advertiser history, position and context, with careful position handling
- Choose a model (deep CTR model with embeddings and feature crosses) and continuous training
- Handle sampling, delayed clicks and position bias in labels
- Meet latency with a cascade and efficient serving
- Evaluate with log loss, calibration and online revenue and user metrics
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you model position so that pCTR is position-independent at auction time?
- How quickly must new ads get reliable predictions?
- How would you detect that a model update hurt a small set of advertisers?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
- For each query, score a few thousand candidate ads in under about 20 ms total ranking time.
- Outputs feed rank score and second-price-style pricing, so prediction...
High-Level Design
- Candidate selection: keyword and broad-match retrieval plus semantic ad retrieval give thousands of ads.
- Light model: a small model prunes to a few hundred.
- Main pCTR model: deep ...
Submit Your Answer
Microsoft Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline