What should you focus on for a Data Scientist interview?
Which topics make this role different?
Machine learning fundamentals and model evaluation appeared more often here than across all roles. The same was true of statistics, data quality, feature engineering, and model deployment. Start by checking whether you can explain model choices and how you would test them.
The questions cover junior, mid-level, and senior knowledge, with mid-level questions making up the largest share. Use the checks below to test both your understanding of terms and your ability to make decisions about data and models.
Can you explain model choices and test them fairly?
The most asked question was about overfitting and underfitting, appearing in 6 of 138 interviews. Other repeated questions covered bagging, boosting, cross-validation, validation splits, and imbalanced classifiers.
Can you answer these without stopping at a definition?
- What are overfitting and underfitting? How would you detect and prevent overfitting?
- How do bagging and boosting differ?
- Can you describe what cross-validation is?
- How would you split your data to prevent leakage or look ahead bias?
- How would you evaluate a severely imbalanced classifier without being misled by accuracy?
- How would you decide whether a model is good enough to use?
Can you connect a model to a business problem?
Business cases and behavioral questions appeared in 59 of 138 interviews. A repeated question asked how you would choose a prediction target and data granularity. Can you say what your model should predict and what each row of data should represent?
Check the wider decisions too:
- Which product metrics would you choose for the business problem?
- How would you explain your modeling decisions to stakeholders and document them?
- Once a model is deployed, how would you monitor it, detect drift, and decide when to retrain it?
Can you write code and work with data?
Coding tasks appeared in 20 of 138 interviews. They included algorithms and file processing. Can you complete these tasks and explain your steps?
- Read a CSV with pandas, keep rows where the country is US, and save the result.
- Load a log file, parse timestamps, and count actions per user per day.
- Solve Two Sum and explain your solution's time complexity.
- Write a Python function to find all unique pairs that add up to a target sum, without external libraries and efficiently for large lists.
SQL and data engineering questions also cover queries, indexing, schemas, and ETL pipelines. Can you describe how you would clean incoming data and which data quality checks you would include in a pipeline?
What Data Scientist interviews cover
The 20 most asked Data Scientist questions
Counted by interview, not by mention: a question asked twice in one conversation counts once.
What are overfitting and underfitting, and how do you detect and prevent overfitting?
Asked in 6 of 138 interviews · last asked Nov 9 · Concept · Junior
Show answer
Overfitting means a model learns training details and noise that do not generalize to new data. Underfitting means it misses important patterns and performs poorly even on training data. I detect overfitting by comparing training performance with validation or cross-validation performance. I reduce it with simpler models, regularization, early stopping, or more representative training data.
- Strong training results but much worse validation results suggest overfitting.
- Poor training and validation results suggest underfitting.
- Keep validation data separate from training, including when fitting preprocessing steps.
- Use validation data to choose settings; reserve test data for the final evaluation.
What the interviewer checks: The interviewer checks whether you can recognize poor generalization and use sound validation to improve it.
Other ways it was asked
- “What is overfitting in machine learning?”
- “What is overfitting?”
- “How do you detect and prevent overfitting?”
If you had a two-month internship at a bank and could design a data or software project, what would you build, how would it help the bank, and how would you complete it on time?
Asked in 5 of 138 interviews · last asked Nov 10 · Scenario
Show answer
I would build a data-quality report for one bank dataset, flagging missing values and duplicate records. It would help analysts catch errors before reporting. I would spend two weeks defining checks and securing access, four weeks building, and two weeks testing and documenting. My goal would be a tested prototype, not a production system.
- Agree on useful checks with an analyst and keep the scope to one dataset.
- Use approved, masked data; prepare synthetic data if access is delayed.
- Measure errors caught, false alarms, and time saved against the current process.
- Show progress weekly and hand over code, tests, and clear instructions.
What the interviewer checks: The interviewer is checking whether you can connect a practical project to business value and deliver it safely on time.
Other ways it was asked
- “If you joined a bank for a two-month internship and could design your own data or software project, what project would you choose, why would it be useful to the bank, and how would you complete it within two months?”
- “If you could design a banking project for a two-month internship, what would you work on?”
- “If you had two months to design a data or software project for a bank, what would you choose, how would it benefit the bank, and how would you deliver it within that timeframe?”
What is the difference between bagging and boosting?
Asked in 4 of 138 interviews · last asked Sep 29 · Concept · Junior
Show answer
Bagging trains models independently on different samples drawn with replacement, then combines their predictions. It mainly reduces variance and helps prevent overfitting. Boosting builds models in sequence, with each new model trying to correct earlier errors; it often reduces bias but needs careful tuning to avoid overfitting.
- Bagging combines predictions by averaging or voting; its models can train in parallel.
- Boosting usually trains sequentially and can be sensitive to noise.
- Random forests use bagging plus random feature selection; gradient boosting is a boosting method.
What the interviewer checks: The interviewer is checking whether you understand how these methods combine models and affect bias, variance, and overfitting.
Other ways it was asked
- “What is the basic difference between bagging and boosting?”
How would you structure your validation splits to prevent data leakage or look ahead bias?
Asked in 4 of 138 interviews · last asked Sep 11 · Scenario · Senior
Show answer
I would make validation match how the model will be used. For future predictions, I would train on earlier data and validate on later data, using only information available at prediction time. When testing performance on new users, I would keep each user's records in one split. I would fit preprocessing only on each training split.
- Use rolling time splits to test performance across several future periods.
- Add a time gap when training labels would not be available before validation starts.
- Fit imputation, scaling, and feature selection on training data only.
- Keep a final test set untouched during model selection and tuning.
What the interviewer checks: The interviewer checks whether your validation reflects real use without letting unavailable information influence training or evaluation.
Other ways it was asked
- “How would you structure your validation splits to prevent data leakage or look-ahead bias?”
How would you evaluate a severely imbalanced binary classifier without being misled by accuracy?
Asked in 4 of 138 interviews · last asked Oct 22 · Concept · Mid-level
Show answer
I would prioritize precision, recall, and the precision-recall curve over accuracy. Precision measures how many positive predictions are correct; recall measures how many actual positives we find. I would choose a threshold on validation data based on the costs of missed positives and false alarms. Then I would evaluate once on untouched test data with realistic class proportions.
- Treat the rare class as positive, and report confusion matrix counts at the chosen threshold.
- Precision-recall AUC summarizes performance across thresholds, but depends on class prevalence.
- ROC-AUC can look strong while precision is poor under severe imbalance.
- Keep resampling within training data, and prevent leakage between training, validation, and test sets.
What the interviewer checks: The interviewer is checking whether you connect minority-class performance, error costs, and a trustworthy evaluation setup.
Other ways it was asked
- “When evaluating a binary classifier on imbalanced data, what metrics do you prioritize, and why?”
- “When evaluating a binary classifier with strong class imbalance, which metrics would you rely on most and why?”
- “What evaluation setup and metrics do you use to avoid being misled by accuracy on a severely imbalanced dataset?”
How would you evaluate a machine learning model and decide whether it is good enough to use?
Asked in 4 of 138 interviews · last asked Oct 12 · Concept · Mid-level
Show answer
I would evaluate the model on unseen data using metrics tied to the task and the cost of errors. I would compare it with a simple baseline and check important user groups. I would use it only if it meets agreed quality, speed, and safety requirements, with a plan to monitor performance after launch.
- Use validation data or cross-validation for tuning, then evaluate once on an untouched test set.
- Prevent data leakage; split by time or group when random splits would give misleading results.
- For classification, choose precision, recall, F1, or other metrics based on error costs; accuracy can hide minority-class failures.
- Check uncertainty, performance across groups, and practical limits before deciding the model is good enough.
What the interviewer checks: The interviewer is checking whether you can test a model fairly and connect its results to real use.
Other ways it was asked
- “Which validation techniques can you use to evaluate a machine-learning model?”
- “What coding techniques or other methods would you use to validate a machine-learning model?”
- “What criteria or metrics do you use to validate a machine-learning model?”
If a fraud detection tool is missing transactions that later prove fraudulent, how would you investigate the cause and improve detection without generating too many false alerts?
Asked in 4 of 138 interviews · last asked Nov 10 · Scenario · Mid-level
Show answer
I would review missed fraud and false alerts, checking data quality, delayed fraud labels, and patterns by transaction type. I would test better features, rules, or model updates on later data with reliable fraud labels. I would choose thresholds that catch more fraud while keeping false alerts within the team's review capacity, then monitor both.
- Check for broken data feeds, missing features, and changes in fraud patterns.
- Measure precision and recall, not just accuracy; fraud is often rare.
- Test on later transactions, allowing enough time for fraud labels to arrive.
- Compare thresholds using missed fraud costs, false alerts, and review capacity.
What the interviewer checks: The interviewer is checking whether you can find causes of errors and balance fraud detection against unnecessary alerts.
Other ways it was asked
- “A fraud detection tool has been running for several weeks, and some transactions it marked as normal later prove fraudulent. How would you investigate the missed cases and improve detection without generating too many false alerts?”
- “If your dashboard flagged many suspicious transactions but the fraud team said many were legitimate, how would you investigate the false alerts and improve the tool without missing real fraud?”
- “If your changes reduced false alerts by 30%, but the fraud team later found that the tool had missed several fraudulent transactions, how would you investigate why they were missed and improve detection without bringing back too many false alerts?”
Can you describe what cross-validation is?
Asked in 4 of 138 interviews · last asked Nov 18 · Concept · Junior
Show answer
Cross-validation estimates how well a model will perform on new data by testing it across several training and validation splits. In k-fold cross-validation, each fold is used once for validation while the remaining folds train the model. We compare the scores to choose models or settings without relying on one split.
- The average score estimates performance; variation across folds shows sensitivity to the split.
- Fit preprocessing only on each training fold to avoid data leakage.
- Use splits that respect time order or groups when observations are related.
- Keep a separate test set for a final check after choosing the model.
What the interviewer checks: The interviewer checks whether you understand how to evaluate models fairly and avoid data leakage.
Other ways it was asked
- “What is cross-validation?”
- “Why do we use cross-validation?”
- “Why is cross-validation used?”
How would you choose a prediction target and the data granularity for a machine learning model?
Asked in 4 of 138 interviews · last asked Sep 15 · Design · Mid-level
Show answer
I would choose a measurable target that supports the business decision, and define exactly what to predict and how far ahead. I would make each row match the unit and time of that decision, such as one customer per week. I would check that labels are reliable and inputs are available when predictions are made.
- Define the outcome, prediction time, and future window clearly.
- Choose the row unit to match the action the prediction supports.
- Use only information available at prediction time to avoid data leakage.
- Balance useful detail against data volume, label quality, and noise.
CodeDecision: Which active customers should receive a retention offer each Monday? Row: One active customer at the start of each Monday. Target: Whether that customer cancels within the next 30 days. Inputs: Only information available before the Monday prediction. Labels: Wait until the full 30-day window has passed.What the interviewer checks: The interviewer is checking whether you can turn a business goal into a clear prediction task without data leakage.
Other ways it was asked
- “How would you define the prediction target and data granularity for a machine learning system?”
- “How would you define the exact prediction target and data granularity for this system?”
- “How would you define the prediction target and data granularity for a predictive system?”
How do you deal with missing data?
Asked in 3 of 138 interviews · last asked Nov 9 · Scenario · Junior
Show answer
I first check missing counts, percentages, and patterns in each column and across groups. I investigate why values are missing before choosing a method. I may drop affected rows, fill values using a suitable method, or use a model that handles missing values. I fit any filling method only on training data and validate its effect.
- Check for hidden missing values, such as empty strings or special codes.
- Dropping rows can lose useful data and introduce bias.
- Choose a filling method based on the column type and why values are missing.
- A missing-value indicator can help when missingness itself carries useful information.
What the interviewer checks: The interviewer checks whether you investigate missing data and handle it without introducing bias or data leakage.
Other ways it was asked
- “How do you handle missing values in a dataset?”
- “How would you check a dataset for missing values?”
What is the difference between L1 and L2 regularization?
Asked in 3 of 138 interviews · last asked Aug 5 · Concept · Junior
Show answer
L1 regularization adds a penalty based on the sum of absolute coefficient values. L2 uses the sum of squared coefficient values. Both help reduce overfitting by discouraging large coefficients. L1 can make coefficients exactly zero, selecting features, while L2 usually shrinks them without making them zero.
- A larger penalty means stronger regularization, which can cause underfitting.
- Scale features before regularization so their units do not distort the penalty.
- L1 may select one of several correlated features; L2 tends to spread weight across them.
What the interviewer checks: The interviewer checks whether you understand how each penalty changes coefficients and helps control overfitting.
Other ways it was asked
- “What is L2 regularization?”
- “What are L1 and L2 regularization?”
How do supervised, unsupervised, self-supervised, and reinforcement learning differ, and when would you use each?
Asked in 3 of 138 interviews · last asked Aug 19 · Concept · Mid-level
Show answer
Supervised learning learns from labeled examples, such as emails marked as spam. Unsupervised learning finds patterns without labels, such as customer groups. Self-supervised learning creates prediction targets from the data itself, often to train language models. Reinforcement learning learns which actions to take through rewards from interaction, such as controlling a robot.
- Use supervised learning when you have labeled data and a clear prediction target.
- Use unsupervised learning to explore structure when target labels are unavailable.
- Self-supervised learning often uses unlabeled data to predict hidden parts, then adapts to tasks with labeled examples.
- Use reinforcement learning for sequential decisions, where actions affect future outcomes and rewards may be delayed.
What the interviewer checks: The interviewer checks whether you understand each method’s learning signal and can match it to a suitable problem.
Other ways it was asked
- “What is the difference between supervised, unsupervised, and reinforcement learning?”
- “In one or two minutes, can you clearly differentiate supervised learning, self-supervised learning, and reinforcement learning, and give a typical use case for each?”
- “Can you distinguish supervised, unsupervised, and self-supervised learning and give one real-world use case for each?”
What is feature engineering?
Asked in 3 of 138 interviews · last asked Nov 9 · Concept · Junior
Show answer
Feature engineering means creating or changing input variables to help a model learn useful patterns. I use knowledge of the problem to handle missing values, encode categories, and create useful features. Feature selection means choosing which features to keep. I compare choices using validation data and avoid information that would not be available when making predictions.
- Use knowledge of the problem to create useful inputs, such as age from a birth date.
- Feature selection removes inputs that add little value or create noise.
- Fit preprocessing steps on training data only to prevent data leakage.
- Choose transformations based on the model and test their effect on validation performance.
What the interviewer checks: The interviewer checks whether you can prepare useful model inputs, distinguish engineering from selection, and avoid data leakage.
Other ways it was asked
- “How would you do feature selection and feature engineering?”
How would you verify that a machine learning model achieved 74% accuracy, and what would that accuracy be based on?
Asked in 3 of 138 interviews · last asked Nov 11 · Scenario · Mid-level
Show answer
I would check the model’s predictions against the true labels on a test set not used for training or tuning. An accuracy of 74% means 74% of those predictions were correct. I would also check for data leakage and whether the test data represents real use. For uneven class sizes, I would check precision and recall too.
- Accuracy is the number of correct predictions divided by the total number of predictions.
- Use a separate, labeled test set that reflects the data the model will face.
- Check test set size and uncertainty; a small test set gives a less reliable estimate.
- Compare with a simple baseline, such as always predicting the most common class.
What the interviewer checks: The interviewer is checking whether you can verify an accuracy claim using fair test data and understand its limits.
Other ways it was asked
- “How do you evaluate a machine-learning model's accuracy?”
- “How can you determine whether a machine-learning model has made a prediction error?”
What is Grid Search?
Asked in 3 of 138 interviews · last asked Nov 17 · Concept · Junior
Show answer
Grid search is a way to tune a model’s hyperparameters. It tries every combination of values in a chosen set, usually scoring each with cross-validation. It picks the combination with the best validation score, but it can be slow when there are many combinations.
- You choose which hyperparameters and values to test.
- It tests every combination in the chosen grid, not every possible value.
- Cross-validation helps compare settings; keep the test set separate for final evaluation.
- More combinations and validation folds mean more model fits.
What the interviewer checks: The interviewer checks whether you understand hyperparameter tuning, validation, and the cost of trying every combination.
Other ways it was asked
- “What does GridSearch do?”
- “What is GridSearch, and what does it do?”
How should a deployed predictive system adapt or gracefully degrade when data patterns or human behaviors shift?
Asked in 3 of 138 interviews · last asked Sep 11 · Scenario · Senior
Show answer
I would monitor data quality, changing input patterns, and prediction performance once outcomes are available. If quality drops, the system should use a tested fallback, such as simple rules or human review. I would retrain on recent, reliable data and test updates before release, with a rollback option.
- Changing inputs are a warning, not proof that predictions are worse.
- Define thresholds for alerts, fallback use, and stopping unsafe predictions.
- Track performance across user groups, including changes caused by the system itself.
- Test new models on recent data and release gradually; avoid unchecked automatic retraining.
What the interviewer checks: The interviewer is checking whether you can detect change, protect users, and update a model safely.
Other ways it was asked
- “If underlying data patterns or human behaviors shift post deployment, how will your system adapt or gracefully degrade?”
- “How would you design a deployed model to adapt or degrade gracefully when data patterns or human behavior shift?”
How would you take a machine learning model from development to production?
Asked in 3 of 138 interviews · last asked Aug 31 · Scenario · Mid-level
Show answer
I would validate the model on realistic held-out data, then package it with the same data preparation used in training. I would choose batch or real-time predictions based on business needs and test the full pipeline. I would release it gradually, monitor prediction quality and system health, and plan for rollback and retraining.
- Check for data leakage and compare against a simple baseline.
- Version the model, code, and dependencies so releases can be reproduced.
- Test input data, prediction speed, and integration before release.
- Monitor data drift and model performance when actual outcomes become available.
What the interviewer checks: The interviewer is checking whether you can turn a trained model into a reliable, maintainable production system.
Other ways it was asked
- “How would you take a machine learning model from development through production deployment?”
- “How would you take a data science model from development to production?”
- “If you develop a machine learning model that predicts customer lifetime value, what steps do you take to deploy it into a production environment?”
What are the biggest operational or mathematical bottlenecks when moving a data science model from research to production, and how would you mitigate them?
Asked in 3 of 138 interviews · last asked Sep 11 · Scenario · Senior
Show answer
The biggest bottlenecks are unreliable data pipelines, changing data, and models that are too slow or costly to run. I use consistent preprocessing, realistic validation, and load tests to catch these problems early. I simplify models when needed, then deploy gradually with monitoring and a rollback plan.
- Use the same feature definitions in training and production to prevent mismatched inputs.
- Validate on realistic data splits, such as future periods, to detect leakage and poor generalization.
- Measure latency, memory, and cost under expected traffic; balance model accuracy against these limits.
- Monitor data quality and model performance; define when to investigate, retrain, or roll back.
What the interviewer checks: The interviewer is checking whether you can connect model limitations to production risks and choose practical fixes.
Other ways it was asked
- “What operational or mathematical bottlenecks can arise when moving a machine learning model from research to production, and how would you mitigate them?”
- “What is the biggest operational or mathematical bottleneck you face, and how do you mitigate it when moving from research to production within your niche?”
How would you distinguish data drift, concept drift, and temporary data issues when production model performance drops?
Asked in 3 of 138 interviews · last asked Aug 19 · Scenario · Senior
Show answer
Data drift means inputs change; concept drift means the relationship between inputs and outcomes changes. I first check data quality, pipeline changes, and label delays, then compare input distributions and performance on reliable labels across time and groups. I fix data issues first; for lasting drift, I test whether retraining or other changes improve performance.
- Monitor feature distributions, missing values, schema changes, and data freshness against a reference period.
- Use reliable labels to track precision, recall, and calibration over time and within groups.
- Input drift alone does not prove concept drift or explain a performance drop.
- Check whether anomalies follow pipeline incidents and disappear after repair; do not retrain on corrupted data.
What the interviewer checks: The interviewer checks whether you investigate the cause with reliable evidence before changing the model.
Other ways it was asked
- “In a production ML system, how would you detect and handle data drift versus concept drift, and what metrics or signals would you monitor for each?”
- “Suppose your ML model's accuracy drops from 91% to 78% in production. How would you determine whether this is data drift, concept drift, or a temporary data issue?”
- “In production, how would you detect and respond to data drift versus concept drift for a deployed classifier?”
A fraud detection tool reports a 40% increase in suspicious transactions over the past week, but the fraud team has not observed an increase in actual fraud. How would you investigate whether this reflects a real risk or a problem with the tool?
Asked in 3 of 138 interviews · last asked Nov 10 · Scenario · Mid-level
Show answer
I would check whether alerts rose because transaction volume increased or more transactions were flagged. Then I would check data quality, rule changes, and which customer groups drove the increase. I would review flagged transactions, since confirmed fraud can take time to appear. I would increase targeted reviews if risk looks real, or fix the tool if checks reveal errors.
- Compare alert rates, not just counts, against normal weekly patterns.
- Check data errors, duplicates, model updates, and threshold changes.
- Review a representative sample of alerts; account for delays and backlogs in fraud confirmation.
- Use confirmed findings to choose targeted reviews or tool fixes; monitor the results.
What the interviewer checks: The interviewer is checking whether you can separate real risk from data or tool problems and choose a proportionate response.
Other ways it was asked
- “If your monitoring dashboard showed a 40% increase in suspicious transactions over the past week, but the fraud team had not noticed an increase in confirmed fraud, how would you determine whether this reflected a real increase in fraud risk or a problem with the monitoring tool, and decide whether the team should take action?”
- “If your dashboard showed a 40% increase in suspicious transactions over the past week, but the fraud team had not noticed an increase in confirmed fraud, how would you determine whether this reflected a real increase in fraud risk or a problem with your monitoring tool, and decide whether the team needed to take action?”
Python coding interview questions for data scientists
Python questions cover fundamentals, pandas, coding tasks, algorithms, concurrency, file processing, and basic Linux commands. 93 questions.
What is the difference between a list and a tuple in Python?
Asked in 2 of 138 interviews · last asked Aug 1 · Concept · Junior
Show answer
A list can be changed after creation, but a tuple cannot. Both are ordered sequences that allow duplicate values. I use lists for collections I need to update and tuples for groups of values that should stay fixed.
- Lists use square brackets; tuples are defined by commas, usually inside parentheses.
- Tuples can hold mutable objects, such as lists, whose contents can still change.
- A tuple can be a dictionary key only if all its elements are hashable; lists cannot.
What the interviewer checks: The interviewer checks whether you understand mutability and can choose the right sequence type.
Other ways it was asked
- “Explain the difference between list and tuple.”
- “Explain the difference between a list and a tuple in Python.”
Write a function that solves the Two Sum problem. What is the time complexity of your solution?
Asked once · last asked Oct 12 · Write code · Junior
Other ways it was asked
- “Write a function that solves the Two Sum problem.”
- “What is the time complexity of a solution to the Two Sum problem?”
When would you choose multiple processes instead of multiple threads?
Asked once · last asked Oct 12 · Scenario · Mid-level
What is a lambda function in Python, and how do you use it?
Asked once · last asked Jul 16 · Concept · Junior
Other ways it was asked
- “What are lambda functions in Python?”
- “What are the benefits of using a lambda in Python compared to a standard function?”
How would you find the maximum element in an array?
Asked once · last asked Aug 27 · Write code · Junior
Other ways it was asked
- “How would you find the maximum element in an array and count how many times it appears?”
How do you identify a feature's data type in pandas?
Asked once · last asked Sep 20 · Tooling · Junior
Other ways it was asked
- “How do you convert a feature's data type in pandas?”
How would you add file-upload functionality to a Streamlit app so users can upload an Excel file?
Asked once · last asked Oct 12 · Tooling · Junior
Other ways it was asked
- “What Streamlit syntax would you use to let users upload an Excel file?”
How would you write a Python script using pandas to read a CSV file of user data, filter rows where country is US, and write the filtered data to a new CSV file, explaining the main steps and functions?
Asked once · last asked May 18 · Write code · Junior
Other ways it was asked
- “In Python, how would you write a simple script using pandas to read a CSV file of user data, filter rows where the country is US, and write the filtered data to a new CSV file? Could you walk me through the main steps and functions you would use?”
Could you explain the difference between a Python list and a pandas Series or DataFrame? In a data engineering context, when would you prefer pandas over basic Python data structures?
Asked once · last asked May 18 · Concept · Junior
You receive a log file where each line has a user ID, timestamp, and action. How would you write a Python script using pandas to load the file, parse the timestamp into a datetime type, and compute the number of actions per user per day?
Asked once · last asked May 18 · Write code · Junior
You receive event data in JSON format, with each record containing a user ID, event type, and metadata such as page and device. How would you parse the JSON structure to extract the user ID, event type, and page for further processing?
Asked once · last asked May 18 · Scenario · Junior
How would you use Python to parse system log lines, extract timestamps, log levels, and messages, and store the results in a structured format?
Asked once · last asked May 18 · Scenario · Junior
Show 8 more
How do you avoid a SettingWithCopy warning in real analysis code?
Asked once · last asked Jun 3 · Tooling · Junior
In your own words, what is the difference between a pandas view and a copy, and how do you typically prevent a SettingWithCopy warning?
Asked once · last asked Jun 3 · Concept · Junior
How would you read a large CSV with pandas while minimizing memory usage and validating column types during loading?
Asked once · last asked Jun 3 · Tooling · Mid-level
When you filter rows and then need to update a column, what exact pandas pattern would you use to make the assignment safely?
Asked once · last asked Jun 3 · Tooling · Junior
How would you safely update a pandas column for filtered rows using .loc?
Asked once · last asked Jun 3 · Tooling · Junior
Write a Python function that takes a list of integers and a target sum, and returns all unique pairs that add up to the target without using external libraries, efficiently for large lists.
Asked once · last asked Jul 16 · Write code · Mid-level
What steps does Python take to execute a .py file?
Asked once · last asked Jul 16 · Concept · Mid-level
What are the benefits of Python compared with languages such as C++, Java, and Go?
Asked once · last asked Jul 16 · Concept · Junior
SQL and data engineering interview questions
Work through SQL queries, indexing, database schemas, ETL pipelines, storage choices, data cleaning, and data quality checks. 73 questions.
How would you optimize a slow SQL query on a large table?
Asked in 2 of 138 interviews · last asked Oct 15 · Scenario · Mid-level
Show answer
I would check the execution plan to find expensive scans, joins, or sorts. Then I would reduce unnecessary rows and columns, check indexes on filter and join columns, and make sure table statistics are current. I would compare runtime and results before and after each change.
- Use the database’s plan tools; options that measure actual execution may run the query.
- Avoid unnecessary columns and functions on indexed filter columns that can prevent index use.
- Indexes can speed up reads but add storage and slow writes; full scans can sometimes be faster.
- Check join conditions and row estimates; outdated statistics can lead to poor plans.
What the interviewer checks: The interviewer wants to see a measured approach that finds the bottleneck and improves speed without changing results.
Other ways it was asked
- “How would you troubleshoot and optimize a slow-running SQL query?”
- “Your SQL query is taking too long on a large transaction table. How would you optimize it?”
What's the difference between WHERE and HAVING?
Asked once · last asked Oct 15 · Concept · Junior
Other ways it was asked
- “What is the difference between the WHERE clause and the HAVING clause?”
Write an SQL query to find the highest-paid employee in each department.
Asked once · last asked Aug 22 · Write code · Junior
Other ways it was asked
- “Write SQL to find the top three highest paid employees in each department.”
Which age groups have more sick patients than healthy patients, and how would you print only patients in those groups?
Asked once · last asked Aug 26 · Write code · Junior
Other ways it was asked
- “Which BMI groups have more sick patients than healthy patients, and how would you print only patients in those groups?”
What is the purpose of SQL indexing, and how does it affect query performance?
Asked once · last asked Aug 31 · Concept · Mid-level
You have two tables: Customers (customer ID, name) and Orders (order ID, customer ID, order date, amount). How would you write a SQL query to list each customer and the total amount they have spent, including customers who have not placed any orders?
Asked once · last asked May 18 · Write code · Junior
Could you explain the difference between GROUP BY and DISTINCT in SQL, and give an example where GROUP BY with an aggregate function is necessary and DISTINCT alone would not be sufficient?
Asked once · last asked May 18 · Concept · Junior
Given a transactions table with columns for ID, user ID, transaction date, and amount, how would you write a SQL query to find each user's maximum transaction amount and number of transactions? Could you also explain how your query works?
Asked once · last asked May 18 · Write code · Junior
Could you describe the typical stages of a simple batch ETL pipeline that loads data from a relational database into a data warehouse table? What happens in the extract, transform, and load phases?
Asked once · last asked May 18 · Concept · Junior
How would you map customers_src (customer ID, name, country) to warehouse table customers_dim (customer key, customer ID, name, country, is_active), including logic for populating customer keys and is_active and handling new versus existing customers?
Asked once · last asked May 18 · Scenario · Mid-level
Other ways it was asked
- “Suppose you have a source table called customers_src and a target table called customers_dim in a data warehouse. The target requires customer key, customer ID, name, country, and is_active, but the source provides only customer ID, name, and country. How would you design a simple mapping and logic to populate the target table, including handling new versus existing customers?”
System logs often contain fields such as timestamp, log level, and message. How would you design a simple approach to parse log lines and store them in a structured format for analysis?
Asked once · last asked May 18 · Scenario · Junior
Could you explain what a Spark DataFrame is and how it differs from a pandas DataFrame? In the context of big data, why is Spark often preferred over pandas?
Asked once · last asked May 18 · Concept · Junior
Show 7 more
Given a Spark DataFrame with columns for user ID, country, and amount, how would you filter rows where country equals US, group by user ID, and compute the total amount per user? Could you describe the code steps conceptually?
Asked once · last asked May 18 · Write code · Junior
How does XML differ from a relational database such as MySQL or PostgreSQL?
Asked once · last asked Jun 9 · Concept · Junior
How do you typically handle missing data and outliers in a data set, and what factors guide your choice of technique?
Asked once · last asked Jun 26 · Scenario · Mid-level
In SQL, how would you compute an uplift metric by segment using treatment and control groups, and return the point estimate plus a 95% confidence interval?
Asked once · last asked Jun 30 · Write code · Senior
When computing a confidence interval in BigQuery or Athena, what SQL unit-of-analysis strategy would you use to ensure it is based on unique users and not biased by repeated events?
Asked once · last asked Jun 30 · Scenario · Senior
Other ways it was asked
- “When computing this in a cloud analytics pipeline such as BigQuery or Athena, how would you ensure the confidence interval is based on unique users and not biased by repeated events? What unit-of-analysis strategy would you use in SQL?”
How would you implement user-level deduplication and eligible-universe logic in a streaming pipeline, such as Kafka, Spark, Flink, BigQuery, or Snowflake, while handling late events and avoiding double counting?
Asked once · last asked Jun 30 · Design · Senior
Other ways it was asked
- “How would you implement the same user-level deduplication and eligible-universe logic in a streaming pipeline, such as Kafka, Spark, Flink, BigQuery, or Snowflake, while handling late events and avoiding double counting?”
In AWS, how would you design a scalable, cost-effective lakehouse pattern for ML and BI using S3 with Iceberg, Hudi, or Delta, and what would drive your choice among those table formats?
Asked once · last asked Jun 30 · Design · Senior
Statistics, probability, and A/B testing interview questions
Test your understanding of probability, distributions, uncertainty, hypothesis testing, experiment design, and cause and effect. 77 questions.
What problems can arise if the smoothing strength for a new merchant's historical conversion rate is set too high or too low?
Asked in 2 of 138 interviews · last asked Nov 5 · Scenario · Mid-level
Other ways it was asked
- “When smoothing historical conversion rates, what problems can arise if the prior strength is set too high or too low?”
What is exploratory data analysis (EDA), and what does it involve?
Asked in 2 of 138 interviews · last asked Nov 18 · Concept · Junior
Other ways it was asked
- “What is exploratory data analysis (EDA) used for?”
How would you design and conduct an A/B test?
Asked once · last asked Oct 12 · Behavioral · Mid-level
Other ways it was asked
- “How have you designed and conducted A/B tests?”
If your team launched a new feature on a website, how would you determine whether it improved user engagement or not?
Asked once · last asked Jul 20 · Scenario · Mid-level
Other ways it was asked
- “If your team launched a new website feature, how would you design and analyze an A/B test to determine whether it improved user engagement?”
If q(x) = k(x-a)(x-b)(x-c) and p(x) = q(x) + 7, what is the general form of p(x)?
Asked once · last asked Jul 21 · Concept · Junior
Other ways it was asked
- “If q(x) = p(x) - 7 and q(x) = k(x-a)(x-b)(x-c), what condition must hold at x = d for q(d) to equal 3?”
- “For q(x) = k(x-a)(x-b)(x-c), what must k(d-a)(d-b)(d-c) equal for q(d) to equal 3?”
- “If q(x) = k(x-a)(x-b)(x-c) and p(x) = q(x) + 7, does the factor k change when forming p(x)?”
How would you establish that a semantic search feature caused an observed uplift rather than other factors?
Asked once · last asked Sep 7 · Scenario · Senior
What do consistency and positivity mean in causal inference, and can you give examples?
Asked once · last asked Apr 30 · Concept · Mid-level
Other ways it was asked
- “Can you tell me about consistency and positivity?”
- “Can you explain the positivity assumption in causal inference and give an example of how it works?”
What statistical methods would you use to assess whether two surveyors' independently collected samples for identifying people below the poverty line are valid and consistent?
Asked once · last asked May 12 · Scenario · Mid-level
What is the difference between a probability density function (PDF) and a cumulative distribution function (CDF), and when would you use the PDF?
Asked once · last asked May 12 · Concept · Junior
How can you calculate percentiles using a cumulative distribution function (CDF)?
Asked once · last asked May 12 · Concept · Junior
Other ways it was asked
- “How do you identify the 50th percentile from a cumulative distribution function (CDF)?”
After visual checks, what diagnostic or statistical test would you use to assess logit linearity more formally?
Asked once · last asked Jun 3 · Concept · Mid-level
How do you compute and apply propensity scores for the behavior policy in inverse propensity scoring, and how do you control variance from very small propensities?
Asked once · last asked Jun 15 · Concept · Senior
Show 8 more
How would you design an A/B test for a new ranking model that might change user behavior over time or involve interference and feedback, and what would you do to reduce bias from those dynamics?
Asked once · last asked Jun 15 · Scenario · Senior
How would you handle variance and exploding weights in inverse propensity scoring, for example, when propensities are very small at low ranks, while keeping the estimator reliable?
Asked once · last asked Jun 15 · Concept · Senior
When you suspect propensity depends on context such as device, time, or user segment, how would you design the logging policy and estimator so the positivity assumption holds for all candidate items?
Asked once · last asked Jun 15 · Scenario · Senior
What specific statistical tool or method would you use to detect bias or distribution shifts in the dataset?
Asked once · last asked Jun 17 · Concept · Mid-level
How do you incorporate uncertainty estimation or confidence intervals into your analyses or model outputs?
Asked once · last asked Jun 26 · Concept · Mid-level
How would you design and interpret an A/B test for a new product feature, including key metrics and common pitfalls to avoid?
Asked once · last asked Jun 26 · Scenario · Mid-level
How can you increase the confidence level of a confidence interval?
Asked once · last asked Jul 16 · Concept · Junior
What happens to the width of a confidence interval when its confidence level increases?
Asked once · last asked Jul 16 · Concept · Junior
Machine learning interview questions
Machine learning questions explore learning methods, data preparation, feature engineering, model selection, optimization, regularization, clustering, dimensionality reduction, and forecasting. 163 questions.
How does a random forest work?
Asked in 2 of 138 interviews · last asked Oct 27 · Concept · Junior
Other ways it was asked
- “What is a Random Forest?”
Can you explain L1 and L2 regularization and how they affect model coefficients and feature selection?
Asked in 2 of 138 interviews · last asked Nov 4 · Concept · Mid-level
Other ways it was asked
- “How do L1 and L2 regularization affect model parameters, why can L1 perform sparse feature selection, and what problem can arise when features are highly correlated?”
What are the core differences between XGBoost and LightGBM, and why is LightGBM often faster on large-scale tabular data?
Asked in 2 of 138 interviews · last asked Nov 5 · Concept · Mid-level
Other ways it was asked
- “What are the key differences between XGBoost and LightGBM? Why is LightGBM often faster on large datasets, and what risks can its leaf-wise growth strategy introduce?”
If you need to segment users into behavioral groups without ground-truth labels, how would you choose a clustering algorithm and the number of clusters?
Asked in 2 of 138 interviews · last asked Nov 5 · Scenario · Mid-level
Other ways it was asked
- “If you need to segment users into behavioral groups without ground-truth labels, how would you choose a clustering algorithm and the number of clusters? Beyond the silhouette score, how would you assess whether the results are useful?”
What is logistic regression?
Asked in 2 of 138 interviews · last asked Nov 11 · Concept · Junior
Other ways it was asked
- “What does logistic regression estimate?”
What is XGBoost?
Asked in 2 of 138 interviews · last asked Sep 19 · Concept · Junior
Show answer
XGBoost is a fast machine learning library best known for gradient-boosted decision trees. It adds trees one at a time, with each tree helping reduce errors in the current model. It uses information from a loss function to guide learning and regularization to limit overfitting.
- It is widely used for classification and regression on tabular data.
- Learning rate, tree depth, and number of trees are important settings to tune.
- It can learn how to route missing values through each tree.
- Early stopping uses validation performance to decide when to stop adding trees.
What the interviewer checks: The interviewer wants to know whether you understand boosted trees and how XGBoost controls overfitting.
Other ways it was asked
- “Explain XGBoost.”
How do you choose the right machine-learning algorithm for a problem?
Asked once · last asked Aug 22 · Concept · Mid-level
Other ways it was asked
- “How do you choose the right ML algorithm for a problem?”
How are bias and variance defined and calculated, and how are they related to RMSE?
Asked once · last asked Dec 16 · Concept · Mid-level
Other ways it was asked
- “Tell me about the bias-variance trade-off and how bias and variance are related to RMSE.”
- “What is the equation relating RMSE, bias, and variance?”
How are principal components ranked in PCA?
Asked once · last asked May 25 · Concept · Mid-level
Other ways it was asked
- “Why are principal components ranked that way in PCA?”
What data do you pass to scikit-learn to train a model, and what does the training call return?
Asked once · last asked Sep 10 · Concept · Junior
How do you decide whether to use traditional machine learning or deep learning for a problem?
Asked once · last asked Sep 22 · Concept · Senior
What initial parameters would you use to fit a linear regression model to data in three-dimensional space, and how would you optimize them?
Asked once · last asked Mar 4 · Concept · Junior
Show 3 more
What is gradient descent, how does it work, and what determines its pace?
Asked once · last asked Mar 4 · Concept · Junior
Before building a model, we generally preprocess the data. What are some things you have to look out for?
Asked once · last asked Mar 5 · Concept · Mid-level
What criteria do you use to optimize features for a machine learning model?
Asked once · last asked Mar 5 · Concept · Mid-level
Model evaluation and validation interview questions
Check how you would split data, prevent leakage, choose metrics, handle imbalance, tune models, set thresholds, and explain predictions. 109 questions.
Why doesn't a low RMSE for a robot battery prediction model necessarily tell you when the robot should return to charge?
Asked in 2 of 138 interviews · last asked Nov 5 · Concept · Mid-level
Other ways it was asked
- “In a robot battery prediction task, why is a good point-prediction RMSE not enough to decide when the robot should return to recharge?”
If a battery prediction model often overestimates charge and the actual value falls below the predicted lower bound, how would you define an evaluation metric that better reflects the risk?
Asked in 2 of 138 interviews · last asked Nov 5 · Scenario · Senior
Other ways it was asked
- “If a battery prediction model often overestimates charge and the actual charge falls below its predicted lower bound, how would you define evaluation metrics that better reflect business risk?”
In a binary classification task with only one positive example, would an ROC AUC of 0.95 convince you the model is good? What other metrics would you examine, and how would you evaluate it if the business can process only the top 500 risk cases each day?
Asked in 2 of 138 interviews · last asked Nov 5 · Scenario · Senior
Other ways it was asked
- “In a binary classification task with only one positive example, does an ROC-AUC of 0.95 mean the model is good? What other metrics would you check, and how would you evaluate it if the business can review only the 500 highest-risk cases each day?”
Can you explain a confusion matrix?
Asked in 2 of 138 interviews · last asked Nov 18 · Concept · Junior
Other ways it was asked
- “What is a confusion matrix?”
- “What is a confusion matrix used for?”
How do you handle class imbalance in a dataset?
Asked in 2 of 138 interviews · last asked Jul 20 · Scenario · Mid-level
Show answer
Class imbalance means some classes have far fewer examples than others. I use stratified splits when appropriate and judge results with precision, recall, and PR-AUC, not accuracy alone. I try class weights first, then compare oversampling or undersampling. I choose the decision threshold based on the cost of missed cases and false alarms.
- Apply resampling only to training data, including within each cross-validation fold, to prevent leakage.
- Keep validation and test data representative of the class balance expected in use.
- Oversampling can overfit; undersampling can discard useful examples.
- Choose metrics and thresholds based on which errors matter most.
What the interviewer checks: The interviewer checks whether you can choose suitable metrics and treatments without leaking data or ignoring error costs.
Other ways it was asked
- “What is class imbalance?”
- “How do you handle class imbalance?”
- “How would you address class imbalance in a classification dataset, and what technique would you use?”
How do precision and recall help evaluate a customer attrition model?
Asked once · last asked Sep 29 · Concept · Mid-level
Which metrics would you monitor during AI model training?
Asked once · last asked Sep 7 · Concept · Mid-level
Other ways it was asked
- “Which metrics would you check during machine learning model training?”
What is Synthetic Minority Oversampling Technique (SMOTE)?
Asked once · last asked Oct 1 · Concept · Junior
Other ways it was asked
- “What does Synthetic Minority Oversampling Technique, or SMOTE, do?”
How can precision be calculated for supervised models, and how does evaluating precision differ for unsupervised models?
Asked once · last asked Mar 5 · Concept · Mid-level
What is hyperparameter tuning, and when would you use it?
Asked once · last asked May 22 · Concept · Mid-level
What strategies would you use for hyperparameter tuning in object detection models?
Asked once · last asked May 22 · Scenario · Mid-level
In an imbalanced setting, when would ROC AUC be misleading, and what would you use instead to align with business costs?
Asked once · last asked Jun 3 · Concept · Mid-level
Show 1 more
For fraud or rare-event detection, how would you choose a decision threshold, and how would you validate that it holds up over time?
Asked once · last asked Jun 3 · Scenario · Senior
Computer vision, NLP, and deep learning interview questions
Explore image, audio, and text tasks, including detection, segmentation, satellite imagery, speech recognition, text classification, and neural networks. 66 questions.
How does a hate-speech detection model work technically?
Asked once · last asked May 18 · Concept · Mid-level
Other ways it was asked
- “What does a hate-speech detection model do?”
- “How does a hate-speech detection model work, and what is its process?”
How would you handle variation in screw locations across supplier images when building an image-segmentation model?
Asked once · last asked Jul 21 · Scenario · Senior
Other ways it was asked
- “Would you still use an image-segmentation model when screw locations vary across supplier images?”
How would you design a fabric quality-control system that detects stains, stitching issues, holes, and color inconsistencies, and prioritizes items for human review?
Asked once · last asked Oct 21 · Design · Mid-level
How would you choose a model for detecting defects in fabric?
Asked once · last asked Oct 21 · Scenario · Mid-level
Other ways it was asked
- “How would you validate a model that detects defects in fabric?”
- “How would you collect and prepare data to train a model for fabric defect detection?”
- “What metrics would you use to evaluate a fabric defect-detection model?”
What is the difference between YOLO and Faster R-CNN?
Asked once · last asked May 13 · Concept · Mid-level
Other ways it was asked
- “What is a use case for YOLO, and under what conditions might it be preferable to Faster R-CNN?”
What is distinctive about BERT, and why might you choose it for a text-classification task?
Asked once · last asked May 18 · Concept · Mid-level
Can you tell me the difference between TensorFlow and PyTorch?
Asked once · last asked May 22 · Concept · Mid-level
How would you address spatial resolution challenges and class imbalance when working with satellite imagery?
Asked once · last asked May 22 · Scenario · Mid-level
For an AI project that automates customer feedback analysis for a retail client, where sentiment analysis results do not align with customer satisfaction scores, what specific analytic tool or algorithm adjustment would you explore first to reconcile the discrepancy?
Asked once · last asked Jun 17 · Scenario · Mid-level
What is a convolutional neural network (CNN), and how does its architecture work?
Asked once · last asked Jul 16 · Concept · Mid-level
When optimizing a convolutional neural network, which layers would you target, and why?
Asked once · last asked Jul 16 · Concept · Mid-level
What effects can layer-level optimization have on model performance, and should it be limited to lower layers?
Asked once · last asked Jul 16 · Concept · Mid-level
Show 8 more
How would you choose an architecture for an object detection task?
Asked once · last asked Jul 16 · Concept · Senior
Which model would you choose for an object detection task, and why?
Asked once · last asked Jul 16 · Concept · Senior
Can you tell me the difference between YOLO and a two-stage detector?
Asked once · last asked Jul 16 · Concept · Mid-level
What is non-max suppression, and why is it needed in YOLO?
Asked once · last asked Jul 16 · Concept · Mid-level
How would you verify that a marker is positioned over a screw and that the temperature difference does not exceed 5 degrees?
Asked once · last asked Jul 21 · Scenario · Mid-level
What type of model would you use to detect screws and markers in a thermal image and draw bounding boxes around them?
Asked once · last asked Jul 21 · Concept · Mid-level
What does an object-detection model return when you give it an image?
Asked once · last asked Jul 21 · Concept · Junior
Once you have a binary mask, how would you validate an object's position and check its temperature?
Asked once · last asked Jul 21 · Scenario · Mid-level
LLM, RAG, and search interview questions
Questions cover embeddings, search, ranking, recommendations, knowledge graphs, RAG, chatbot memory, agents, prompting, and adapting language models. 56 questions.
How would you implement a retrieval-augmented generation (RAG) system?
Asked in 2 of 138 interviews · last asked Oct 20 · Design · Mid-level
Show answer
I would build RAG by retrieving relevant source text and giving it to a language model with the question. First, I would clean documents, split them into chunks, and index them for search. For each question, I would retrieve and optionally rerank chunks. The model would answer from those chunks, cite sources, and flag missing information.
- Use keyword search, embedding similarity, or both; use the same embedding model for documents and questions.
- Choose chunk sizes that preserve meaning and fit useful evidence within the model's context limit.
- Keep the index updated and enforce document access permissions during retrieval.
- Test retrieval relevance and answer accuracy separately; RAG reduces but does not eliminate unsupported claims.
What the interviewer checks: The interviewer checks whether you can explain the full pipeline and handle retrieval quality, unsupported answers, and access control.
Other ways it was asked
- “How does a retrieval-augmented generation (RAG) system work?”
- “How does a retrieval-augmented generation (RAG) pipeline work end to end, independent of any specific vendor?”
- “How does a RAG pipeline work end to end, without relying on a specific vendor's implementation?”
How do you choose a chunking strategy and chunk size for a RAG system?
Asked once · last asked Sep 29 · Scenario · Mid-level
Other ways it was asked
- “How would you choose the chunk size for documents in a RAG system?”
What is a large language model?
Asked once · last asked Oct 1 · Concept · Junior
How would you reduce hallucinations in an AI system and evaluate whether your approach works?
Asked once · last asked Aug 22 · Scenario · Senior
How would you evaluate a hybrid BM25 and k-nearest-neighbor vector-search approach, and which metrics would you use?
Asked once · last asked Sep 7 · Concept · Senior
Other ways it was asked
- “How would you test whether adding k-nearest-neighbor vector search to BM25 improves performance compared with a BM25 baseline?”
- “How would you evaluate a hybrid BM25 and vector-search approach, and how would you choose the weights for each retrieval method?”
When improving an existing article recommendation system by integrating knowledge-aware models, what would be your first step?
Asked once · last asked Jun 17 · Scenario · Mid-level
What issues in the data pipeline or model design could cause regional content to be available but not reflected in recommendations in new markets?
Asked once · last asked Jun 17 · Scenario · Mid-level
How would you investigate an article recommendation system to validate its shortcomings and identify where changes are most needed?
Asked once · last asked Jun 17 · Scenario · Mid-level
What approaches or model modifications could you use to better personalize recommendations for diverse regional user bases?
Asked once · last asked Jun 17 · Scenario · Mid-level
How can knowledge-aware models improve article recommendations in new regions?
Asked once · last asked Jun 17 · Concept · Mid-level
Which data elements, metadata, or relationship features would you add or enhance to strengthen knowledge-aware recommendations in new regions?
Asked once · last asked Jun 17 · Scenario · Senior
If you were implementing a generative AI solution for personalized marketing content at scale, what key architectural components would you design, and how would you address data privacy, model bias, and content diversity?
Asked once · last asked Jul 16 · Design · Senior
Show 8 more
How would you leverage vector embeddings to address cross-lingual semantic search in a multilingual search platform, and what challenges might you encounter during implementation?
Asked once · last asked Jul 16 · Design · Senior
What are the main considerations when training or retraining an LLM?
Asked once · last asked Jul 16 · Concept · Senior
What is KV cache in LLMs, and what exactly does it store?
Asked once · last asked Jul 16 · Concept · Senior
How does a model have 100 billion-plus parameters but only activate a small number at a time?
Asked once · last asked Jul 16 · Concept · Senior
How would you store short-term, medium-term, and long-term memory in a multi-turn chatbot?
Asked once · last asked Jul 16 · Design · Senior
Other ways it was asked
- “How would a multi-turn chatbot decide which medium-term memory to retrieve?”
Design a single prompt that makes an AI produce a production-ready fairness evaluation memo for a high-stakes binary classifier. Specify the objective, context, constraints, required sections, evaluation criteria, and exact output format.
Asked once · last asked Aug 11 · Senior
When fine-tuning a pretrained transformer on a small domain dataset, how do you prevent catastrophic forgetting while still adapting meaningfully to the new domain?
Asked once · last asked Aug 19 · Scenario · Senior
How would you design a RAG system end to end, reduce hallucinations, and evaluate its performance?
Asked once · last asked Aug 22 · Design · Senior
MLOps and model deployment interview questions
Deployment questions focus on production systems, cloud infrastructure, Kubernetes, scaling, load testing, monitoring, drift detection, retraining, and security. 46 questions.
How do you mathematically handle live data that's highly sparse, imbalanced, or unrepresentative of the environment your model encounters post launch?
Asked in 2 of 138 interviews · last asked Sep 11 · Scenario · Senior
Show answer
I use regularization or pooled estimates for sparse data, and class weights or training resampling for imbalance. I tune decision thresholds using the cost of each error. For distribution shifts, I use importance weighting when its assumptions hold, and collect missing cases. I validate on representative recent data and monitor drift after launch.
- Regularization reduces overfitting, but cannot replace data from missing groups or conditions.
- Resample only training data; evaluate on data with realistic class proportions.
- Under covariate shift, use w(x) = p_live(x)/p_train(x), requiring overlapping coverage and unchanged P(y|x).
- Track precision, recall, calibration, and performance across important groups, not accuracy alone.
What the interviewer checks: The interviewer checks whether you distinguish these data problems and choose methods with valid assumptions and realistic evaluation.
Other ways it was asked
- “What methods would you use to handle live data that is sparse, imbalanced, or unrepresentative of a model's post-launch environment?”
Can you explain the different deployment strategies available in Kubernetes?
Asked once · last asked Jul 16 · Concept · Mid-level
Other ways it was asked
- “What types of deployments are available in Kubernetes?”
How do you obtain and configure a certificate in Kubernetes for use across multiple ports?
Asked once · last asked Jul 16 · Tooling · Mid-level
Other ways it was asked
- “How do you configure certificates in a Kubernetes cluster?”
How would you deploy a machine learning model for business intelligence or analytics engineering, and how would it be used?
Asked once · last asked Aug 31 · Behavioral · Senior
Other ways it was asked
- “Tell me about a machine learning model you deployed in your area of specialization and how it was used.”
Why would you choose Amazon EKS over Amazon ECS?
Asked once · last asked Sep 15 · Concept · Senior
What are the stages of an end-to-end machine learning model lifecycle, from development through implementation?
Asked once · last asked May 13 · Concept · Mid-level
When your recommendation model is updated, how do you detect and handle distribution shift or metric drift in production, and what triggers a rollback versus continued monitoring?
Asked once · last asked Jun 15 · Scenario · Senior
How would you address latency challenges when integrating a complex machine learning model into an existing system?
Asked once · last asked Jun 17 · Scenario · Senior
How do you handle trade-offs between model complexity and scalability when integrating a machine learning model into an existing system?
Asked once · last asked Jun 17 · Scenario · Senior
Other ways it was asked
- “How do you typically handle trade-offs between model complexity and scalability during such integrations?”
How do you ensure that your models remain robust over time in the presence of concept drift or changing data distributions?
Asked once · last asked Jun 26 · Scenario · Senior
Suppose your production model's AUC stays stable, but calibration degrades over a month. What are the most likely causes, and what remediation would you implement first?
Asked once · last asked Jun 30 · Scenario · Senior
If your model started performing poorly after six months, how would you investigate that scenario?
Asked once · last asked Jul 16 · Scenario · Senior
Show 3 more
How do you deploy a model to Kubernetes?
Asked once · last asked Jul 16 · Tooling · Mid-level
What is etcd, and what role does it play in a Kubernetes cluster?
Asked once · last asked Jul 16 · Concept · Mid-level
Can machine learning models be deployed horizontally in Kubernetes, and how?
Asked once · last asked Jul 16 · Design · Mid-level
Data science case study and behavioral interview questions
Connect data science to business problems through product metrics, modeling cases, stakeholder work, documentation, communication, ethics, and investment decisions. 129 questions.
What would you check when reviewing data science documentation for accuracy, clarity, and usefulness?
Asked in 2 of 138 interviews · last asked Oct 20 · Scenario · Senior
Other ways it was asked
- “When reviewing documentation from others, what common issues do you look for, and how do you ensure the content accurately reflects the underlying data science work?”
- “When reviewing data science documentation, what common issues do you look for, and how do you verify that it accurately reflects the underlying work?”
- “Imagine you're reviewing a technical document describing a new machine learning model. What specific elements would you scrutinize to ensure it's clear, accurate, and useful for both technical and nontechnical audiences?”
How would you resolve a challenging judgment call about the accuracy of data science documentation?
Asked in 2 of 138 interviews · last asked Oct 20 · Behavioral · Senior
Other ways it was asked
- “What's the most challenging judgment call you've had to make about the accuracy or completeness of a data science document, and how did you resolve it?”
- “Tell me about a challenging judgment call you made about the accuracy of data science documentation and how you resolved it.”
How would you approach a data science project, from defining the problem to choosing features, models, and metrics?
Asked in 2 of 138 interviews · last asked Oct 20 · Behavioral · Mid-level
Other ways it was asked
- “Could you share one concrete predictive analytics project, including the problem, model and features, and validation metrics?”
- “Describe a data science project you worked on, including its goal, the model or approach you used, and how you evaluated it.”
Why might you choose an interpretable merchant growth score over directly training a CTR/CVR model or a learning-to-rank model?
Asked in 2 of 138 interviews · last asked Nov 5 · Concept · Mid-level
Other ways it was asked
- “When building a merchant growth score from historical conversions, lifecycle stage, and regional supply and demand, why might you choose an interpretable rule-based score over directly training a CTR, CVR, or learning-to-rank model?”
A fraud detection tool flags two transactions for the same amount made just minutes apart, but both may be legitimate. How would you determine whether they are suspicious while avoiding excessive false alerts?
Asked in 2 of 138 interviews · last asked Nov 10 · Scenario · Mid-level
Other ways it was asked
- “A fraud detection tool flags two transactions for the same amount made just minutes apart. How would you determine whether they are suspicious and reduce false alerts?”
What is the difference between Power BI and Tableau?
Asked once · last asked Aug 13 · Concept · Junior
Other ways it was asked
- “What is the difference between Tableau and Power BI?”
How would you identify during experimentation that a project sponsor's scope might change two months later?
Asked once · last asked Aug 25 · Scenario · Senior
What is your product vision for a data platform, specifically around data management?
Asked once · last asked Sep 7 · Senior
Other ways it was asked
- “What would be your product vision for a data platform, including data management and datasets?”
Tell me about a time stakeholders interpreted a KPI differently than intended. What did you learn from the experience?
Asked once · last asked Sep 26 · Behavioral · Mid-level
How would you turn transcribed sales calls into useful business insights?
Asked once · last asked Oct 12 · Case · Mid-level
Other ways it was asked
- “After transcribing sales-call audio, what would you do next to derive useful insights?”
- “What output would you generate from sales-call data, and what business problem would it solve?”
- “What useful output would you generate after converting sales-call audio to text, and what business problem would it solve?”
If you could design your own project in banking during this internship, what would you work on?
Asked once · last asked Oct 15 · Case
If you knew only that check-kiting losses had increased, where would you start investigating?
Asked once · last asked Oct 15 · Scenario · Mid-level
Other ways it was asked
- “How would you begin investigating an increase in check-kiting losses?”
Show 6 more
If the check-kiting fraud rate has risen steadily month over month, what would you investigate next?
Asked once · last asked Oct 15 · Scenario · Mid-level
Other ways it was asked
- “After confirming that the check-kiting fraud rate has risen month over month, what would you investigate next?”
What criteria define a customer as churned?
Asked once · last asked Oct 20 · Case · Mid-level
Other ways it was asked
- “How would you define a customer as churned for a churn analysis?”
- “What is the business definition or criteria for customer churn?”
How do you construct the dataset for churn prediction?
Asked once · last asked Oct 20 · Case · Mid-level
Other ways it was asked
- “How would you construct training data for a churn prediction model?”
How would you construct positive labels for churn prediction?
Asked once · last asked Oct 20 · Case · Mid-level
Other ways it was asked
- “How would you construct the positive label for a churn prediction model?”
- “How would you decide which customer-time rows to label positive in a churn prediction dataset?”
How are data analytics and wireless sensor networks related?
Asked once · last asked Mar 5 · Concept · Mid-level
How would you communicate with a business unit to gather the information needed and assess whether a model is working effectively?
Asked once · last asked Mar 12 · Scenario · Mid-level
Have an interview coming up? MeetAssist listens to the call and answers questions like these live: the AI interview assistant on your computer, or the AI interview app on your phone.
Related interview questions
- Machine Learning interview questions
- MLOps interview questions
- Data Engineer interview questions
- Data Analyst interview questions
- Machine Learning Engineer interview questions
- AI Engineer interview questions
- AI Trainer interview questions
Read next
- How to prepare for a job interview without memorizing
- How to answer behavioral interview questions with stories
- Best AI interview copilot tools in 2026
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Data Scientist interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
138 interviews, 81 candidates, Dec 2025 to Nov 2026. Updated every month with new interviews.