Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Design Real-Time Ad Bidding Ranker

HardSystem Design00:00
Practice interviewer
In session
5 left
00:00

Your question is Design Real-Time Ad Bidding Ranker. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Product Context

AdNova runs a large programmatic advertising exchange. When a user opens a publisher page or app, the exchange must select eligible ads, estimate value, and return a bid decision in real time for advertisers competing in the auction.

Scale

SignalValue
DAU impacted120M users across publisher inventory
Peak bid requests500K QPS
Active ad catalog40M creatives / campaigns
Eligible candidates per request5K-50K before filtering
End-to-end latency budgetp99 < 50ms
Daily impression logs~18B events/day

Task

Design an end-to-end ML system for real-time ad bidding under these constraints. Your design should address:

  1. How to retrieve and filter eligible ads, then score and rank them within the latency budget
  2. What models you would use at each stage (retrieval, ranking, bid optimization / re-ranking) and why
  3. How to split computation between batch and online systems, including feature freshness requirements
  4. How you would train, evaluate, deploy, and monitor the models at scale
  5. What failure modes are most likely in production and how the system should degrade safely

Constraints

  • The system must sustain 500K QPS globally with multi-region failover
  • p99 latency must remain under 50ms, including network overhead and feature lookups
  • User-level features are privacy-constrained: only approved, low-retention signals may be used in some regions
  • Advertiser budgets, pacing, frequency caps, and policy filters must be enforced online
  • Conversion labels are delayed and sparse; click labels are faster but noisier proxies
  • Cost matters: the design should avoid requiring GPU inference on every request unless clearly justified

Assume the exchange receives request context (page, device, coarse location, timestamp), limited user history where allowed, campaign metadata, and real-time budget state. Focus on the ML system design rather than auction theory details, but explain how predicted CTR/CVR/value estimates interact with final bid selection.