Pinterest·Machine Learning Engineer·Onsite - System Design / Architecture
Apr 2026
Pinterest ML engineer system design round focused entirely on building a search engine for Pins from scratch. Brutal scope: data modeling, indexing, retrieval, ranking, spam, logging, and scaling all in one session. Left feeling like I only got halfway through what they wanted.
- Design a search engine for Pins. Walk through the full system: data model, indexing pipeline, query understanding, candidate retrieval, ranking, spam and duplicate handling, click logging, A/B testing, and how you'd scale to billions of pins with low latency.
- How would you build the indexing pipeline to support both text-based and image-based search queries?
- How would you approach ranking retrieved pin candidates, considering relevance, personalization, freshness, and quality signals together?
- How would you design the A/B testing framework to evaluate changes to the ranking model?
- What's your approach to detecting and filtering spam and near-duplicate pins at scale?
“This is basically a full ML platform design crammed into one question.” The rest of the author's notes on Machine Learning Engineer interview at Pinterest, Onsite - System Design / Architecture round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post