Data Scientist Machine Learning Interview Questions
Practice 434 real Machine Learning interview questions for Data Scientist roles. From companies including Meta, Amazon, Google, Capital One, TikTok.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Which clustering algorithm would you use and why
Question You need to cluster users for a social product (e.g. Meta) to discover meaningful groups such as communities, interest groups, or usage segme...
Build Classifier: Evaluate with AUROC for Imbalanced Data
Detecting Dead Links: Build and Evaluate a Classifier You have a dataset of 1,000 URLs labeled as good, meaning alive, or bad, meaning dead. The class...
Build Model to Predict Customer Contract Renewal
Build a Model to Predict Customer Contract Renewal You are designing a model to predict whether an enterprise customer will renew a Google Meet contra...
How to Analyze and Model Behavioral Data Effectively?
Analyze and Model Behavioral Data Effectively You receive a raw event-level behavioral dataset for a product funnel. The interviewer asks you to clean...
Predict Stock Prices from Google Search Data
You are given access to historical Google search data — relative search volume over time for arbitrary query terms — along with standard historical ma...
Design an ad recommendation ranking approach
This question evaluates competency in machine-learning driven ad ranking and recommendation systems, including objective formulation, modeling strateg...
Evaluate New Model's Performance Against Existing System
Evaluate New Model's Performance Against Existing System Scenario You are evaluating a new machine-learning model that detects harmful content on a la...
Design Real-Time Fraud Detection with XGBoost Model
Design Real-Time Fraud Detection with XGBoost Model Real-Time Fraud Detection with XGBoost (Subscription Payments) Scenario You need to build and oper...
Evaluate K-Fold Cross-Validation for Model Selection
Evaluate K-Fold Cross-Validation for Model Selection Model Selection and Validation for a New Feature Launch You are selecting and validating predicti...
Explain decision trees and tree ensembles
Prompt 1. Explain how a decision tree works for classification or regression. 2. How does the tree choose a split (objective functions for classificat...
Explain deployment, retrieval, and regularization
You are interviewing for a machine-learning role at a large-scale short-video platform. Answer the following conceptual questions. 1. Under tight GPU ...
Compute and plot a precision–recall curve
Precision–Recall (PR) curve coding / evaluation You are given a binary classifier’s outputs on a dataset: - y_true: array of true labels in \(\{0,1\}\...
Choose threshold under asymmetric costs
You own a credit-card fraud classifier deployed as a probability scorer. Choose an operating threshold under asymmetric costs and justify it quantitat...
Handle missing data and outliers robustly
Customer Churn Modeling: Preprocessing, Missingness, Outliers, and Evaluation Context You are building a binary churn model for a consumer subscriptio...
Design city home-price prediction system
End-to-End System Design: Predict Residential Property Sale Prices Context You are tasked with building a production-grade machine learning system to ...
Choose regularization norms and model formulations
Regularization and model choice. 1) For linear and logistic regression, write the objective functions with L0, L1, L2, and L-infinity penalties in bot...
Minimize max L1 radius with k centers in 1D
You are given an array A of n integers (values may be negative and may repeat) and an integer k (1 ≤ k ≤ n). Place k cluster centers anywhere on the r...
Design a hashtag recommender for News Feed
Design: Hashtag Recommendations in the News Feed Context You are adding hashtag recommendations alongside posts in a large social app’s News Feed. The...
Build a robust ML pipeline
You inherit an ML pipeline that predicts next-7-day churn for users, but data quality is inconsistent and feature drift is suspected. A) Propose an en...
Build and validate a binary classifier
ML Pipeline with Grouped CV, Imbalance Handling, Calibration, and Thresholding Context: You have a labeled dataset where the target is is_active_30d (...