PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Snapchat

Design a search-to-ads ranking pipeline

Last updated: Mar 29, 2026

Quick Overview

This question evaluates knowledge of designing a low-latency search-plus-ads ranking pipeline and related competencies in retrieval, filtering, multi-stage ranking, ad auction mechanics, pacing/budget constraints, result mixing, experimentation, and monitoring.

  • medium
  • Snapchat
  • System Design
  • Machine Learning Engineer

Design a search-to-ads ranking pipeline

Company: Snapchat

Role: Machine Learning Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

## Prompt Design a high-level **search + ads ranking** system for an app where a user issues a query and the product shows a mix of organic search results and sponsored ads. ### Requirements - Return results within a strict latency budget (assume ~200 ms end-to-end). - Ensure good user experience while meeting monetization goals. - Support experimentation (A/B tests) and continuous model iteration. ### Discuss 1. The main components of the request flow (retrieval, filtering, ranking, mixing). 2. How ads ranking differs from organic ranking (auction/bids, pacing/budgets, policies). 3. How you would mix ads and organic results and what constraints you would enforce. 4. Key metrics to monitor and how you would debug regressions.

Quick Answer: This question evaluates knowledge of designing a low-latency search-plus-ads ranking pipeline and related competencies in retrieval, filtering, multi-stage ranking, ad auction mechanics, pacing/budget constraints, result mixing, experimentation, and monitoring.

Related Interview Questions

  • Design a News Aggregator - Snapchat (hard)
  • Design a device owner lookup service - Snapchat (nan)
  • Design real-time ad impression and spend tracking - Snapchat (nan)
  • Design short URL service with click counting - Snapchat (hard)
  • Design an Instagram Stories feature - Snapchat (medium)
Snapchat logo
Snapchat
Feb 11, 2026, 12:00 AM
Machine Learning Engineer
Onsite
System Design
1
0
Loading...

Prompt

Design a high-level search + ads ranking system for an app where a user issues a query and the product shows a mix of organic search results and sponsored ads.

Requirements

  • Return results within a strict latency budget (assume ~200 ms end-to-end).
  • Ensure good user experience while meeting monetization goals.
  • Support experimentation (A/B tests) and continuous model iteration.

Discuss

  1. The main components of the request flow (retrieval, filtering, ranking, mixing).
  2. How ads ranking differs from organic ranking (auction/bids, pacing/budgets, policies).
  3. How you would mix ads and organic results and what constraints you would enforce.
  4. Key metrics to monitor and how you would debug regressions.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Snapchat•More Machine Learning Engineer•Snapchat Machine Learning Engineer•Snapchat System Design•Machine Learning Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.