mlprep
Hard30 min·4 rounds

How would you design Amazon's product search ranking system?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

Design the ML system behind Amazon's product search. A user types "wireless headphones" — how do you decide which products to show and in what order? Walk me through retrieval, ranking, the signals that matter, and how you'd measure whether the system is working.

Ready to compare your reasoning?
Interviewer

You mentioned personalization — using the user's purchase history in ranking. But most searches on Amazon are from returning users, and a user's past purchases shouldn't always influence future results. If I just bought a TV, I don't want TVs surfaced for the next year. How do you handle this?

Ready to compare your reasoning?
Interviewer

Let's talk about sponsored products. How do you blend paid placements with organic results without destroying user trust?

Ready to compare your reasoning?
Interviewer

How would you design the system for tail queries and new products with little interaction history?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • How would you design the query understanding layer — specifically, how do you detect when a user's query has a navigational intent (they want one specific product) vs. an exploratory intent (they're browsing a category)?
  • Amazon has sponsored products that appear in search results. How do you blend organic ranking with paid placement without degrading search quality?
  • How would you detect search result manipulation — sellers gaming the ranking system through fake reviews or click fraud?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions