Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design ML Data Pipeline

Hard
HardSystem DesignFeature StoreFeature DriftModel ServingAsked 2 times

Problem

Product Context

ShopNow is a large e-commerce marketplace that uses machine learning to rank products on search and recommendation surfaces. You need to design the end-to-end data pipeline that powers training and serving for these models, from raw events to online predictions.

Scale

SignalValue
DAU45M
Peak QPS (ranking requests)180K
Active product catalog120M SKUs
New/updated products per day8M
User events per day9B impressions/clicks/cart/purchase events
End-to-end serving latency budget (p99)150ms

Deliverables

  1. Define the data sources, schemas, and storage layers needed for both offline training and online inference.
  2. Design the full pipeline from event ingestion and feature computation to model training, validation, deployment, and feedback logging.
  3. Propose a serving architecture that supports multi-stage inference (candidate retrieval, ranking, optional re-ranking) under the latency budget.
  4. Explain how you would prevent training-serving skew, handle feature drift, and keep feature freshness within SLA.
  5. Define offline and online evaluation, monitoring, rollback, and backfill strategies.
  6. Identify major failure modes in the pipeline and how you would detect and mitigate them.

Constraints

  • User behavioral features must be available online within 2 minutes of an event.
  • Product metadata updates can arrive out of order from multiple seller systems.
  • Privacy policy requires deletion of user-level data within 30 days of a deletion request.
  • The system must continue serving degraded but safe recommendations if the online feature store or model service is partially unavailable.
  • Infra cost matters: GPU usage is allowed for training, but online ranking should primarily run on CPU unless clearly justified.
Practicing as: Engineering Manager interview at Anthropic

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

Take this as a live interview session →

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
Anthropic Engineering Manager Interview QuestionsAimpoint Digital Engineering Manager Interview QuestionsTop 50 Feature Drift Interview QuestionsAimpoint Digital Interview QuestionsAnthropic Interview Questions
Next questions
Stress-Test a Training PipelineHardBoston Consulting GroupDesign Recommendations Without Clean PipelinesHardAttentiveDesign HA for ML RecommendationsHard