Data Science Interview Questions
Prepare for Data Science interviews with real-world questions covering SQL, Python, statistics, probability, machine learning, causal inference and A/B testing. Strengthen your analytical and problem-solving skills with 280+ interview questions from 65+ companies.
By company
Coding topics
All the questions
- A hundred against a hundred and thirtyA/B testing
Ubereasy - Active productsSQL
Targeteasy - Anagram checkPython
Etsyeasy - Any duplicate transaction ids?Python
Visaeasy - Back off between retriesLLM
Scale AIeasy - Best week of salesPython
Targeteasy - Busiest request hourPython
Lyfteasy - Chunk a document for embeddingRAG
Perplexityeasy - Clearance candidatesSQL
Targeteasy - Completed trips by cityPandas
Ubereasy - Completed trips by hour of daySQL
Ubereasy - Correlation and causationCausal inference
Myntraeasy - Customers outside the US and MexicoSQL
Walmarteasy - Delivery time by cityPandas
Swiggyeasy - Did the pricing change move it?Statistics
Notioneasy - Electronics and accessoriesSQL
Best Buyeasy - Even-numbered ordersSQL
Best Buyeasy - Explaining analysis to a stakeholderBehavioral
Spotifyeasy - FactorialPython
Googleeasy - Find a price in a sorted listPython
Best Buyeasy - First item bought twicePython
Instacarteasy - First unique characterPython
Amazoneasy - FizzBuzzPython
Microsofteasy - How precise is that conversion rate?Statistics
Shopifyeasy - In-stock electronicsSQL
Best Buyeasy - Items and aisles per orderPandas
Instacarteasy - Large orders with customer namesSQL
Amazoneasy - Listening minutes per listenerPandas
Pandoraeasy - Listings missing a pricePandas
Zilloweasy - Longest streak of successful paymentsPython
Stripeeasy - Lowest and highest farePython
Lyfteasy - Mean or median?Statistics
Wayfaireasy - Median order valueStatistics
Airbnbeasy - Merge sales by regionPython
Targeteasy - Merge sorted delivery timesPython
DoorDasheasy - Mirror promo codesPython
Airbnbeasy - Missing order numberPython
Walmarteasy - Move zero-sale days to the endPython
Best Buyeasy - Normalize hashtagsPython
Pinteresteasy - Orders above the averageSQL
Walmarteasy - Orders in a price rangeSQL
Stripeeasy - Orders per customerSQL
Targeteasy - Orders placed in March 2024SQL
Best Buyeasy - Owning a project end to endBehavioral
Coinbaseeasy - Price bandsSQL
Amazoneasy - Price changes month to monthPython
Zilloweasy - Pro productsSQL
Best Buyeasy - Products launched in 2024SQL
Targeteasy - Products under 50SQL
Walmarteasy - Products with no brandSQL
Amazoneasy - Remove duplicates, keep the orderPython
Netflixeasy - Revenue by categoryPandas
Amazoneasy - Reverse the wordsPython
LinkedIneasy - Rotate a shift schedulePython
Walmarteasy - Show missing discounts as zeroSQL
Targeteasy - Split requests into batchesPython
Stripeeasy - Stock statusSQL
Amazoneasy - Trusted shop reviewsPandas
Etsyeasy - Turn a reply into a labelLLM
Cohereeasy - Type I and Type II errorsStatistics
Redditeasy - Unfinished orders over 50SQL
Targeteasy - Watch time by genrePandas
Netflixeasy - Why switch into dataBehavioral
Flipkarteasy - Will the whole run finish?Probability
Datadogeasy - A daily orders pipelineData pipeline
DoorDashmedium - A t-test or a chi-squareStatistics
Intuitmedium - Activation fell last weekProduct sense
CREDmedium - An ML project end to endMachine learning
LinkedInmedium - Ask again until the JSON parsesLLM
OpenAImedium - Average rating by vehicle typePandas
Ubermedium - Back to back repeatsSQL
Spotifymedium - Balanced bracketsPython
Salesforcemedium - Best single tradePython
Robinhoodmedium - Best stretch of daysPython
Robinhoodmedium - Beyond delivery timeProduct sense
Swiggymedium - Bias and varianceMachine learning
Nvidiamedium - Big orders or a loyal customerSQL
Best Buymedium - Booked revenue by cityPandas
Airbnbmedium - Building a spam filterMachine learningPremium
Googlemedium - Busiest stock per clientSQL
Zerodhamedium - Cancellation rate by room typeSQL
Airbnbmedium - Cancellation split by restaurantSQL
Swiggymedium - Changing a decision with dataBehavioral
Figmamedium - Cheapest channel per campaignSQL
Nykaamedium - Check a structured replyLLM
Databricksmedium - Completed versus other ordersSQL
Stripemedium - Completion rate by content typeSQL
Netflixmedium - Compress a status logPython
Ubermedium - Counting what is recordedSQL
Walmartmedium - Cross-border share by card tierSQL
Visamedium - Customers who came backPython
Targetmedium - Daily returnSQL
Coinbasemedium - Damage share of refundsSQL
Flipkartmedium - Data leakageMachine learning
Mastercardmedium - Day over day swingSQLPremium
Swiggymedium - Days from signup to first orderSQL
Stripemedium - Deepest cut per productSQL
Myntramedium - Delivery time by cuisineSQL
DoorDashmedium - Disagreeing with a stakeholderBehavioral
Amazonmedium - Drivers without ridesPandas
Ubermedium - Drop near-duplicate chunksRAG
Perplexitymedium - Everyone in the top threeSQL
DraftKingsmedium - Fare per kilometer by citySQL
Ubermedium - Fill the context windowRAG
Anthropicmedium - Fine-tuning or RAGLLM
Coheremedium - First and last position of a userPython
Metamedium - Flat overall, up in one marketA/B testing
Instacartmedium - Flatten a category treePython
Amazonmedium - Fuse two ranked listsRAG
Hugging Facemedium - Getting an analysis wrongBehavioral
Robinhoodmedium - Group anagramsPython
Pinterestmedium - High credit utilizationSQL
Capital Onemedium - Hours between scansSQL
Amazonmedium - How long the test has to runA/B testing
Flipkartmedium - How often it ran outSQL
Blinkitmedium - Influence without authorityBehavioral
Atlassianmedium - Instant Book as the defaultProduct sense
Airbnbmedium - Invert team assignmentsPython
Capital Onemedium - Is the coin fair?Probability
Googlemedium - Is the model overfitting?Machine learning
Databricksmedium - Kth largest orderPython
Instacartmedium - Latest order statusPandas
Instacartmedium - Leading indicators after launchProduct sense
Lyftmedium - Learning something fastBehavioral
Pelotonmedium - Lineups above their contest averagePandas
FanDuelmedium - Listening time so farSQL
Spotifymedium - Longest incident per servicePandas
PagerDutymedium - Longest run of consecutive daysPython
Pelotonmedium - Marketplace health metricProduct sense
Metamedium - Measuring a good stayProduct sensePremium
Airbnbmedium - Measuring Buy AgainProduct sense
Amazonmedium - Measuring driver satisfactionProduct sense
Ubermedium - Measuring search result qualityProduct sensePremium
Googlemedium - Merchants with high fraud ratesSQL
Mastercardmedium - Merge viewing sessionsPython
Netflixmedium - Missed minimum paymentsSQLPremium
Capital Onemedium - Money moved by payment typeSQL
PhonePemedium - Money moved so farSQLPremium
PhonePemedium - Monitoring a live modelMLOps
Zillowmedium - Monitoring data qualityData quality
Plaidmedium - Monthly approved spendPandas
Visamedium - Monthly traded valuePandas
Robinhoodmedium - Most common review wordPython
Etsymedium - Most visited locationPython
DoorDashmedium - Offline or online evaluationMachine learning
Spotifymedium - One metric for app healthProduct sense
Amazonmedium - Order sequence per customerSQL
Walmartmedium - Outliers by z-scoreStatistics
Stripemedium - Packages still movingSQL
Amazonmedium - Paying out on late ordersProbability
DoorDashmedium - Pick the model that costs leastLLM
Perplexitymedium - Picking a materializationAnalytics engineering
Dropboxmedium - Picking a North StarProduct sense
Duolingomedium - Pins by categoryPandas
Pinterestmedium - Pizzas delivered on a Friday nightGuesstimates
Swiggymedium - Place within the contestPandas
FanDuelmedium - Plan changesSQL
Shopifymedium - Points above the contest averageSQL
DraftKingsmedium - Position after each tradeSQL
Zerodhamedium - Price dropsSQLPremium
Myntramedium - Price moved since last tradeSQLPremium
Zerodhamedium - Priority mix per projectSQL
Atlassianmedium - Prize ranks with tiesSQL
DraftKingsmedium - Pull the JSON out of a replyLLM
OpenAImedium - Pushing backBehavioral
Palantirmedium - Quiet time between incidentsSQL
Datadogmedium - Raising repeat ordersProduct sense
Zomatomedium - Reactions by post typePandas
Metamedium - Read a nested settingPython
Mastercardmedium - Reading a confidence intervalStatistics
Microsoftmedium - Refunds so farSQLPremium
Flipkartmedium - Resolution time by priorityPandasPremium
Atlassianmedium - Retry a failed model callLLM
OpenAImedium - Retry a rate limit, not a bad requestLLM
Databricksmedium - Returns by reasonSQLPremium
Flipkartmedium - Revenue against targetSQLPremium
Swiggymedium - Revenue by plan and monthPandas
Shopifymedium - Revenue by statePandas
Amazonmedium - Revenue to date per merchantSQL
Shopifymedium - Running account balancePandasPremium
Stripemedium - Salary rank within departmentSQL
Netflixmedium - Same question, different answersLLM
OpenAImedium - Sample ratio mismatchA/B testing
Microsoftmedium - Severity mix per serviceSQL
Datadogmedium - Share of plays cut shortPandas
Pandoramedium - Ship on a significant resultA/B testingPremium
Airbnbmedium - Shipping under a deadlineBehavioral
DraftKingsmedium - Shipping without significanceA/B testingPremium
Pinterestmedium - Shops per tagPandas
Etsymedium - Shuffle does not feel randomProbability
Spotifymedium - Slow deliveries by cuisinePandas
DoorDashmedium - Slowest ticket per projectSQL
Atlassianmedium - Smartphones sold in India in a yearGuesstimates
Flipkartmedium - Sort employee recordsPython
Workdaymedium - Spend by channelSQLPremium
Nykaamedium - Spend to dateSQLPremium
Nykaamedium - Stage times per packageSQL
Amazonmedium - Standard deviation of scoresStatistics
DraftKingsmedium - Storing viewing historyData modelingPremium
Netflixmedium - Structuring a dbt projectAnalytics engineering
Notionmedium - Subtasks that outlived the parentSQLPremium
Atlassianmedium - Sunday orders down in one cityProduct sense
Ubermedium - Tennis balls in a passenger jetGuesstimates
Googlemedium - Testing host onboardingA/B testing
Airbnbmedium - Testing Save for LaterA/B testingPremium
Metamedium - The 95th percentileStatistics
Datadogmedium - The busiest customerSQL
Amazonmedium - The lift the test can promiseA/B testing
Netflixmedium - Three day averageSQL
Coinbasemedium - Top chunks by cosine similarityRAG
Coheremedium - Top earner per departmentPandas
Salesforcemedium - Top partners per citySQLPremium
Swiggymedium - Top pin categoriesPython
Pinterestmedium - Top reason per categorySQLPremium
Flipkartmedium - Top track per listenerSQL
Spotifymedium - Trim a conversation to a budgetLLM
Sierramedium - Two definitions of one metricBehavioral
Twiliomedium - Two homes that match a budgetPython
Zillowmedium - Unclear requirementsBehavioral
Adobemedium - Weekend ordersSQL
Walmartmedium - What a bigger sample buysStatistics
LinkedInmedium - What a fraud alert is worthProbability
Visamedium - What a p-value meansStatistics
Netflixmedium - What counts as a DAUProduct sensePremium
Metamedium - What makes a response goodLLM
Scale AImedium - What the review sample picks upProbability
Swiggymedium - When one class is rareMachine learning
PayPalmedium - When to retrainMLOps
Etsymedium - Where a new price fitsPython
Zillowmedium - Which products repeat?Python
Wayfairmedium - Why Prime signups fellProduct sensePremium
Amazonmedium - Why randomize an experimentA/B testing
Netflixmedium - Why Reels viewing fellProduct sensePremium
Metamedium - Working with ambiguous dataBehavioral
Shopifymedium - XGBoost or a neural networkMachine learning
Capital Onemedium - Your first week on the jobBehavioral
Razorpaymedium - Your proudest projectBehavioral
Applemedium - Average reactions per post typeSQL
Metahard - Averages that skip NULLsSQL
Amazonhard - Best and worst day per assetPandas
Robinhoodhard - Busiest hour per cityPandasPremium
Lyfthard - Card-testing patternsSQLPremium
Mastercardhard - Compare with the previous orderSQL
Best Buyhard - Correlation between metricsStatistics
Metahard - Cost per order gridPandasPremium
Nykaahard - Data a streaming service pushes in a dayGuesstimates
Netflixhard - Drawdown from the peakSQL
Coinbasehard - Every stockout windowSQLPremium
Blinkithard - Failures in a rowSQLPremium
PhonePehard - Finding fake reviewsMachine learningPremium
Airbnbhard - Highest paid in each departmentSQL
Metahard - Holdings in long formatPandasPremium
Robinhoodhard - Hours lost by dayPandas
PagerDutyhard - How many users the test needsA/B testing
Duolingohard - Impact without an experimentCausal inferencePremium
PhonePehard - Incidents that overlappedSQL
Datadoghard - Is Comfort eating UberX?Product sensePremium
Uberhard - Largest order per customerPandas
Amazonhard - Let the model use a toolLLM
OpenAIhard - Listening sessionsSQLPremium
Spotifyhard - Longest palindrome in a namePython
Airbnbhard - Longest price holdSQLPremium
Myntrahard - Longest rising streakSQL
Coinbasehard - Longest stockout runSQL
Blinkithard - Longest trip without repeat citiesPythonPremium
Airbnbhard - Merged outage windowsSQL
Datadoghard - Month-over-month spend changeSQLPremium
Visahard - Most-watched title in each countrySQLPremium
Netflixhard - Net position gridPandasPremium
Zerodhahard - Paid above the department averageSQL
Googlehard - Posting on consecutive daysSQLPremium
Metahard - Powering Continue WatchingData pipelinePremium
Netflixhard - Recommending to a new userML system design
Googlehard - Retries before it workedSQLPremium
PhonePehard - Riders a city needs at the dinner peakGuesstimates
Zeptohard - Score an answer against the truthLLM
Scale AIhard - Search a rotated schedulePythonPremium
Uberhard - Simpson's paradoxStatistics
Googlehard - Slowest package per facilitySQL
Amazonhard - Spotting fraud in trip dataMachine learningPremium
Uberhard - Stretches that hit a targetPythonPremium
DoorDashhard - The day the position closedSQLPremium
Zerodhahard - Three transactions that cancel outPython
Stripehard - Two episodes before landingPython
Netflixhard - Unbroken runs of monthsSQL
Shopifyhard - Warehousing A/B test dataData warehousePremium
Netflixhard - What the traffic can detectA/B testing
Ramphard - When short IDs collideProbability
Stripehard
Questions last reviewed 19 October 2026.