Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Real-Time Fraudulent Click Filtering

Hard
System DesignML RankingFeature StoreModel ServingAsked 3 times

Problem

Product Context

AdStream is a large ad network serving sponsored search and display ads across publisher apps and websites. You need to design an ML system that detects and filters fraudulent ad clicks in real time before they are billed to advertisers or used for downstream optimization.

Scale

SignalValue
DAU120M users
Peak ad impression QPS900K
Peak click-event QPS85K
Advertisers1.8M active
Publishers220K active
Devices / browsers seen per day300M+
End-to-end decision latency budget50ms p99
Historical labeled events~30B clicks over 180 days

Task

  1. Clarify the product goal and define what counts as fraudulent vs suspicious vs unknown traffic.
  2. Design the end-to-end architecture for real-time scoring, filtering, and post-hoc investigation.
  3. Propose a multi-stage decision system (fast rules / retrieval / ranking / re-review) and justify model choices at each stage.
  4. Explain the data pipeline, labels, feature store design, and how you avoid training-serving skew.
  5. Define offline and online evaluation, including delayed labels, false-positive cost, and advertiser trust guardrails.
  6. Identify major failure modes, monitoring, and rollback strategies.

Constraints

  • Fraud labels are delayed and noisy: chargebacks, manual reviews, and advertiser complaints may arrive days later.
  • False positives are expensive because blocking legitimate clicks hurts publisher revenue and advertiser delivery.
  • Some features must be computed in streaming fashion (IP velocity, device fingerprint frequency, publisher-level anomaly rates).
  • The system must support regional compliance requirements; raw IPs and user identifiers may have retention limits.
  • Cost matters: the highest-volume path should run primarily on CPU, with minimal per-event state lookups.
  • The platform must continue serving ads even if the ML scorer is degraded; define safe fallbacks.
Practicing as: Engineering Manager interview at Snap

Hi, I'll play your Snap interviewer for the Engineering Manager role. Candidates describe these interviews as mixed and moderately difficult, so expect me to be professional and fair. Take your time with the question above and answer like we're in the room.

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
Criteo Research Scientist Interview QuestionsSnap Engineering Manager Interview QuestionsBranch Data Scientist Interview QuestionsSnap Interview QuestionsBranch Interview Questions
Next questions
Integral Ad ScienceReal-Time Ad Fraud Detection SystemHardDesign Sharded Ad Click PredictorHardMetaReal-Time Ad Impression TrackingHard