Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Real-Time Ad Impression Tracking

Hard
System DesignML RankingFeature StoreModel ServingRecommendation SystemsAsked 1 times

Problem

Product Context

Design the ML-backed impression tracking and validation system for Meta ads shown across Facebook Feed, Instagram, Reels, and Audience Network. The system is used by ad delivery, billing, measurement, and integrity teams to decide whether an ad impression should be counted in real time, with low latency and clear handling of duplicates, delayed events, and partial outages.

Scale

SignalValue
DAU across surfaces2.8B
Peak ad render events18M QPS
Peak billable impression decisions9M QPS
Ad creatives / active campaigns150M creatives / 25M active campaigns
Event retention90 days hot, 1 year cold
End-to-end p99 decision latency50ms
Availability target99.99%

The system must support real-time counting for pacing and reporting, while also producing high-quality labels for downstream ML models that detect invalid traffic, duplicate impressions, and instrumentation bugs. Assume some feedback signals are delayed by minutes to hours, and some surfaces may emit incomplete client logs.

Deliverables

  1. Define the functional and non-functional requirements, including what qualifies as a valid impression versus a dropped, duplicate, or uncertain event.
  2. Estimate system scale, storage, and online serving capacity for peak traffic, feature lookups, and model inference.
  3. Propose an end-to-end architecture covering event ingestion, candidate validation, ML scoring, deduplication, aggregation, and downstream reporting.
  4. Choose models for each stage (fast filtering, risk scoring, optional re-evaluation) and explain online vs. batch decisions.
  5. Describe the training data pipeline, label construction, offline/online evaluation, and experimentation strategy.
  6. Identify major failure modes, especially feature drift, training-serving skew, logging loss, and regional outages, with detection and mitigation plans.

Constraints

  • Real-time decisioning must not materially slow ad delivery; p99 budget is 50ms including network overhead.
  • Billing and advertiser reporting require auditable event lineage and idempotent processing.
  • Some features are only available asynchronously; the online model must degrade gracefully.
  • Privacy and compliance constraints limit raw user-level retention and require regional data handling.
  • The system should prefer availability over perfect precision during transient failures, but must clearly mark uncertain impressions for later reconciliation.

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Meta Solutions Architect Interview Questions
Next questions
MetaDesign Meta Ads Insights RankerHardMetaDesign Facebook Ads CTR PredictorHardSnapReal-Time Fraudulent Click FilteringHard
0 / ~200 words