PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/TikTok

Design Real-Time Credit Card Fraud Detection System

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in designing real-time credit-card fraud detection systems, testing skills in machine learning model selection (supervised and unsupervised), feature engineering for online and offline contexts, handling delayed labels and class imbalance, and architecting low-latency production pipelines with retraining and monitoring. Commonly asked in the Machine Learning domain, it probes both conceptual understanding of trade-offs (asymmetric business costs, explainability, drift detection) and practical application-level architectural and operational skills for deploying, A/B testing, and maintaining low-latency fraud-detection models in production.

  • hard
  • TikTok
  • Machine Learning
  • Data Scientist

Design Real-Time Credit Card Fraud Detection System

Company: TikTok

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Onsite

##### Scenario An online payments company needs to build a system that detects fraudulent credit-card transactions in real time. ##### Question Design a credit-card fraud-detection strategy. Describe data sources, feature engineering, model choices, real-time architecture, retraining cadence, and how you would monitor model drift. ##### Hints Think supervised vs unsupervised methods, latency constraints, feedback loops, threshold tuning.

Quick Answer: This question evaluates a candidate's competency in designing real-time credit-card fraud detection systems, testing skills in machine learning model selection (supervised and unsupervised), feature engineering for online and offline contexts, handling delayed labels and class imbalance, and architecting low-latency production pipelines with retraining and monitoring. Commonly asked in the Machine Learning domain, it probes both conceptual understanding of trade-offs (asymmetric business costs, explainability, drift detection) and practical application-level architectural and operational skills for deploying, A/B testing, and maintaining low-latency fraud-detection models in production.

Related Interview Questions

  • Design multimodal deployment under compute limits - TikTok (easy)
  • Explain overfitting, dropout, normalization, RL post-training - TikTok (medium)
  • Write self-attention and cross-entropy pseudocode - TikTok (medium)
  • Explain FlashAttention, KV cache, and RoPE - TikTok (medium)
  • Answer ML fundamentals and diagnostics questions - TikTok (hard)
TikTok logo
TikTok
Jul 12, 2025, 6:59 PM
Data Scientist
Onsite
Machine Learning
18
0

Real-Time Credit-Card Fraud Detection System Design

Scenario

You are designing a real-time fraud detection system for an online payments platform that processes high-volume credit-card transactions. The system must flag or block suspicious transactions with strict latency constraints while maintaining high approval rates for legitimate users.

Task

Design a credit-card fraud-detection strategy. Specifically describe:

  1. Data sources and labeling strategy (including delayed feedback like chargebacks)
  2. Feature engineering for real-time and offline contexts
  3. Model choices (supervised vs. unsupervised; ensemble strategy)
  4. Real-time architecture and latency budget
  5. Retraining cadence and feedback loops
  6. Monitoring for model and data drift, and threshold tuning

Assume business costs for false declines and fraud losses are asymmetric, labels can be delayed (e.g., chargebacks in 30–90 days), and the system must support A/B testing and human review.

Hints

  • Consider supervised and unsupervised methods, latency constraints, feedback loops, and threshold tuning.
  • Address cold-start, class imbalance, explainability, and fail-safe mechanisms.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More TikTok•More Data Scientist•TikTok Data Scientist•TikTok Machine Learning•Data Scientist 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.