Design Sponsored Product Ad Ranking for Search Results

Last updated: November 29, 2026

Quick Overview

Design the ML system that decides which sponsored product ads to show in a shopping search results page and in which slots, balancing advertiser bids, ad relevance, and shopper experience.

Amazon
ML System Design
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design the ML system that decides which sponsored product ads to show in a shopping search results page and in which slots, balancing advertiser bids, ad relevance, and shopper experience.

Sponsored Products is a core Amazon Ads business, and ad ranking interviews test a multi-stage retrieval and ranking stack plus auction mechanics. The interviewer checks whether you predict click and conversion probabilities well, rank by expected value with relevance constraints, and protect shopper trust.

What the Interviewer Expects
  • Candidate retrieval from millions of ads under a latency budget
  • Predict CTR and conversion rate with calibrated models
  • Rank by bid times predicted value with relevance floor
  • Auction pricing such as second-price style
  • Online experimentation and advertiser-side metrics
Key Topics to Cover
Multi-stage ranking
CTR prediction
Calibration
Auction design
Exploration
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • Why must predicted CTR be calibrated for the auction?
  • How would you handle a brand new ad with no history?
  • How do you prevent irrelevant high-bid ads from showing?
  • How do you measure long-term shopper impact of ad load?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Functional: for a query and shopper context, select up to K ads for available slots, compute prices, and log impressions, clicks, and purchases for billing and training. Non-functional: under ...

High-Level Design
  1. Query understanding: category and intent predictions for the query (shared with organic search).
  2. Retrieval: keyword-targeted ads matched via an inverted index on advertiser keywords plus...

Submit Your Answer
Markdown supported