Topic
Machine Learning interview problems
Modeling, evaluation, ML systems and LLM engineering. 511 original problems, each with a worked model answer.
27 easy274 medium210 hard
Showing 331–360 of 511 results
Design an end-to-end system that suggests learning courses matching a user's job-search or role goals, including job-posting text extraction, ranking, evaluation, and guardrails.
Model answerrecommender-systemsfeature-engineeringrankingcold-startDesign a cloud inference platform that serves ML models at scale, covering hardware selection, autoscaling, multi-tenancy, cost controls, and safe deployment strategies.
Model answerml-system-designinferencekubernetesgpuDerive the closed-form least-squares estimators for a simple linear model by minimizing MSE, and reason through what breaks when input variance is zero.
Model answerlinear-regressioncalculusOLSstatisticsIdentify and resolve common failure modes in a marketing mix model with correlated channels, structural breaks, and endogeneity.
Model answercausal-inferencemarketing-analyticsbayesian-methodsDesign an ML system that transforms company policy documents into actionable support workflows with evidence tracking and version control.
Model answerragnlpml-systemspolicy-groundingDesign an end-to-end personalized ranking system for a food delivery home feed, covering objectives, features, model architecture, evaluation, and feedback loops.
Model answerrankingrecommendation-systemsmulti-task-learningfeature-engineeringDemonstrate working knowledge of probability calibration methods and metrics, feature selection strategies including neural approaches, subword tokenizer variants, and Adam optimizer mechanics.
Model answermachine-learningdeep-learningnlpmodel-trainingSelect and justify an operating threshold for a fraud probability scorer given asymmetric FP/FN costs, then cover calibration, drift monitoring, and safe rollout.
Model answercost-sensitive learningthreshold selectioncalibrationdrift monitoringDesign a scalable evaluation platform that combines automated metrics, LLM-based judging, and human expert review to assess ML model outputs with full provenance tracking.
Model answersystem-designmlopshuman-in-the-loopevaluationBuild and validate a model that predicts wine ratings from chemical measurements, choosing appropriate problem framing, metrics, and feature analysis methods.
Model answersupervised-learningfeature-engineeringmodel-evaluationordinal-predictionDesign a constrained decision model that selects a supplier per order to minimize expected total cost while keeping SLA attainment at or above 95% and staying within a monthly budget.
Model answercost-sensitive learningcausal inferenceconstrained optimizationoff-policy evaluationDesign an end-to-end AI system that scrapes tickets from a browser-only UI, enriches them with user data from an API, and generates personalized support replies.
Model answeragentic-aibrowser-automationllmsystem-designGiven funnel and revenue data for two mobile ad creatives, decide how to split incremental budget by reasoning through marginal ROI, LTV, and saturation.
Model answerproductmarketingROIfunnel-analysisDesign a scalable, low-latency search engine that combines keyword and semantic retrieval over 100M enterprise documents with personalized ranking.
Model answerinformation-retrievalvector-searchrankingpersonalizationDesign an end-to-end dynamic pricing system for a two-sided ride-hailing marketplace, balancing supply, demand, fairness, and service quality.
Model answerpricingmarketplacedemand-forecastingcausal-inferenceApprove or decline two flagged transactions, then design a rule-based fraud strategy from scratch, covering metrics, cold-start thresholds, and adversarial adaptation.
Model answerfraud detectionrisk strategyexperiment designfeature engineeringDesign a safe, repeatable harness that runs a tool-calling agent offline, grades its trajectories, and gates releases without touching production state.
Model answeragent-evaluationml-infrastructurellm-opssystem-designDesign a safety pipeline that stops an LLM-powered coding tool from leaking secrets, internal credentials, or proprietary source code at training and inference time.
Model answerllmsafetyml-systemsinformation-securityPick, justify, and stress-test evaluation metrics for an imbalanced fake-account classifier, wiring thresholds to asymmetric action costs and biased labels.
Model answerimbalanced-classificationprecision-recallthreshold-tuningcalibrationDesign a low-latency pipeline that classifies chatbot queries as in-domain or out-of-domain, routes them safely, and stays calibrated as traffic drifts.
Model answerood-detectionllm-guardrailsragdrift-monitoringImplement a complete per-batch training loop in PyTorch, covering device placement, gradient management, and per-epoch loss tracking.
Model answerpytorchdeep-learningtraining-loopgradient-descentGiven daily temperature readings for NYC and several towns, compute variability stats, fit linear regressions, and select five predictors via greedy forward search.
Model answerpandasnumpylinear-regressionfeature-selectionDesign an ML system that predicts job click probability using member profiles, job attributes, and behavior logs to power ranking at serving time.
Model answerml-system-designrankingembeddingsdata-leakageDesign a retrieval-augmented voice assistant that answers from a trusted knowledge base under a 500ms latency budget while minimizing hallucinations.
Model answerRAGLLMsystem-designvoiceCompare Lasso and Ridge penalties on a 500-feature regression model, explaining mathematically and geometrically why one produces sparse weights and the other does not.
Model answerregularizationlassoridgelinear-regressionDesign an ML system that ingests sports content, generates grounded summaries for local audiences, and personalizes delivery at scale.
Model answerml-system-designragnlppersonalizationImplement sinusoidal or learned positional encodings in PyTorch, explain the math and tensor shapes, integrate them into a Transformer LM, and diagnose what breaks without them.
Model answertransformerspositional-encodingpytorchlanguage-modelsExplain key techniques for reducing training and inference cost, then compare how tensor parallelism and pipeline parallelism split work across GPUs.
Model answerdeep-learningdistributed-traininginference-optimizationLLMsWalk through every stage of PD model validation — data checks, discrimination, calibration, stability, and backtesting — explaining the key metrics and their limitations.
Model answercredit-riskmodel-validationclassificationExplain the structure and computation of a neural network, the role of non-linear activations, and how parameters are learned through loss minimization and backpropagation.
Model answerneural-networksdeep-learningfundamentals