ML System Design Interviews: Production ML, Fraud Detection, Features, A/B Testing & MLOps

Episode 5 61 min

Valerii Babushkin Senior Director of Data

Episode 5 · ML System Design Interviews: Production ML, Fraud Detection, Features, A/B Testing & MLOps

61 min

What we talked about

Valerii Babushkin is head of data science at Blockchain.com, a cryptocurrency company. His earlier roles include user data privacy work at WhatsApp, VP of machine learning at Alibaba Russia and senior director of data science at X5 Retail Group. He is also a Kaggle Competitions Grandmaster. Alexey invites him to explain what machine learning system design interviews test, and how they differ from software system design.

Valerii separates the two. Software system design covers databases, throughput, caching and sharding. The machine learning version asks how to build a model for a case, such as fraud detection. He walks through that case. A fraud score should be a calibrated probability, so a proper scoring loss such as log loss fits, and a linear model can be retrained online as fraud patterns change. Class imbalance makes precision a poor metric, so he keeps recall and specificity and uses an A/B test for online performance. He advises candidates to state assumptions aloud and ask the interviewer to confirm them.

Alexey describes his own tech lead interview, where he spent most of his time on metrics and heuristics and too little on machine learning. He failed that round and wonders how long to spend on heuristics. Valerii says interviewers are subjective and that candidates should sketch a baseline, check which part to focus on and iterate. In applied work, he says, depth matters less than being able to justify the model, the loss and the metrics. He prepared little himself, and cites a checklist used at Facebook and the book Machine Learning Design Patterns.

Valerii stresses that a goal must come first, and that clicks or time on platform are proxies that can mislead. An ads system trained on clicks invites clickbait, and a metric that becomes the goal soon stops being a good metric, so retention and churn need watching too. Real systems also need monitoring for feature distribution shift, label imbalance and fallback plans. He estimates that algorithms make up one to five percent of a machine learning system, and that features and labels matter most.

For a new graduate, Valerii expects no system design round, but coding and behavioral rounds. He says LeetCode practice can train pattern matching without building real coding skill. Alexey asks how to validate models in production, and Valerii answers that A/B tests are best, with human labels only when the output needs them. He says a candidate who covers these steps will be ahead of most others.

Chapters

  1. 1:51 Valerii Background: Career Snapshot and Kaggle Achievements 2 min
  2. 3:21 Blockchain.com Role: Scope, Responsibilities, and Data Ownership 2 min
  3. 5:46 Transition to Meta: User Privacy Work and Large-Scale ML Experience 2 min
  4. 7:31 Hiring Experience: Conducting High-Volume Interviews and Team Leadership 2 min
  5. 9:12 Candidate Targeting: Who Faces ML System Design Interviews 2 min
  6. 11:23 Interview Structure: 45-Minute Narrative and Evaluation Goals 3 min
  7. 13:58 Fraud Detection Case Study: Probabilities, Loss Functions, and Real-Time Needs 3 min
  8. 16:43 Labeling, Class Imbalance, and Feature Engineering Tradeoffs 4 min
  9. 20:33 Interview Tactics: Stating Assumptions and Getting Alignment 2 min
  10. 22:05 Example: Points-of-Interest System vs Personalized Recommender 2 min
  11. 24:28 End-to-End ML Pipeline: Metrics, Baselines, and A/B Testing 5 min
  12. 29:09 Securing the Interview: Iterative Baselines and Signposting Depth 3 min
  13. 31:58 Appropriate Depth: Practical ML Decisions vs Research-Level Detail 2 min
  14. 33:31 Preparation Strategies: Mock Interviews, Resources, and Experience 4 min
  15. 37:59 Industry Checklist: Core ML Project Review Items and Patterns 2 min
  16. 40:11 Defining Goals and Proxy Metrics: Business Alignment and Long-Term Health 4 min
  17. 44:11 Features, Labels, Model Selection, and Validation Workflow 2 min
  18. 46:02 Production Robustness: Monitoring, Distribution Shift, and Fallbacks 2 min
  19. 47:52 System Components: Why Features Matter More Than Model Architecture 3 min
  20. 50:57 Engineering Integration: Serving Models, Embeddings, and MLOps Roles 1 min
  21. 52:25 When to Avoid ML and Useful Design Pattern References 2 min
  22. 54:07 New Grad Expectations: Coding Focus and Limited System Design 3 min
  23. 57:23 Validating in Production: A/B Tests, Causality, and Human Labels 2 min
  24. 59:01 Career Path: Moving from Data Science Practice to System Design 1 min
  25. 1:00:03 Closing Remarks and Contact Information 1 min

Valerii Babushkin Senior Director of Data

Valerii Babushkin is a Senior Director of Data, Analytics, and AI at BP, Kaggle Competitions Grandmaster, and author of Machine Learning System Design. With over a decade of experience leading large-scale AI, machine learning, and data teams at Meta, Alibaba, Blockchain.com, and Yandex, Valerii is recognized for building data-driven cultures and advancing practical ML applications in global enterprises.

Topics in this episode

The wiki pages this conversation is filed under, the strongest first.

Machine Learning

Machine learning as applied modeling, evaluation, production design, monitoring, roles, and business tradeoffs.

Career Growth

Growth after entering data and AI roles through depth, breadth, visibility, communication, leadership, and senior impact.

A/B Testing

A/B testing as randomized product evaluation, with assignment, metrics, noise, power, and rollout decisions.

Causal Inference

Causal inference as reasoning about interventions, counterfactuals, and treatment effects.

Data Science Project Guide

How data science project management frames, scopes, measures, ships, and hands off analytics and ML work with stakeholders and adoption owners.

Data Scientist Interview Plan

Prepare for data scientist interviews by targeting the right role, proving CV and project impact, and practicing screens, cases, stories, and offers.

LLM System Design Interview

Prepare for LLM system design interviews with production patterns for RAG, agents, evaluation, safety, latency, cost, and operations.

Leadership

Data and AI leadership across management, senior IC work, decision rights, accountability, platforms, and strategy.

ML Engineer Roadmap

Build an ML engineer path through baselines, Python and SQL, production projects, system design, MLOps, monitoring, and incident habits.

ML Portfolio Projects

Choose ML portfolio projects that show framing, baselines, data work, evaluation, production thinking, and maintainable code.

ML System Design Interview

Prepare for ML system design interviews with timed answer plans, prompt practice, tradeoffs, portfolio walkthroughs, and production examples.

ML for Software Engineers

A roadmap for software engineers moving into ML: transferable skills, missing data habits, project sequence, production awareness, and interviews.

MLOps Roadmap

MLOps learning and rollout order from reproducible experiments to deployment, monitoring, retraining decisions, and shared platform adoption.

Machine Learning System Design

ML system design as a production reference for requirements, labels, feature paths, evaluation, serving, monitoring, fallbacks, and ownership.

Machine Learning for Business

How businesses choose ML use cases, compare baselines, test small-budget options, define business models, and plan adoption and ownership.

Portfolio Projects

Guidance for choosing data, analytics, ML, AI, and open-source portfolio projects with reviewable evidence and role fit.

Related books

Advanced Algorithms and Data Structures

29 questions answered

As a software engineer, you’ll encounter countless programming challenges that initially seem confusing, difficult, or even impossible. Don’t despair! Many of these “new” problems already have well-established solutions. Advanced Algorithms and Data Structures teaches you powerful approaches to a wide range of tricky coding challenges that you can adapt and apply to your own applications. Providing a balanced blend of classic, advanced, and new algorithms, this practical guide upgrades your programming toolbox with new perspectives and hands-on techniques.

Marcello La Rocca

Machine Learning Design Patterns

14 questions answered

The design patterns in this book capture best practices and solutions to recurring problems in machine learning. The authors, three Google engineers, catalog proven methods to help data scientists tackle common problems throughout the ML process. These design patterns codify the experience of hundreds of experts into straightforward, approachable advice.

Valliappa Lakshmanan Sara Robinson Michael Munn

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club