PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Shopify

Build a fraud detection model

Last updated: Apr 19, 2026

Quick Overview

This question evaluates competency in designing end-to-end fraud detection machine learning systems, including defining prediction targets and labels, feature engineering, model family selection, handling severe class imbalance and label delay, evaluation metrics, thresholding for action, and post-deployment monitoring.

  • medium
  • Shopify
  • Machine Learning
  • Machine Learning Engineer

Build a fraud detection model

Company: Shopify

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

Design a machine learning approach for detecting fraudulent transactions or user actions. Discuss: - How to define the prediction target and labels - What features you would build - Which model families you would consider - How to handle severe class imbalance and label delay - What offline and online evaluation metrics you would use - How to choose thresholds for actioning decisions - How to monitor the model after deployment Assume the business cares about both loss prevention and minimizing false positives that hurt legitimate users.

Quick Answer: This question evaluates competency in designing end-to-end fraud detection machine learning systems, including defining prediction targets and labels, feature engineering, model family selection, handling severe class imbalance and label delay, evaluation metrics, thresholding for action, and post-deployment monitoring.

Related Interview Questions

  • Model Product Ranking - Shopify (medium)
  • Build model to predict package delivery time - Shopify (medium)
Shopify logo
Shopify
Mar 1, 2026, 12:00 AM
Machine Learning Engineer
Technical Screen
Machine Learning
11
0
Loading...

Design a machine learning approach for detecting fraudulent transactions or user actions.

Discuss:

  • How to define the prediction target and labels
  • What features you would build
  • Which model families you would consider
  • How to handle severe class imbalance and label delay
  • What offline and online evaluation metrics you would use
  • How to choose thresholds for actioning decisions
  • How to monitor the model after deployment

Assume the business cares about both loss prevention and minimizing false positives that hurt legitimate users.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Shopify•More Machine Learning Engineer•Shopify Machine Learning Engineer•Shopify Machine Learning•Machine Learning Engineer Machine Learning
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.