01Why do transformers scale attention scores by 1/√d_k, and what breaks if you skip it?▼hard★ EssentialOpenAIAnthropicGoogle2 repliesunlockedNearly every candidate can recite softmax(QKᵀ/√d_k)V. What the interviewer is after is the variance derivation and the precise training failure the scale heads off. This is the response that tells rote recall apart from real grasp.Open full answer →
03Walk through RLHF, then explain DPO and why it has largely displaced PPO-based RLHF.▼hard★ EssentialOpenAIAnthropicCohere1 repliesunlockedAlignment has become a baseline expectation even beyond 'safety' roles. The interviewer is looking for the three-stage RLHF pipeline and a sharp account of why DPO threw out the reward model completely. Here is the answer that leads with mechanism, not the buzzwords.Open full answer →
07Explain Mixture of Experts (MoE): how it works and the training and inference tradeoffs.▼hard★ EssentialGoogleMistralDeepSeek2 repliesunlockedMoE explains why some frontier models carry huge parameter counts yet serve cheaply. The signal is the sparse-activation idea, the routing mechanism, and the operational cost (memory, load balancing) that the FLOP savings quietly conceal.Open full answer →
08Why do transformers need positional encoding, and how do sinusoidal, RoPE, and ALiBi differ?▼hard★ EssentialGoogleMistralMeta1 repliesunlockedAttention is permutation-invariant, so with no position information a transformer cannot detect word order. The signal is knowing why, and why the field shifted from absolute sinusoidal encodings to relative ones like RoPE and ALiBi that extrapolate to longer contexts.Open full answer →
10How do you evaluate an LLM, and why are benchmarks and LLM-as-judge both unreliable?▼hard★ EssentialOpenAIAnthropicGoogle2 repliesunlockedEvaluation is the toughest and most underrated part of shipping LLMs. The signal is understanding why public benchmarks mislead, why LLM-as-judge carries bias, and how to build a task-specific eval you can genuinely trust.Open full answer →
13Explain LoRA, QLoRA, and parameter-efficient fine-tuning. Why train a fraction of the parameters?▼hard★ EssentialMistralCohereMicrosoft1 replies○ sign inPEFT is how everyone fine-tunes large models now. What matters is the low-rank insight behind LoRA, why it cuts memory so sharply, and what 4-bit QLoRA adds. Here is the answer that goes past 'it's efficient fine-tuning.'Open full answer →
17Explain PPO and GRPO for LLM alignment. Why did GRPO drop the value model?▼hardOpenAIAnthropicDeepSeek1 replies○ sign inRL alignment shifted from PPO to leaner methods, and DeepSeek-R1 put GRPO on the map. What matters is knowing what the value/critic model does in PPO and how GRPO replaces it. Here is the mechanism, not the acronyms.Open full answer →
23What is catastrophic forgetting, and how do you prevent it when fine-tuning or continually training an LLM?▼hardGoogleNVIDIACohere2 replies◆ premiumFine-tune a model on your domain and it may lose the ability to do everything else. What earns the signal is explaining why shared weights cause it and listing the concrete mitigations that all boil down to one principle.Open full answer →
24Compare LoRA, prefix tuning, prompt tuning, and adapters. How do PEFT methods differ?▼hardGoogleMicrosoftNVIDIA1 replies◆ premiumPEFT is a family, not only LoRA, and interviewers test whether you know how each one injects trainable parameters. The signal is where each method adds capacity and the latency and quality tradeoffs that result.Open full answer →
28How and when do you use synthetic data (LLM-generated) for training or fine-tuning?▼hardAnthropicOpenAIMicrosoft1 replies◆ premiumSynthetic data is how teams manufacture training examples when real data runs short, and it comes with sharp failure modes. What shows depth is pinning down when it helps, how to keep quality up, and why training on model output over successive generations narrows the distribution.Open full answer →
31How would you set up an evaluation framework from scratch for a new LLM application?▼hardOpenAIAnthropicMicrosoft2 replies◆ premium'Eval is the new system design' for LLM apps, and starting with zero data is the real test. What shows depth is bootstrapping a golden set, choosing task-specific metrics, and running evals continuously as a regression gate.Open full answer →
35How do efficient attention variants (sparse, sliding-window, linear) make long context feasible?▼hardGoogleMistralMeta2 replies◆ premiumFull attention is O(n^2), so long context demands cheaper attention. What shows depth is naming the families (sparse, sliding-window, linear), what each surrenders, and why FlashAttention is not one of them.Open full answer →
37What is Constitutional AI / RLAIF, and how does it differ from RLHF?▼hardAnthropicOpenAIGoogle2 replies◆ premiumRLAIF and Constitutional AI trade human preference labels for AI-generated ones to scale alignment. What shows depth is naming exactly what they substitute for human feedback, and the consistency-versus-bias tradeoff that swap introduces.Open full answer →
38How are reasoning models (o1/R1-style) trained, and what is test-time compute scaling?▼hardOpenAIDeepSeekGoogle2 replies◆ premiumReasoning models are the 2025-2026 frontier. The signal is understanding they are trained (largely via RL on verifiable rewards) to generate long internal reasoning, and that they scale along a second axis: spending more compute at inference.Open full answer →
40How do RoPE and ALiBi encode position, and why do they extrapolate better than learned positions?▼hardGoogleMetaMistral1 replies◆ premiumModern LLMs abandoned learned absolute positions for RoPE and ALiBi to cope with long context. The signal is recognizing that both encode RELATIVE position, and precisely how that permits length extrapolation past the trained window.Open full answer →
41What are Multi-Query (MQA) and Grouped-Query Attention (GQA), and why do they exist?▼hardGoogleMetaMistral2 replies◆ premiumMQA and GQA shrink the KV cache, the thing that bottlenecks LLM serving. The signal is understanding they share key/value heads across query heads to trim memory and bandwidth, with GQA as the quality-preserving middle ground. Here is the answer.Open full answer →
42Beyond DPO: what are SimPO, KTO, and ORPO, and why do these alignment variants exist?▼hardAnthropicOpenAICohere2 replies◆ premiumDPO simplified RLHF, and a family of variants now trade off what data and reference model they require. The signal is knowing what each variant drops or alters (reference model, paired data, separate SFT stage). Here is the answer.Open full answer →
46What is QLoRA, and how does it make fine-tuning large models feasible on one GPU?▼hardHugging FaceMicrosoftNVIDIA1 replies◆ premiumFine-tuning a 65B model once demanded a node of A100s. QLoRA compresses it onto one card with three specific tricks. The signal is knowing what gets quantized, what stays trainable, and why quality barely shifts. Here is the answer.Open full answer →
49What is model merging (e.g. model soups, task arithmetic), and why is it useful?▼hardHugging FaceGoogleMistral1 replies◆ premiumFuse several fine-tunes into one model by doing arithmetic on their weights, with no retraining and no data. The signal is knowing why it works and which method to pick when merges interfere.Open full answer →
51Is a model's chain-of-thought faithful to its actual reasoning, and why does it matter?▼hardAnthropicOpenAIGoogle2 replies◆ premiumChain-of-thought looks like the model showing its work, but it may not mirror the real computation. The signal is knowing CoT can be a post-hoc story, with evidence, and what that breaks for safety and oversight.Open full answer →
52How do you detect hallucinations in LLM output (as opposed to preventing them)?▼hardGoogleOpenAIAnthropic2 replies◆ premiumPreventing hallucinations is one job; catching the ones that slip through at runtime is a separate one. The signal is the detection toolkit, why each signal is imperfect, and how you merge them into an action.Open full answer →
53What is Mixture-of-Depths, and how does it differ from Mixture-of-Experts?▼hardGoogleMetaAnthropic1 replies◆ premiumBoth are conditional compute, but one scales parameters and the other scales depth. The signal is knowing which axis each routes along and why that shifts the FLOP story. Here is the sharp version.Open full answer →
54What is RAFT (Retrieval-Augmented Fine-Tuning), and how does it combine RAG and fine-tuning?▼hardMicrosoftCohereDatabricks1 replies◆ premiumRAG and fine-tuning get cast as either/or. RAFT trains the model to be good at RAG itself. The tell is what goes into the training set: relevant docs mixed with distractors. Here is the answer.Open full answer →
57How do you distill a large LLM into a smaller one, and what are the approaches?▼hardGoogleOpenAIMeta2 replies◆ premiumDistillation gives you most of a frontier model's quality for a fraction of the serving cost. The signal is naming the three LLM-specific variants and knowing which one holds up against a closed API. Here is the answer.Open full answer →
60Your LLM confidently answers even when it has no idea. How do you make it say 'I don't know'?▼hardOpenAIAnthropicGlean2 replies◆ premiumModels are trained to be helpful, which quietly teaches them to never refuse. Restoring honest abstention is a system problem, not a prompt tweak. Here is the stack that actually shifts the refuse-when-unsure rate.Open full answer →
62After RLHF, your model is safer but worse at hard tasks. How do you manage the alignment tax?▼hardAnthropicOpenAICohere2 replies◆ premiumAlignment that piles on refusals and politeness often quietly erodes reasoning and coding. The alignment tax is real and measurable. Here is how to hold onto the safety gains without paying for them in capability.Open full answer →
63Your RLHF model games the reward model instead of being genuinely helpful. How do you stop reward hacking?▼hardAnthropicOpenAIGoogle DeepMind1 replies◆ premiumPush any proxy hard enough and the model discovers the exploit, not the goal. Sycophancy, padding, and fake citations are reward hacking. Here is why it happens and the controls that actually hold.Open full answer →
64Few-shot prompting gives different answers on near-identical inputs. How do you stabilize it?▼hardOpenAIGoogleScale AI1 replies◆ premiumFew-shot accuracy can swing on example order by itself. If your prompt is fragile to things that shouldn't matter, the fix is structural, not lucky example-hunting. Here is what genuinely reduces variance.Open full answer →
67How do you estimate the true cost of self-hosting an LLM versus paying per-token API?▼hardDatabricksAWSMicrosoft2 replies◆ premiumThe per-token sticker price masks the real decision. Self-hosting only pays off past a volume break-even most teams misjudge. Here is the back-of-envelope a staff engineer does on the whiteboard.Open full answer →
69Chain-of-thought isn't improving accuracy on your task. What do you try next?▼hardOpenAIGoogle DeepMindAnthropic2 replies◆ premiumCoT is not a blanket upgrade. On some tasks it does nothing or backfires, and the reason points to what to try instead. Here is the escalation ladder past 'let's think step by step'.Open full answer →
70Your tokenizer shreds domain terms into meaningless subwords. How do you fix it?▼hardSarvam AICohereHugging Face1 replies◆ premiumWhen a drug name or a Hindi word splits into nine subword tokens, you pay in cost, context, and accuracy. Adding tokens is easy and adding them well is not. Here is the tradeoff.Open full answer →
72How do you evaluate generative output quality (text and images) when there's no single correct answer?▼hardOpenAIBlack Forest LabsGoogle DeepMind1 replies◆ premiumFor open-ended generation there's no ground-truth string to match, so accuracy is meaningless. The field relies on a layered mix of automatic, model-based, and human metrics. Here is how to assemble a credible eval.Open full answer →
73How do you curate and filter a supervised fine-tuning (SFT) dataset, and why does a smaller clean set often win?▼hardAnthropicMetaHugging Face1 replies◆ premiumA few thousand carefully chosen examples can beat a million scraped ones. The signal is knowing which filters matter, how you gauge example quality, and why diversity beats raw volume.Open full answer →
74What is reward-model overoptimization, and how do you detect and bound it during RLHF?▼hardOpenAIAnthropicGoogle DeepMind2 replies◆ premiumPush PPO hard enough and true quality peaks then declines while the reward keeps climbing. The signal is knowing the Gold-vs-proxy gap, the KL budget that bounds it, and how you actually measure when to stop.Open full answer →
76DPO trained cleanly but the model got worse. What are DPO's real failure modes?▼hardAnthropicCohereHugging Face1 replies◆ premiumDPO is simple and stable, but it can drive down the probability of chosen responses, overfit the preference margin, and magnify length bias. The signal is naming these and the variants that fix each.Open full answer →
77What is RLVR (reinforcement learning with verifiable rewards), and why does it work for reasoning models?▼hardOpenAIGoogle DeepMindMeta1 replies◆ premiumSwap a learned reward model for a checker that returns right-or-wrong, and reward hacking largely vanishes. The signal is why verifiable rewards beat learned ones for math and code, and where they break.Open full answer →
78Compare distillation recipes for LLMs: hard-label SFT, on-policy logit matching, and rejection sampling.▼hardGoogleMetaHugging Face1 replies◆ premiumDistillation is not a single method. The signal is knowing when to match logits versus train on generated text, why on-policy distillation beats off-policy, and how reasoning models are distilled.Open full answer →
79Your preference data has low annotator agreement and noisy labels. How do you measure and fix preference-data quality?▼hardScale AIAnthropicOpenAI1 replies◆ premiumA reward model can only match the quality of its labels, and human preference labels arrive noisy and inconsistent. The signal is measuring inter-annotator agreement and the concrete steps that raise label quality.Open full answer →
80How do you choose the data mixture for pretraining an LLM, and what does domain reweighting buy you?▼hardGoogle DeepMindMetaMistral1 replies◆ premiumThe proportions of web, code, books, and math in pretraining quietly set downstream skills. The signal is knowing how mixtures get chosen, why upsampling helps, and how methods like DoReMi automate it.Open full answer →
81How do you do continued pretraining to adapt an LLM to a new domain without forgetting general ability?▼hardMetaDatabricksSnowflake1 replies◆ premiumContinued pretraining adds domain knowledge that fine-tuning cannot, yet done carelessly it wrecks general ability. The signal is the replay ratio, learning-rate rewarming, and how you measure forgetting.Open full answer →
83How do you detect and prevent benchmark contamination, and why are public LLM leaderboards often inflated?▼hardOpenAIGoogle DeepMindHugging Face1 replies◆ premiumWhen a benchmark leaks into pretraining, the score measures memorization rather than ability. The signal is the detection methods (n-gram overlap, canaries, perturbation tests) and why fresh held-out evals matter.Open full answer →
85How do you train a reward model from preference data, and what are the key design choices?▼hardOpenAIAnthropicCohere1 replies◆ premiumA reward model converts pairwise preferences into a scalar signal RLHF can optimize. The signal is the Bradley-Terry loss, the base-model and head choices, and how you validate it before trusting it.Open full answer →
86How does RLAIF use AI feedback to scale alignment, and what are its pitfalls versus human feedback?▼hardAnthropicGoogle DeepMindOpenAI1 replies◆ premiumBy swapping costly human labels for an LLM's preferences, RLAIF scales cheaply but carries over the labeler model's biases. What matters is how AI feedback gets gathered and where it silently breaks down.Open full answer →
88What is an attention sink, and how does StreamingLLM use it for endless generation?▼hardMetaMITNVIDIA2 replies◆ premiumEvict the oldest tokens to cap the KV cache and the model falls apart. Retain only the first few tokens and it keeps generating forever. What matters is grasping why those opening tokens behave as an attention sink.Open full answer →
90How do you compress the KV cache at inference, and what does each method trade off?▼hardNVIDIAGoogleMicrosoft1 replies◆ premiumAt long context it is the KV cache, not the weights, that saturates the GPU. What matters is naming the levers (quantization, token eviction, head sharing, low-rank) and the quality cost of each.Open full answer →
91What is PagedAttention, and why did it transform LLM serving throughput?▼hardNVIDIAAWSMicrosoft1 replies◆ premiumIn naive LLM serving most GPU memory bleeds away to KV-cache fragmentation. PagedAttention adapts virtual memory paging to win it back. What matters is explaining the fragmentation problem and how blocks resolve it.Open full answer →
93GPTQ vs AWQ: how do these post-training quantization methods differ, and when do you pick each?▼hardNVIDIAHugging FaceAWS1 replies◆ premiumBoth compress an LLM to 4-bit weights, yet they choose what to protect in very different ways. What matters is GPTQ's error-correcting solve versus AWQ's activation-aware scaling, and the calibration each demands.Open full answer →
95What is FP8, and how does it differ from INT8 for LLM training and inference?▼hardNVIDIAGoogle DeepMindMicrosoft2 replies◆ premiumFP8 underpins modern H100-class training and serving. What matters is knowing the two FP8 variants, why a floating format beats INT8 on dynamic range, and where scaling still counts.Open full answer →
97How would you evaluate a coding agent, and why is a single SWE-bench score not enough to trust it?▼hardOpenAIAnthropicCognition◆ premiumCandidates who cite one leaderboard number fail the follow-up. The interviewer wants you to name what SWE-bench measures, what it cannot (long-horizon multi-file refactors, real tool use, business logic), and which complementary benchmarks close those gaps.Open full answer →
99How does a vision-language model connect an image encoder to an LLM, and where does it fail?▼hardOpenAIGoogle DeepMindMeta2 replies◆ premiumVLMs such as GPT-4V and LLaVA attach a vision encoder to a language model through a projector. The signal is the image-tokens-as-prefix design, the alignment training, and the resolution and hallucination failure modes.Open full answer →
100How do audio and speech LLMs work, and how do discrete audio tokens differ from text tokens?▼hardOpenAIGoogle DeepMindMeta1 replies◆ premiumSpeech LLMs either transcribe to text or model audio straight away as discrete tokens. The signal is the semantic-vs-acoustic token split and why end-to-end audio models outperform ASR-plus-LLM pipelines on latency and prosody.Open full answer →
102You set temperature to 0 and send the same prompt twice, and the outputs differ. Why, and when does it matter?▼hardAnthropicOpenAIDatabricks◆ premiumTemperature 0 is not the same as deterministic, and the reason lives in the GPU kernels, not the sampler. What gets scored is naming the batch-invariance problem and knowing which fixes are real versus placebo.Open full answer →
103How do diffusion language models work, and when would you use one over an autoregressive LLM?▼hardGoogleOpenAICohere◆ premiumAutoregressive models commit one token at a time, left to right. Diffusion language models generate the whole sequence at once and refine it over several denoising steps, which buys parallel decoding and global editing but has not yet caught the frontier. The signal is knowing the tradeoff, not just the buzzword.Open full answer →
111Your VLM answers single-image questions well but falls apart on 50-page documents. How do you fix it?▼hardOpenAIAnthropicGoogle DeepMind◆ premiumThe instinct is to blame the vision encoder. It is a token-budget problem, and the fix is to retrieve pages before you look at them. What separates a strong answer is knowing which question types page retrieval quietly cannot answer.Open full answer →
112What is a Recursive Language Model, and when would you use one instead of long context or RAG?▼hardAnthropicOpenAIGoogle DeepMind◆ premiumAn emerging alternative to stuffing the window or building an index: keep the context outside the prompt and let the model write code to inspect it, recursing into the pieces. Knowing when it does not pay is most of the score.Open full answer →
122How do you merge or compose multiple LoRA adapters, and when does it break?▼hardHugging FacePredibaseNVIDIA◆ premiumMerging one adapter is a single matrix add. Merging four is where careers get interesting: the low-rank updates were each trained as if the others did not exist, and they collide. Here is what actually works and when to route instead.Open full answer →
123How would you adapt an LLM to a specialist domain like law or medicine, end to end?▼hardGoogleMicrosoftIBM◆ premiumThe staged recipe is the easy half. The half that sinks real projects is data licensing, an evaluation bar that needs actual domain experts, and knowing which parts of the problem fine-tuning cannot solve at all.Open full answer →
124How do you keep a deployed LLM current over months without retraining it from scratch?▼hardOpenAIDatabricksScale AI◆ premiumMost staleness complaints are not model problems, and the engineer who says so first wins the round. Here is which changes belong in the index, which belong in the weights, and the lifecycle machinery that keeps months of refreshes from eroding the model.Open full answer →
133How do you build video understanding with a VLM (frame sampling, temporal reasoning, long video)?▼hardGoogle DeepMindOpenAIMeta◆ premiumVideo breaks a VLM on arithmetic before it breaks it on vision: one frame per second of a ten-minute clip is hundreds of thousands of image tokens. Frame selection is not preprocessing, it is the architecture, and the strongest systems index the audio first.Open full answer →
134How do you fine-tune a vision-language model, and what do you freeze?▼hardOpenAIGoogle DeepMindMeta◆ premiumA VLM is three parts and the interview is entirely about which ones you train. The staged recipe, why the vision encoder almost always stays frozen, and the silent failure where your model learns to answer from the text prior and never looks at the image.Open full answer →
135When should a request hit a reasoning model, and how do you stop it from overthinking?▼hardOpenAIAnthropicGoogle◆ premiumMost candidates answer 'use the reasoning model for hard problems' and stop. The interviewer wants it framed as an eval and a budget problem: how you prove the extra thinking tokens paid off, and what you do when the model talks itself out of a correct answer.Open full answer →
01Design a production RAG system over 10M documents serving ~1,000 QPS at sub-second latency.▼hard★ EssentialOpenAIAnthropicGlean3 repliesunlockedOne of the most common AI, ML, and GenAI design rounds. Sketching embed-retrieve-generate is easy; the signal lives in chunking, hybrid retrieval, the rerank/latency tradeoff, and how you prove it works. Here is the structure that scores.Open full answer →
02When do you build an agent instead of a single LLM call, and how do you keep a multi-step agent reliable?▼hard★ EssentialAnthropicOpenAISierra1 repliesunlockedAgents get reached for too often. A strong answer pushes past the hype: most tasks are better served by a single structured call, and agents pay off only under particular conditions. Here is when one is worth it and how to stop it from compounding errors.Open full answer →
04How do you evaluate a RAG system end to end when you have no single ground-truth answer?▼hard★ EssentialOpenAICohereGlean2 repliesunlockedMost RAG systems ship without genuine evaluation, which is why most of them quietly degrade. The signal is breaking evaluation into retrieval and generation, and scoring faithfulness apart from relevance. Here is the framework that makes RAG improvements measurable.Open full answer →
05Design multi-tenancy and access control for a RAG system serving many enterprise customers.▼hardGleanMicrosoftDatabricks2 repliesunlockedEnterprise RAG breaks on isolation, not on retrieval quality. The signal is enforcing tenant and document-level permissions server-side, at retrieval time, so the model can never surface data a user is not allowed to see. Here is the design that survives a security review.Open full answer →
06Context windows are now huge. When do you just stuff everything in context instead of building RAG?▼hardOpenAIAnthropicGoogle1 repliesunlockedA 2025-2026 question that trips up people clinging to dogma in either direction. The signal is a cost, latency, accuracy, and scale tradeoff, plus knowing the 'lost in the middle' failure of long context. Here is the framework for deciding.Open full answer →
09When do you use a multi-agent system, and what orchestration patterns and pitfalls matter?▼hard★ EssentialAnthropicOpenAICognition1 repliesunlockedMulti-agent is the pattern most often reached for without cause in AI today. The signal is holding back unless the task genuinely calls for specialization or parallelism, knowing the supervisor and handoff patterns, and grasping why coordination magnifies failure.Open full answer →
10How do you manage memory and context for a long-running conversational agent?▼hard★ EssentialAnthropicOpenAISierra2 repliesunlockedConversations and agent tasks grow past the context window, and the naive 'stuff the whole history' approach breaks on cost, latency, and lost-in-the-middle. The signal is a tiered memory design: recent buffer, summarized mid-term, retrieved long-term.Open full answer →
11What is query transformation in RAG (HyDE, decomposition, step-back), and when does each help?▼hardCohereGleanMicrosoft1 replies○ sign inRetrieval quality is bounded by the query, and raw user queries are frequently poor for search. The signal is knowing the techniques that rewrite the query ahead of retrieval and which failure each one fixes.Open full answer →
12What is GraphRAG, and when does it beat traditional vector RAG?▼hardMicrosoftGleanDatabricks1 replies○ sign inVector RAG quietly breaks on two query shapes: multi-hop chains and global 'what are the themes' questions. The signal is knowing precisely what the graph gives you and the construction cost it demands.Open full answer →
13What is Self-RAG / adaptive retrieval, and how does the model decide when to retrieve?▼hardCohereOpenAIGlean1 replies○ sign inRetrieving every time is wasteful and occasionally harmful; retrieving never leads to hallucination. Self-RAG turns retrieval into a decision the model controls, then critiques what came back. The signal is the retrieve-on-demand plus self-critique loop.Open full answer →
18Your RAG system retrieves contradictory information from different documents. How do you handle conflicts?▼hardGleanMicrosoftDatabricks2 replies○ sign inReal corpora contradict themselves (old versus new policy, different teams), and naive RAG quietly picks one or fuses them into a wrong answer. The signal is spotting conflict and resolving it through recency, authority, and transparency.Open full answer →
23How do you let an AI agent execute code safely (sandboxing)?▼hardOpenAIAnthropicCognition1 replies◆ premiumCode-execution agents are powerful and risky: arbitrary model-generated code runs on your infrastructure. The signal is genuine isolation (containers/VMs), resource limits, and network/filesystem restrictions, not 'trust the model.' Here is the answer.Open full answer →
26How do you evaluate an AI agent, beyond just checking the final answer?▼hardAnthropicOpenAISierra2 replies◆ premiumAgents fail in the middle, not only the end, so final-answer-only scoring conceals the real problems and rewards lucky paths. The signal is evaluating the whole trajectory and pinpointing where it broke. Here is the answer.Open full answer →
30What is multimodal RAG, and how does it differ from text-only RAG?▼hardGoogleMicrosoftCohere1 replies◆ premiumReal documents carry images, charts, and tables, not only text, and text-only RAG quietly drops them. The signal is knowing the two retrieval approaches and why the generator has to change too. Here is the answer.Open full answer →
32How do you build a computer-use agent (one that controls a screen/browser), safely and reliably?▼hardAnthropicOpenAIGoogle1 replies◆ premiumA computer-use agent operates a real browser or desktop via screenshots and clicks. The signal is the perceive-decide-act loop together with the containment for an agent that can click, buy, or delete anything. Here is the answer.Open full answer →
34How do you implement guardrails for an autonomous agent to prevent harmful or irreversible actions?▼hardAnthropicOpenAISierra1 replies◆ premiumAn agent that performs actions is far riskier than one that only talks. The signal is action-level guardrails: least privilege, argument validation, human approval for irreversible actions, and a blast-radius mindset. Here is the answer.Open full answer →
37How do you handle multi-hop questions in RAG (questions needing several pieces of evidence)?▼hardGoogleMicrosoftCohere1 replies◆ premiumSingle-shot retrieval breaks on questions that chain facts ('who directed the highest-grossing film of 2019?'). The signal is decomposing or iterating retrieval rather than retrieving once, and guarding against errors compounding across hops. Here is the answer.Open full answer →
39What is late interaction (ColBERT), and how does it sit between bi-encoders and cross-encoders?▼hardGoogleCohereMicrosoft2 replies◆ premiumLate interaction reaches cross-encoder-like quality with near-bi-encoder scalability. The signal is the per-token embeddings plus MaxSim matching that earns you the middle ground, and understanding what it costs. Here is the answer.Open full answer →
45What is agentic RAG, and how does it differ from standard (single-shot) RAG?▼hard★ EssentialAnthropicMicrosoftCohere1 replies◆ premiumStandard RAG retrieves once and generates; agentic RAG makes retrieval an iterative, reasoning-driven loop. The signal is the agent deciding whether, what, and when to retrieve, then re-retrieving until the evidence holds.Open full answer →
48What is late chunking, and how does it differ from contextual retrieval?▼hardCohereJinaMicrosoft1 replies◆ premiumLate chunking reverses the usual order of operations to solve the lost-context problem with zero additional LLM calls. Everything hinges on which step runs first. Here is the answer.Open full answer →
49Your vector index won't fit in RAM at a billion vectors. How do you choose between HNSW, IVF-PQ, and disk-based ANN?▼hardGleanPineconeAWS1 replies◆ premiumAt a billion vectors the index choice is a memory budget question before it's a recall question. Flat search is off the table, HNSW may not fit, and PQ swaps recall for RAM. Here is the call a staff engineer makes on the whiteboard.Open full answer →
50Off-the-shelf embeddings retrieve poorly on your domain. How do you improve retrieval accuracy?▼hardCohereGleanHarvey2 replies◆ premiumA model that leads MTEB can still stumble on your jargon-heavy corpus, and most teams reach straight for the costly fix. There is a ladder, and the cheap rungs are the ones people skip. Here is the order to climb it.Open full answer →
52Your agent loops forever or never finishes the task. How do you bound and control agent execution?▼hardCognitionSierraOpenAI2 replies◆ premiumAn agent that retries the same failed action 40 times means a runaway bill and a stuck user. Termination is something you build into the harness, not something the model reliably decides. Here is the control layer.Open full answer →
53A tool your agent depends on returns errors or garbage. How do you make the agent robust to tool failures?▼hardSierraDecagonCognition1 replies◆ premiumReal tools time out, rate-limit, and hand back malformed JSON. An agent that assumes every call succeeds is a demo, not a product. Here is the error-handling layer that keeps it running in production.Open full answer →
55Your retriever misses the relevant document entirely. How do you debug and fix low recall?▼hardGleanCohereDatabricks2 replies◆ premiumWhen the right answer isn't even in the top-50, the generator can't rescue you. Low recall has a short list of usual suspects. Here is the order to check them so you fix the cause, not a symptom.Open full answer →
57Your multi-agent system fails silently and you can't tell which step broke. How do you trace and debug it?▼hardCognitionSierraDecagon2 replies◆ premiumWhen a chain of LLM calls and tools yields a wrong final answer, 'the model was bad' is not a diagnosis. You need visibility into every step. Here is the tracing layer that turns a black box into something debuggable.Open full answer →
58Your RAG system aces your eval set but fails on real user queries. How do you close the gap?▼hardGleanPerplexityHarvey1 replies◆ premiumA 90% eval score alongside angry users means your eval set doesn't resemble reality. The fix is to make evaluation follow production, not the reverse. Here is how.Open full answer →
61Build a customer-support agent over a fake product/SQL database: tool-calling, retrieval, and a control loop.▼hardSierraDecagonOpenAI2 replies◆ premiumA live-coding round that tells apart engineers who have shipped agents from those who have only read about them. Interviewers want a genuine plan-act-observe loop, tools that query a real SQL database, guardrails that block the obvious failures, and a concrete evaluation plan, rather than one prompt masquerading as an agent.Open full answer →
63How do you operate a multi-vector (ColBERT-style) index in production without it blowing up storage?▼hardGoogleCohereMicrosoft2 replies◆ premiumLate interaction keeps one vector per token, so a corpus that fit in a few GB as single vectors can swell 100x. Interviewers want to see you know the compression and indexing tricks (centroids, residuals, PLAID) that make multi-vector retrieval shippable.Open full answer →
65When does HyDE hurt retrieval, and what variants fix its failure modes?▼hardCoherePerplexityMicrosoft2 replies◆ premiumHyDE produces a fake answer to embed, which helps on vague queries but actively hurts on factual or out-of-domain ones. Interviewers want to hear you name precisely when the hypothetical document misleads retrieval and which multi-draft and hybrid variants recover.Open full answer →
66How do you build RAG over a SQL database (text-to-SQL) when the answer lives in rows, not documents?▼hardSnowflakeDatabricksGoogle1 replies◆ premiumVector search over rows is the wrong tool when the user asks for a count or an aggregate. Interviewers want to see you retrieve the right schema, generate validated SQL, and know when to query the database instead of embedding it.Open full answer →
67How do you build RAG over a large code repository so an agent can answer questions and edit code?▼hardCognitionGitHubAnthropic2 replies◆ premiumSplitting source files every 500 characters slices functions in half and wrecks retrieval. Interviewers want to see you chunk on syntax, retrieve by symbol and dependency, and blend lexical exact-match with semantic search the way code search actually needs.Open full answer →
68How do you do incremental indexing for a RAG system with constant document churn, without a nightly full rebuild?▼hardGleanDatabricksMicrosoft1 replies◆ premiumRe-embedding 10M documents nightly is wasteful when only 0.5% changed. Interviewers want to see you upsert by stable id, handle deletes and tombstones in an ANN index, and compact before fragmentation tanks recall and latency.Open full answer →
69How do you verify that an answer's citations actually support its claims (grounding verification)?▼hardAnthropicPerplexityGlean1 replies◆ premiumAn LLM can cite a source that does not say what the answer claims. The signal is verifying claim-by-claim entailment against the cited text, not merely that a citation marker exists, and knowing what to do when grounding fails.Open full answer →
72How do you tune the fusion weights between lexical and vector retrieval, RRF k versus a learned alpha?▼hardCohereGleanAWS1 replies◆ premiumHybrid retrieval only beats either method when the fusion is tuned. The signal is knowing why you cannot simply add BM25 and cosine scores, how RRF's k constant behaves, and when a learned weight beats rank fusion.Open full answer →
73When do you fine-tune a reranker on your own data, and how do you build the training set?▼hardCohereGleanMicrosoft1 replies◆ premiumAn off-the-shelf cross-encoder is general; your domain carries jargon and relevance rules it never encountered. The signal is knowing when fine-tuning pays off, how to mine hard negatives, and how to avoid training a reranker that merely memorizes your retriever's mistakes.Open full answer →
74How do you migrate to a new embedding model on a live 50M-vector index without downtime or quality regressions?▼hardGleanDatabricksAWS2 replies◆ premiumA better embedding model is worthless if old and new vectors share an index, because their spaces are incompatible. The signal is the dual-index re-embed-then-cutover plan, the cost math, and how to prove the new model is actually better before you flip.Open full answer →
75What are Tree-of-Thoughts and LATS, and when is search-based planning worth the cost?▼hardGoogle DeepMindAnthropicOpenAI1 replies◆ premiumLinear agents lock into one path and can't backtrack. Tree-of-Thoughts and LATS add search over reasoning paths. The signal is knowing what they buy, what they cost, and when a cheaper loop wins.Open full answer →
76Design the memory architecture for an agent that runs for weeks across thousands of interactions.▼hardAnthropicOpenAISierra2 replies◆ premiumA context window is not memory. Real agents need a storage architecture: working buffer, episodic recall, and consolidated facts. The signal is the read/write paths and how you keep memory from decaying.Open full answer →
78What protocols govern how agents hand off work, and what makes multi-agent coordination break?▼hardGoogleAnthropicMicrosoft1 replies◆ premiumMulti-agent systems coordinate through handoffs and shared state. The signal is knowing the orchestration topologies, what a clean handoff protocol carries, and why naive multi-agent often loses to a single good agent.Open full answer →
79Beyond basic tools, what advanced MCP patterns matter: resources, prompts, sampling, and roots?▼hardAnthropicMicrosoftOpenAI1 replies◆ premiumMost people know MCP exposes tools. The deeper signal is the complete primitive set (resources, prompts, sampling, roots) and the patterns: server composition, sampling for nested LLM calls, and scoping access safely.Open full answer →
80How do you evaluate an agent's trajectory and tool-use accuracy, not just its final answer?▼hardAnthropicOpenAIGoogle DeepMind1 replies◆ premiumFinal-answer accuracy conceals how an agent got there. The signal is trajectory-level metrics: tool-selection and argument accuracy, step efficiency, and matching against reference paths, plus when exact-match is the wrong yardstick.Open full answer →
81Why do agents fail on long-horizon tasks, and how do you keep reliability up over many steps?▼hardAnthropicOpenAIGoogle DeepMind2 replies◆ premiumPer-step accuracy looks fine, yet a 50-step task fails. The signal is grasping compounding error and the techniques (decomposition, verification, checkpointing) that keep long-horizon agents from collapsing.Open full answer →
84An agent reads untrusted web content and tool output. How do you defend against prompt injection?▼hardAnthropicOpenAIGoogle1 replies◆ premiumAny content an agent reads can smuggle in instructions that hijack it. The signal is knowing why filtering can't fully solve injection and which containment controls actually bound the damage when it succeeds.Open full answer →
86What makes browser and computer-use agents unreliable, and how do you make them robust?▼hardAnthropicOpenAIGoogle DeepMind2 replies◆ premiumScreen-driving and browser agents break in ways chat agents never hit: stale DOM, pages that keep shifting, misplaced clicks. What interviewers watch for is the grounding and reliability methods that move a flaky demo toward something dependable.Open full answer →
88How does metadata filtering work in a vector database, and why can a selective filter destroy your recall?▼hardPineconeWeaviateDatabricks◆ premiumEvery RAG design says 'just filter by tenant_id.' Almost nobody can explain why that one line can quietly cut recall in half. The answer is in what the filter does to the ANN graph.Open full answer →
89Your agent calls two tools and gets conflicting answers. How does it decide which to trust?▼hardAnthropicSierraSalesforce◆ premiumThe CRM says the balance is $0 and the ledger says $412. An agent left to its own devices will average them into something confident and wrong. Designing the precedence before the model has to guess is the whole answer.Open full answer →
92An auditor asks why your assistant gave that answer three months ago. How do you version a knowledge base?▼hardBloombergDatabricksMicrosoft◆ premiumFreshness and reproducibility pull in opposite directions, and almost every team builds only for freshness. A pointer into a mutable index is not a record. Here is what an auditable knowledge base actually requires.Open full answer →
94Your vector index does not fit in RAM. Explain scalar and binary quantization with rescoring.▼hardPineconeQdrantWeaviate◆ premiumfloat32 is far more precision than ranking needs. int8 is close to free, binary is 32x smaller, and the difference between a working binary index and a recall disaster is one word: rescoring.Open full answer →
95How do you design state and checkpointing for an agent that runs for an hour and might crash?▼hardAnthropicOpenAITemporal◆ premiumAn hour-long agent run is a distributed workflow wearing an LLM hat. The signal is designing serializable state with step-level checkpoints, and knowing why resume is easy while replaying a side effect is not.Open full answer →
104Claude Code ships with no codebase index while Cursor trains custom embeddings. Which repo-context strategy do you pick, and when?▼hardAnthropicCursor◆ premiumTwo frontier coding agents made opposite bets on the same problem, and both published evidence. Candidates who pick a side on vibes miss what the interviewer wants: the axes that actually decide it, and what each choice costs in staleness, latency, tokens, and infrastructure.Open full answer →
06Implement multi-head self-attention from scratch in NumPy, with a causal mask.▼hard★ EssentialNVIDIAOpenAIAnthropic2 repliesunlockedThe from-scratch implementation that frontier labs and NVIDIA really do ask. Writing it shows you grasp shapes, the scale factor, the causal mask, and how heads split and recombine. Here is a correct, readable implementation plus the follow-ups.Open full answer →
07Implement beam search for a sequence model given a next-token log-probability function.▼hardGoogleNVIDIAMeta1 repliesunlockedBeam search is the decoding algorithm everyone cites and few can code correctly. The signal is keeping k hypotheses by cumulative log-prob, adding logs (not multiplying probs), and handling completed sequences and length. Here is a correct implementation and the tradeoffs.Open full answer →
14How do you recognize and solve a dynamic-programming problem? Walk through one end to end.▼hard★ EssentialGoogleMetaAmazon2 replies○ sign inDP feels like pattern-matching magic until you have a method. The signal is a repeatable drill: spot overlapping subproblems and optimal substructure, define the state and recurrence, then memoize or tabulate. Here is that method applied to a worked example.Open full answer →
17Implement Byte Pair Encoding (BPE): train the merges and tokenize text.▼hardOpenAICohereGoogle1 replies○ sign inBPE powers GPT-style tokenizers, and coding it shows you grasp how subword vocabularies get constructed rather than just knowing they exist. What interviewers watch for is the repeated merge of the most common adjacent pair.Open full answer →
20Implement a 2D convolution (the forward pass) from scratch.▼hardNVIDIAGoogleMeta2 replies○ sign inCoding conv2d shows you understand what a CNN layer really computes rather than just being able to name it. Interviewers watch for correct output-shape math, tidy stride and padding handling, and awareness of the im2col trick frameworks actually rely on.Open full answer →
22Implement attention with a KV cache for autoregressive generation.▼hardNVIDIAOpenAIAnthropic2 replies◆ premiumCoding the KV cache shows you understand why decode is efficient: you append the new token's K/V and reuse the rest rather than recomputing. Interviewers look for the append-and-attend-over-cache logic. The implementation follows.Open full answer →
27Trapping Rain Water: how much water is trapped between bars?▼hardGoogleMetaAmazon1 replies◆ premiumA classic that pays off the two-pointer insight over brute force. Interviewers look for realizing that water at each position is capped by the min of the max walls on each side, then computing it in a single pass. The answer follows.Open full answer →
33Edit distance (Levenshtein): the 2D dynamic programming pattern.▼hardGoogleMetaAmazon1 replies◆ premiumEdit distance is the archetypal 2D string DP, powering spell-check, diff, and fuzzy matching. What interviewers watch for: naming the subproblem and the insert/delete/replace recurrence. Here is the answer.Open full answer →
36Serialize and deserialize a binary tree.▼hard★ EssentialGoogleMetaAmazon2 replies◆ premiumTurning a tree into a string and reconstructing it faithfully rests on one choice most candidates overlook. Skip it and the structure turns ambiguous. Here is the answer and the interview-grade reasoning.Open full answer →
48Longest Increasing Subsequence (LIS): the O(n log n) patience-sorting trick.▼hardGoogleMetaAmazon1 replies◆ premiumLIS has an obvious O(n²) DP and a clever O(n log n) solution that catches people off guard. Interviewers look for the patience-sorting/binary-search approach that maintains 'tails'. Both appear below.Open full answer →
49Minimum Window Substring: the variable-size sliding window.▼hardGoogleMetaAmazon1 replies◆ premiumMinimum Window Substring is the hard sliding-window problem that probes expand-and-contract with a character-count map. Interviewers look for the grow-to-valid then shrink-to-minimal pattern, verified in O(1) per step.Open full answer →
57Median of Two Sorted Arrays in O(log(m+n)).▼hardGoogleMetaAmazon2 replies◆ premiumThis notoriously hard problem demands better than the O(m+n) merge: an O(log) binary search on the partition. Interviewers look for binary-searching the split point so the left halves stay below the right halves. The answer follows.Open full answer →
61Implement multi-head attention from scratch.▼hardOpenAIGoogleNVIDIA2 replies◆ premiumSingle-head attention shows up often; multi-head layers on the split-into-heads, attend-per-head, concatenate pattern. What gets scored is the reshape into heads plus a sharp explanation of why several heads help. Here is the implementation.Open full answer →
62Sliding Window Maximum (monotonic deque).▼hardGoogleMetaAmazon2 replies◆ premiumComputing the max of each size-k window the obvious way costs O(n*k). The move that cuts it to O(n) is a monotonic deque of indices, and why it stays linear catches most candidates off guard.Open full answer →
70Deduplicate near-identical documents in a huge corpus. Implement MinHash for fast similarity.▼hardGoogleScale AIDatabricks2 replies◆ premiumComparing all pairs across a million documents is a trillion comparisons. MinHash estimates Jaccard similarity from a tiny signature, and LSH converts dedup into a near-linear scan. Here is the implementation.Open full answer →
72Implement Rotary Position Embedding (RoPE) applied to query and key vectors.▼hardMetaMistralGoogle DeepMind2 replies◆ premiumRoPE is why modern LLMs extrapolate to longer contexts, and it works by rotation, not addition. Coding it shows you truly understand how position enters attention. Here is the implementation.Open full answer →
78Sample from a large weighted distribution in O(1) per draw (the alias method). Where do you need it?▼hardMetaGooglePinterest1 replies◆ premiumNegative sampling in word2vec and recommendation pulls millions of weighted samples; running each at O(log n) becomes a bottleneck. The alias method turns each draw into O(1) after an O(n) setup. Here it is.Open full answer →
79Implement consistent hashing, and explain where it matters for sharding embeddings or routing requests.▼hardPineconeAWSMeta2 replies◆ premiumWhen you shard a vector index or route requests across model replicas, naive 'hash mod N' reshuffles everything the moment N changes. Consistent hashing moves only a small fraction. Here is the implementation.Open full answer →
86Find the maximum path sum in a binary tree, where a path may start and end anywhere.▼hardMetaGoogleAmazon1 replies◆ premiumNegative subtrees, a path that bends through any node, and a return value distinct from the answer you track: this problem stuffs three traps into one DFS. Here is the clean O(n) solution and the reasoning that holds up under follow-ups.Open full answer →
91Given a sorted list of words in an alien language, derive the order of its characters.▼hardGoogleMetaAmazon1 replies◆ premiumThe words encode a partial order among characters. Convert each adjacent pair into a directed edge, then topologically sort. The traps are the prefix edge case and spotting contradictions. Here is the full solution with cycle handling.Open full answer →
92Find the length of the shortest transformation sequence from one word to another (Word Ladder).▼hardAmazonMetaGoogle2 replies◆ premiumTreat each word as a node and one-letter edits as edges: the shortest ladder becomes a shortest path in an unweighted graph, which means BFS. The detail that decides pass or fail is producing neighbors in O(26 * L) without scanning the entire dictionary. Here is the pattern.Open full answer →
94Implement a basic calculator that evaluates a string with +, -, *, /, and parentheses.▼hardGoogleMetaAmazon2 replies◆ premiumWorking out arithmetic with precedence and nested parentheses is a parsing task, and a single stack manages both neatly. The traps are operator precedence, multi-digit numbers, and the sign of truncated division. Here is a one-pass solution.Open full answer →
95Build an in-memory key-value database, then extend it across stages: TTL, transactions, snapshots.▼hardAnthropicOpenAIGoogle1 replies◆ premiumThe classic multi-round build screen: a plain key-value store that gains new requirements at each stage (TTL, transactions, scans). The signal is not stage 1, it is whether your code takes on stage 4 without a rewrite. Here is how to design for it.Open full answer →
96Implement a GPU credit allocation manager: issue credits, track usage, enforce limits and expiry.▼hardOpenAIAnthropicNVIDIA1 replies◆ premiumOpenAI's signature build screen: a credit ledger that issues GPU-hours, spends them, and lets unused grants lapse in issue order. The trap is charging against the right grant first. Here is the FIFO-by-expiry design that holds up through every follow-up.Open full answer →
97Implement an in-memory key-value store with transactions: begin, commit, rollback, and nesting.▼hardAnthropicOpenAIGoogle2 replies◆ premiumA classic build screen: a key-value store whose writes inside a transaction can be committed or discarded, with transactions that nest. The trap is mutating the base store directly. Here is the overlay-stack design that keeps rollback O(1).Open full answer →
100Refactor a 500-line function that parses, computes, and prints into unit-testable pieces without changing behavior. Walk me through it.▼hardOpenAIAnthropic◆ premiumMost candidates start rewriting. The interviewer is grading whether you isolate pure logic from side effects before you touch a line, because that is the difference between a safe refactor and a silent behavior change.Open full answer →
103Build a spreadsheet cell-dependency engine: evaluate formulas and detect circular references.▼hardSierraGoogleApple2 replies◆ premiumSierra's signature build screen: cells hold values or formulas that reference other cells, and editing one has to recompute its dependents without infinite loops. The signal is the dependency graph plus cycle detection. Here is the topological-eval design.Open full answer →
106Segment tree: range queries and point updates for sum, min, or max in O(log n).▼hardGoogleMetaAmazon2 replies◆ premiumA segment tree serves any associative range query (sum, min, max, gcd) with point or range updates in O(log n). The signal is the recursive split into covered, disjoint, and partial nodes, plus lazy propagation for range updates. Here is the answer.Open full answer →
111KMP string matching: find a pattern in O(n+m) using the prefix-function failure links.▼hardGoogleAmazonMeta2 replies◆ premiumKMP matches a pattern in linear time by precomputing a failure function that skips redundant comparisons rather than backtracking the text. The signal is what the prefix function actually holds and why the text pointer never moves backward. Here is the answer.Open full answer →
115Matrix exponentiation: compute the nth term of a linear recurrence in O(log n).▼hardGoogleAmazonMicrosoft1 replies◆ premiumMatrix exponentiation evaluates linear recurrences like Fibonacci at index n in O(log n) by raising a transition matrix to the nth power through binary exponentiation. The signal is building the transition matrix and squaring it. Here is the answer.Open full answer →
120Implement a Gaussian Mixture Model with EM from scratch: E-step responsibilities, M-step updates.▼hardGoogleMetaNVIDIA2 replies◆ premiumA build-it-yourself check on the EM algorithm and soft clustering. What matters is the pair of alternating steps (responsibilities, then weighted re-estimation), log-sum-exp for numerical stability, and seeing how GMM extends k-means. The code follows.Open full answer →
122Implement a vanilla RNN cell from scratch: forward over a sequence and backprop through time.▼hardGoogleMetaNVIDIA2 replies◆ premiumA build-it-yourself check on recurrent forward passes and backprop through time. What matters is the shared-weight recurrence, summing gradients over timesteps, and articulating the vanishing-gradient problem. The code follows.Open full answer →
123Implement an LSTM cell from scratch: the four gates, the cell state, and why it beats a vanilla RNN.▼hardGoogleMetaNVIDIA1 replies◆ premiumA build-it-yourself check on gated recurrence. What matters is wiring the forget/input/output gates and candidate correctly, keeping cell state distinct from hidden state, and explaining why the additive cell path cures vanishing gradients. The code follows.Open full answer →
126Build a tiny autograd engine from scratch: a scalar Value with backprop over a computation graph.▼hardOpenAIGoogle DeepMindMeta2 replies◆ premiumA build-it-yourself check on how PyTorch actually works under the hood. What matters is assembling a computation graph during the forward pass, local derivatives per op, and a topological-order backward pass that accumulates gradients. Below is a minimal engine.Open full answer →
129Write a JSON parser from scratch. Now make it handle the partial JSON an LLM streams mid-generation.▼hardOpenAIAnthropicDatabricks◆ premiumThe classic recursive-descent exercise with an applied-AI twist: the JSON your model streams stays truncated mid-token for the whole generation. What matters is a clean strict parser plus a small repair layer, not a second parser. The code follows.Open full answer →
133Implement a semantic cache for LLM responses. When is a similar-enough query actually a hit?▼hardOpenAIAnthropicPerplexity◆ premiumThe lookup is three lines of linear algebra. What separates a cache from an incident is where the similarity threshold came from, and the one-token queries ('2023' vs '2024', 'not') that no threshold can catch because the embedding barely moves.Open full answer →
141Detect hallucinations in an answer by extracting claims and checking entailment against the sources.▼hardOpenAIAnthropicGlean◆ premiumAsking a model 'is this answer hallucinated?' barely beats a coin flip. This is the build: claim extraction, a judge forbidden from using world knowledge, a denominator that excludes hedges, and one model call per claim, which decides where the check can run at all.Open full answer →
01Your churn model's AUC jumps from 0.71 to 0.93 after adding a 7-day rolling feature. What now?▼hardAmazonMetaGoogle2 repliesunlockedA 22-point AUC jump is both an opportunity and a red flag. Weaker candidates cheer; sharp ones grow wary and know precisely which leakage checks belong before anything ships.Open full answer →
04Design an A/B test for a model change: power, sample size, significance, and the peeking problem.▼hard★ EssentialMetaGoogleNetflix2 repliesunlockedShipping a model is itself an experiment, and this question tells apart people who run A/B tests from those who p-hack them. The signal is pre-registering the metric, sizing the test, and holding back from peeking.Open full answer →
16Explain the EM algorithm and walk through it for a Gaussian Mixture Model.▼hardAmazonGoogleMicrosoft1 replies○ sign inEM is the classic latent-variable algorithm, and a GMM is how it appears in practice. What interviewers reward is the E-step/M-step alternation, why it is soft clustering where k-means is hard, and the honest caveat that it only reaches a local optimum. Here is the answer.Open full answer →
21How does a Vision Transformer (ViT) work, and when does it beat a CNN?▼hardGoogleMetaNVIDIA1 replies◆ premiumPatches as tokens, global attention from layer one, and a weaker inductive bias than a CNN. What interviewers reward is naming the data regime where each architecture wins and why. Here is the answer interviewers score highest.Open full answer →
22How do diffusion models work, and what do the VAE and U-Net do in latent diffusion (Stable Diffusion)?▼hardGoogleNVIDIAMeta2 replies◆ premiumForward noising is fixed, reverse denoising is learned, and the training loss is a plain noise-prediction regression. What interviewers reward is why that beats a GAN's minimax and what the VAE and U-Net each do in latent space. Here is the answer.Open full answer →
23How do you measure impact when you can't run a clean A/B test (difference-in-differences, synthetic control, IV)?▼hardNetflixMetaAmazon2 replies◆ premiumSenior DS loops test causal reasoning beyond the randomized A/B test. What interviewers reward is naming the quasi-experimental method that fits and stating the single assumption it lives or dies on. Here is the answer for when randomization is off the table.Open full answer →
26What is self-supervised learning, and how do contrastive methods and masked prediction work?▼hardMetaGoogleOpenAI1 replies◆ premiumSelf-supervision is how modern models pretrain on unlabeled data, the engine behind LLMs and modern vision. The signal is the pretext-task idea and the genuine difference between contrastive and masked-prediction objectives.Open full answer →
27How do vision-language models (VLMs) work, and how does CLIP enable cross-modal understanding?▼hardGoogleMetaOpenAI2 replies◆ premiumMultimodal is now table stakes, and this tests whether you understand how images and text reach a shared model. The signal is CLIP's contrastive alignment and how modern VLMs feed image features into an LLM's token space.Open full answer →
30How do GANs work, why is training unstable, and why did diffusion overtake them?▼hardNVIDIAGoogleMeta1 replies◆ premiumGANs shaped generative modeling for years, and interviewers look for the minimax game, the failure modes (mode collapse, instability), and the exact reason diffusion overtook them for images while GANs still lead on speed.Open full answer →
31What are autoencoders and VAEs, and what is the reparameterization trick?▼hardGoogleNVIDIAMeta2 replies◆ premiumAutoencoders and VAEs sit beneath representation learning and generative modeling, including the VAE inside latent diffusion. What matters is the difference between a plain autoencoder and a variational one, and why sampling blocks backprop without the reparameterization trick.Open full answer →
39What are multi-armed bandits, and when do you use them instead of A/B testing?▼hardMetaAmazonNetflix2 replies◆ premiumA bandit learns and optimizes at the same time, moving traffic toward the winning arm during the experiment rather than holding the split fixed like an A/B test. Interviewers look for the explore-exploit tradeoff, the three core algorithms, and a clear sense of when a bandit wins over a clean A/B test.Open full answer →
54What is a Hidden Markov Model, and what does the Viterbi algorithm do?▼hardGoogleAmazonApple1 replies◆ premiumHMMs are the classic probabilistic sequence model behind speech and tagging, and Viterbi is how you decode them. What matters is the hidden-states plus transitions/emissions structure, and that Viterbi is dynamic programming for the single best state path, not a probability.Open full answer →
58How does gradient boosting (XGBoost/LightGBM) work, and why does it dominate tabular ML?▼hard★ EssentialAmazonGoogleMeta1 replies◆ premiumXGBoost and LightGBM win most tabular problems, and interviewers want more than 'it's boosting.' What matters is the fit-to-residuals mechanism plus the engineering (regularization, histograms, second-order) that makes it both fast and accurate.Open full answer →
60What is contrastive / metric learning, and how does it learn good embeddings?▼hardGoogleMetaOpenAI2 replies◆ premiumContrastive learning is how modern embeddings (CLIP, sentence encoders, SimCLR) are actually trained. What matters is the pull-positives-push-negatives objective, the InfoNCE loss, and why the number and hardness of negatives makes or breaks quality.Open full answer →
63How does Bayesian optimization tune hyperparameters, and when is it better than grid/random search?▼hardGoogleAmazonMicrosoft2 replies◆ premiumGrid and random search ignore past results. Bayesian optimization learns from them, and what matters is whether you can explain the surrogate plus acquisition loop and name the exact condition where the sample-efficiency is worth it. Here is the answer.Open full answer →
64What is a Gaussian Process, and when would you use one?▼hardGoogleAmazonMicrosoft1 replies◆ premiumGaussian Processes give predictions with principled uncertainty, which is why they power Bayesian optimization. What matters is the distribution-over-functions intuition, the kernel's role, and naming the O(n cubed) wall. Here is the answer.Open full answer →
65What are the common pitfalls that invalidate an A/B test?▼hardNetflixMetaAmazon2 replies◆ premiumRunning an A/B test is easy; running a valid one is hard. What matters is naming the traps that produce confidently wrong conclusions and the fix for each. Here is the checklist a senior experimenter carries.Open full answer →
66What are Graph Neural Networks (GNNs), and how does message passing work?▼hardGoogleMetaPinterest2 replies◆ premiumGNNs power recommendations, fraud, and molecule modeling by learning over graph structure. What matters is the message-passing mechanism, why k-hop matters, and why you keep them shallow. Here is the answer.Open full answer →
69What are label smoothing and mixup, and why do they help?▼hardGoogleMetaNVIDIA1 replies◆ premiumTwo inexpensive regularizers that cure overconfident classifiers. What proves you understand them is knowing that one softens the target while the other softens the input, and precisely why gentler signals produce calibrated models. Here is the answer.Open full answer →
70What are pointwise, pairwise, and listwise learning-to-rank approaches?▼hardGoogleMetaAmazon2 replies◆ premiumRanking differs from regression: a wrong absolute score is acceptable, a wrong ordering is not. What shows depth is the pointwise/pairwise/listwise breakdown and why pairwise (LambdaMART) remains the practical default. Here is the answer.Open full answer →
71What is the double descent phenomenon, and how does it complicate the bias-variance story?▼hardGoogleOpenAIMeta1 replies◆ premiumClassic bias-variance predicts that larger models eventually overfit, but deep nets keep improving even after they memorize the data. What shows depth is explaining the second descent and why over-parameterized models generalize. Here is the answer.Open full answer →
72What is conformal prediction, and how does it give calibrated uncertainty?▼hardAmazonGoogleMicrosoft2 replies◆ premiumWrap any model and obtain prediction sets with a provable coverage rate, with no distributional assumptions needed. What shows depth is the calibration-set plus nonconformity-score mechanism and exactly what the guarantee does and does not promise. Here is the answer.Open full answer →
73What is survival analysis, and why can't you just use regression for time-to-event?▼hardAmazonGoogleMicrosoft1 replies◆ premiumTime-to-event problems (churn, failure, conversion timing) conceal a twist that quietly biases ordinary regression. What shows depth is naming that twist and choosing the right framing. Here is the answer.Open full answer →
74What is positive-unlabeled (PU) learning, and when do you need it?▼hardAmazonGoogleMeta1 replies◆ premiumPlenty of real problems hand you confirmed positives but never confirmed negatives, only unlabeled data. The shortcut everyone grabs quietly biases the model. What shows depth is naming the regime and its fix. Here is the answer.Open full answer →
79Your A/B test shows the control and treatment groups differ before the treatment even applies. What's wrong?▼hardMetaMicrosoftNetflix1 replies◆ premiumA pre-existing gap between your groups means randomization or instrumentation is broken, and the entire experiment is suspect. Strong candidates spot sample-ratio mismatch immediately. Here is the full diagnosis and the disciplined response.Open full answer →
80Your model is accurate on average but fails badly for one subgroup. How do you find and fix it?▼hardGoogleMetaApple1 replies◆ premiumA 92% aggregate accuracy can mask 60% on the segment that matters most. Averages are exactly where these failures stay buried. Here is how to surface them and the menu of fixes that actually map to the cause.Open full answer →
82Your training data was collected with selection bias. How do you detect it and correct for it?▼hardMetaAmazonGoogle1 replies◆ premiumWhen labels exist only for the cases you already acted on, the model learns a distorted world: strong offline, blind to everyone you never saw. Worse, its own decisions choose the next labels. Here is how to spot it and counter it.Open full answer →
86Your production model decayed. Is it data drift, concept drift, or a pipeline bug, and how do you tell them apart?▼hardDatabricksMetaAmazon2 replies◆ premium'The model got worse' can mean three very different things with three different fixes. Retrain a model that a pipeline bug actually broke and you just bake in garbage. Here is the order to triage it in.Open full answer →
87You need a model but only have a few hundred labeled examples. How do you build one anyway?▼hardScale AIGoogleHugging Face2 replies◆ premiumA small labeled set is the normal place to start, not an excuse. The strong answer is a ladder of techniques that pull signal from unlabeled data, pretrained models, and the labeling budget. Here it is.Open full answer →
88You suspect your training labels are noisy. How do you detect it and train a good model anyway?▼hardScale AIGoogleMeta1 replies◆ premiumMost real datasets carry wrong labels, and they quietly cap your accuracy. Hand-cleaning all of it does not scale. Here is how to surface the bad labels and train robustly around them.Open full answer →
90Your generative image model produces low-diversity or garbled samples. How do you diagnose and fix it?▼hardBlack Forest LabsNVIDIAGoogle DeepMind1 replies◆ premiumGenerative training breaks in distinctive ways: GANs collapse to a handful of outputs, diffusion samples come out noisy or blurry. The symptom points to which knob to turn. Here is the diagnosis.Open full answer →
91You're training embeddings with contrastive/triplet loss. How do you choose pairs, the margin, and negatives?▼hardGoogleMetaCohere2 replies◆ premiumMetric learning succeeds or fails on the pairs you feed it. Random negatives teach almost nothing, and the margin plus the mining strategy determine whether the embeddings are any good. Here is how the choices interact.Open full answer →
92How does interleaving evaluate a ranking change, and why can it beat a standard A/B test?▼hardGoogleNetflixSpotify1 replies◆ premiumIn search and recommendation, A/B tests can be slow and noisy because they pit different users against each other. Interleaving compares two rankers inside the same user's results and spots winners with far less traffic. Here is how.Open full answer →
93How would you build an object detection system that detects and localizes objects in images?▼hardGoogleMetaAmazon2 replies◆ premiumBoxes and labels, not a single tag per image. The signal is picking two-stage versus one-stage from your latency and accuracy budget, knowing what NMS and anchors really do, and reporting mAP correctly. Here is the answer interviewers score highest.Open full answer →
96Explain semantic vs instance segmentation and how Mask R-CNN works.▼hardGoogleMetaNVIDIA1 replies◆ premiumSemantic labels every pixel by class; instance pulls each object apart. The signal is knowing that the first cannot count overlapping objects, why Mask R-CNN adds a mask branch on RoIAlign, and what RoIAlign fixed. Here is the answer.Open full answer →
98Write down the SVM dual, and explain what the Lagrange multipliers and KKT conditions tell you.▼hardGoogleMicrosoftNVIDIA1 replies◆ premiumMost candidates can recite 'maximize the margin'. The dual is where you prove you really understand why only support vectors matter and where the kernel trick originates. Here is the derivation an interviewer wants.Open full answer →
99Your GMM via EM keeps diverging to infinite likelihood or collapsing clusters. What is going on?▼hardGoogleMicrosoftNVIDIA2 replies◆ premiumA Gaussian mixture trained by EM has a well-known trap: one Gaussian shrinks onto a single point and the likelihood races to infinity. Understanding the cause, plus the three standard remedies, tells apart people who merely ran sklearn from those who grasp it.Open full answer →
100When would you use a CRF instead of an HMM for sequence labeling, and why?▼hardGoogleMicrosoftAmazon2 replies◆ premiumBoth label sequences, but one is generative and one is discriminative, and that gap decides whether you can add overlapping features. Here is the comparison that proves you understand the modeling tradeoff, not merely the acronyms.Open full answer →
102How does LightGBM's histogram binning and GOSS make gradient boosting fast, and what do they cost?▼hardMicrosoftAmazonGoogle1 replies◆ premiumXGBoost made boosting practical; LightGBM made it fast. The answer is histogram binning, gradient-based sampling, and leaf-wise growth, each carrying a real tradeoff. Here is what they do and where they hurt.Open full answer →
103Explain MCMC and Metropolis-Hastings: why does the chain sample from the posterior?▼hardGoogleMicrosoftNVIDIA1 replies◆ premiumBayesian inference requires an intractable normalizing constant, and MCMC works around it. The signal is explaining the acceptance ratio, detailed balance, and why you can drop the constant entirely. Here is the answer.Open full answer →
109Compare SMOTE, class reweighting, and focal loss for imbalanced learning. Which do you reach for?▼hardAmazonGoogleMicrosoft2 replies◆ premiumResampling, reweighting, and focal loss tackle class imbalance from different angles, and each carries a real downside. The signal is matching the method to the model and metric, not blindly oversampling. Here is the breakdown.Open full answer →
110Walk me through instrumental variables: what makes an instrument valid, and how do two-stage least squares and LATE work?▼hardUberNetflixMeta1 replies◆ premiumIV is the causal tool people name but cannot defend. The signal is spelling out the two conditions an instrument must meet, why one is testable and one is not, and what 2SLS actually estimates. Here is the answer.Open full answer →
111Explain propensity score methods: matching, weighting (IPW), and the overlap assumption. When do they fail?▼hardMetaAmazonUber2 replies◆ premiumPropensity scores promise to imitate an experiment from observational data. The signal is knowing what they can and cannot fix, the overlap trap, and why IPW blows up. Here is the answer that sets careful candidates apart.Open full answer →
112What is uplift modeling, how does it differ from a response model, and how do you evaluate it without ground-truth labels?▼hardUberNetflixAmazon1 replies◆ premiumA response model predicts who will convert; an uplift model predicts who converts because of the treatment. The signal is the four-quadrant intuition and how you evaluate uplift when an individual's lift is never observed. Here is the answer.Open full answer →
113What is CUPED, why does it shrink experiment variance, and how does it compare to stratification and regression adjustment?▼hardMicrosoftNetflixMeta1 replies◆ premiumCUPED can halve the sample size an A/B test requires without touching validity. The signal is explaining why subtracting a pre-experiment covariate reduces variance yet never biases the estimate. Here is the answer.Open full answer →
114Why does peeking at an A/B test inflate false positives, and how do sequential and always-valid tests fix it?▼hardNetflixUberMicrosoft1 replies◆ premiumChecking an experiment daily and stopping the moment it hits significance can triple your false-positive rate. The signal is knowing why, and the family of methods that make continuous monitoring valid. Here is the answer.Open full answer →
115Your A/B test has interference between users (marketplace, social network). Why does it bias results and how do you fix it?▼hardUberMetaAirbnb1 replies◆ premiumStandard A/B math assumes one user's treatment does not affect another's outcome. In marketplaces and social networks that assumption breaks and your estimate is biased. The signal is naming SUTVA and the right randomization unit. Here is the answer.Open full answer →
116Explain the Kalman filter and state-space models. What are the predict and update steps actually doing?▼hardNVIDIAAppleUber1 replies◆ premiumThe Kalman filter is optimal Bayesian tracking under linear-Gaussian assumptions, and it amounts to two steps repeated forever. The signal is explaining what the gain trades off and when the assumptions break. Here is the answer.Open full answer →
118How do you build anomaly detection for a streaming time series, and how do you handle seasonality and concept drift?▼hardNetflixUberMicrosoft2 replies◆ premiumThreshold alarms page you all weekend yet sleep through Monday's actual outage. What interviewers reward is stripping out seasonality first, matching the detector to the anomaly, and tuning against alert fatigue. Here is the answer that holds up in production.Open full answer →
119Compare fairness metrics (demographic parity, equalized odds, calibration). Why can't you satisfy all of them at once?▼hardGoogleMicrosoftMeta1 replies◆ premiumFairness has no single number, and a well-known result proves the main three cannot hold together. What interviewers reward is defining each metric precisely and explaining the impossibility rather than picking one blindly. Here is the answer.Open full answer →
121Explain integrated gradients for attribution. Why use it over raw gradients, and how do you pick the baseline?▼hardGoogleGoogle DeepMindNVIDIA1 replies◆ premiumRaw gradient saliency maps are noisy and saturate. Integrated gradients cures both with two axioms and a path integral, yet the baseline choice quietly decides the answer. Here is what a careful candidate explains.Open full answer →
124Your lending model only ever learns from applicants it approved. How do you break the feedback loop?▼hardCapital OneAffirmStripe◆ premiumYou observe repayment only for applicants you approved, so your training data is censored by your own past policy and your offline test set is censored the same way. The fix starts with something you must have logged years ago.Open full answer →
03Design a data pipeline that is safe to re-run: idempotent writes, late data, and exactly-once effects.▼hard★ EssentialDatabricksSnowflakeGoogle1 repliesunlockedPipelines fail and retry, so the real question is whether a retry corrupts your data. What interviewers look for is idempotent writes (not 'exactly-once delivery') alongside watermarks for late data. Here is how to keep re-runs safe without double-counting.Open full answer →
04A Spark job that used to finish in minutes now takes hours. How do you diagnose and fix it?▼hardDatabricksSnowflakeMicrosoft2 repliesunlockedThe Databricks-flavored performance question. What interviewers want is a candidate who heads straight for the usual suspects (skew, shuffle, spill) through the Spark UI rather than guessing. Here is the diagnostic order and the fixes that genuinely move the needle.Open full answer →
06Deduplicate events exactly-once over a sliding 7-day window in a high-throughput stream without running out of memory.▼hardDatabricksSnowflakeGoogle2 repliesunlockedA hard streaming-systems question: dedup at high throughput while keeping state bounded. What interviewers reward is a tiered state design (a probabilistic filter ahead of durable state) plus watermark-driven eviction. Here is the architecture that does not OOM.Open full answer →
16Write SQL for a cohort retention analysis (what % of users return in week N after signup).▼hardMetaAmazonNetflix2 replies○ sign inThe classic product-analytics SQL question. The signal is grouping users by signup cohort, deriving each activity's period offset, and counting distinct returners per offset to build the retention triangle.Open full answer →
21How do you join two streams (or a stream to a table) in a streaming system?▼hardDatabricksGoogleMeta2 replies◆ premiumYou cannot wait for all the data, and buffering an unbounded stream will OOM. The signal is windowed joins with watermarks for stream-stream, lookup joins for stream-table, and a clean account of late and out-of-order events.Open full answer →
23What is data skew in a distributed job (Spark), and how do you fix it?▼hardDatabricksAmazonMeta1 replies◆ premiumThe number-one cause of mysteriously slow Spark jobs: one partition handles most of the work while the rest idle. The signal is reading the symptom (a few straggler tasks) and reaching for the right fix, salting, broadcast, or AQE.Open full answer →
29What is a LATERAL join (CROSS APPLY), and when do you need it?▼hardSnowflakeAmazonMicrosoft1 replies◆ premiumA LATERAL join lets a FROM-clause subquery reference columns from the table ahead of it, which a normal join cannot. The signal is spotting the per-row use cases: top-N per group, table functions, unnesting arrays.Open full answer →
34Build an ML training set in SQL with point-in-time-correct feature joins (no future leakage).▼hardUberDoorDashDatabricks2 replies◆ premiumThe most frequent way SQL leaks the future into a training set is a sloppy join to a feature table. The fix is point-in-time correctness, implemented as an as-of join. Here is how to write it.Open full answer →
35Write SQL for a multi-step funnel: what fraction of users complete each step, in order?▼hardMetaAmazonAirbnb2 replies◆ premiumFunnels seem like plain counts until you demand the steps occur in order and within a window. Tallying each step on its own overstates conversion. Here is the ordered-funnel query.Open full answer →
36Find each user's longest streak of consecutive active days in SQL (gaps and islands).▼hardMetaAmazonNetflix1 replies◆ premiumConsecutive-run problems (active streaks, uptime windows, price-stable periods) all boil down to one trick. Once the row-number difference clicks, they collapse to a window function and a group-by.Open full answer →
39Generate ML labels in SQL: did each user churn (no activity in the next 30 days)?▼hardNetflixSpotifyAmazon1 replies◆ premiumDefining the label is half the modeling problem, and the SQL conceals two leakage traps: reaching into the future for features, and a label window not yet fully observed. Here is the correct query.Open full answer →
41Detect feature drift in SQL: compare a feature's distribution between two time periods.▼hardDatabricksMetaStripe2 replies◆ premiumProduction drift monitoring frequently lives in the warehouse, not a fancy tool. Comparing two distributions in SQL with a metric like PSI is a few CTEs. Here is how to compute it.Open full answer →
44Find shortest paths and detect cycles in a graph stored as edges, using a recursive CTE.▼hardSnowflakeDatabricksGoogle1 replies◆ premiumAn org-chart recursion walks a tree, but a general graph has multiple paths and back-edges. The signal is building up the visited path to prune cycles and ranking paths by cost to land the shortest one.Open full answer →
46Explain the difference between RANGE and ROWS window frames, and when named windows help.▼hardSnowflakeDatabricksGoogle2 replies◆ premiumTwo queries that look identical apart from ROWS vs RANGE return different numbers, and most candidates cannot explain why. The signal is knowing RANGE groups by value (peers) while ROWS counts physical rows.Open full answer →
47Walk me through reading an EXPLAIN ANALYZE plan to find why a query is slow.▼hardSnowflakeDatabricksStripe2 replies◆ premiumThe reflex is 'add an index,' but a good engineer reads the plan before touching anything. The signal is spotting the operator that dominates runtime, comparing estimated against actual rows, and knowing the seq-scan, bad-join, and spill patterns.Open full answer →
48How do you choose a partitioning and clustering strategy for a large analytics table?▼hardSnowflakeDatabricksGoogle1 replies◆ premiumPick the wrong partition key and you end up with millions of tiny files or lopsided giants. The signal is partitioning on a low-cardinality filter, clustering inside partitions on the next predicate, and keeping an eye on file size.Open full answer →
50Compare Iceberg, Delta Lake, and Hudi. How would you choose an open table format?▼hardDatabricksSnowflakeNetflix2 replies◆ premiumEach of the three brings ACID to object storage, yet they were built to solve different problems. The signal is fitting the format to the workload (engine neutrality, Spark-native ACID, or streaming upserts) instead of naming a favorite.Open full answer →
53Given rows with start and end timestamps, merge all overlapping intervals per user in SQL.▼hardSnowflakeDatabricksStripe1 replies◆ premiumOverlapping subscription or session windows have to collapse into clean periods, and a naive self-join runs quadratic. The signal is the gaps-and-islands trick: a running max end-time that marks where each new island begins.Open full answer →
54How do you handle late-arriving data in a streaming or incremental pipeline?▼hardDatabricksSnowflakeGoogle2 replies◆ premiumEvents arrive minutes or days after they happened, and a window that has already closed reports wrong counts. The signal is event-time vs processing-time, watermarks with allowed lateness, and how you fix already-emitted aggregates.Open full answer →
55You shipped a logic bug three months ago. How do you safely backfill and reprocess the affected data?▼hardDatabricksSnowflakeNetflix1 replies◆ premiumA backfill that double-counts or knocks over the live pipeline is worse than the bug it fixes. The signal is idempotent partition-scoped rewrites, keeping backfill compute isolated from live runs, and validating before the swap.Open full answer →
57Compare CDC variants: log-based, query-based, and trigger-based. What are the failure modes of each?▼hardDatabricksSnowflakeGoogle2 replies◆ premiumPlenty of candidates know only 'use Debezium.' The signal is comparing three CDC mechanisms on how each captures deletes, loads the source, and preserves ordering, plus the snapshot-to-stream stitching that trips up real deployments.Open full answer →
58Turn a raw web crawl into a clean trillion-token LLM training corpus. Design the pipeline.▼hardNVIDIAAnthropicOpenAI◆ premiumAnyone can say 'filter and dedup.' The signal is the funnel arranged by cost, the MinHash/LSH banding math, and recognizing that the shuffle across billions of documents is what actually runs up the bill, plus the benchmark decontamination people forget until their eval numbers get challenged.Open full answer →
01Your model looks great offline but drops CTR 2% in production. How do you ship safely and find the cause?▼hardMetaGoogleMicrosoft2 repliesunlockedTwo problems wear one costume here: how you would have caught this before full rollout, and how you debug it after the fact. Cover both and you show senior judgment. This walks through the staged-rollout and root-cause playbook.Open full answer →
02Design a large-scale recommendation feed (retrieval then ranking) for 100M users.▼hard★ EssentialMetaGoogleNetflix1 repliesunlockedThe most common ML system design round. Interviewers reward the funnel structure: candidate generation, then ranking, then re-ranking, with the right model at each stage plus an honest plan for cold start, freshness, and feedback loops. This lays out that structure.Open full answer →
03Design a real-time fraud detection system where fraud is under 1% of transactions.▼hardAmazonGoogleMicrosoft1 repliesunlockedSevere class imbalance, a tight latency budget, and an adversary who keeps adapting. What interviewers watch for: treating imbalance honestly, setting the operating point from costs, and building for the feedback loop. This covers the end-to-end design.Open full answer →
04Design a monitoring system for a fleet of 100+ production ML models.▼hardMetaMicrosoftDatabricks1 repliesunlockedModels fail silently, so the real question is whether you would notice. What interviewers look for: watching the right layers (operational, data, prediction, outcome) and alerting on drift without drowning in false pages. This covers the system and the metrics that count.Open full answer →
05Design a multimodal (text and image) search system for a large e-commerce catalog.▼hardGoogleMetaMicrosoft1 repliesunlockedMultimodal search checks whether you grasp shared embedding spaces and the retrieve-then-rank pattern under a real catalog's scale and freshness. What interviewers reward: CLIP-style joint embeddings, hybrid retrieval, and honest relevance evaluation. This lays out the design.Open full answer →
06Design a text-to-SQL feature: let users ask questions in natural language over a real database.▼hardMicrosoftDatabricksGoogle1 repliesunlockedText-to-SQL is deceptively hard because correctness is all-or-nothing and the failure mode is a confident wrong number. What interviewers reward: schema grounding, query validation, and a safety layer, not merely 'prompt an LLM with the schema.' This lays out the production design.Open full answer →
07Design a real-time content moderation system for text and images at platform scale.▼hardMetaGoogleMicrosoft1 repliesunlockedModeration is a multi-stage classification problem with harsh tradeoffs: false negatives cause real harm, false positives silence legitimate users, and the adversary keeps adapting. What interviewers reward: the tiered pipeline, per-severity precision/recall calibration, and human-in-the-loop. This lays out the design.Open full answer →
08Design an LLM gateway in front of multiple model providers (routing, caching, fallback, rate limits, observability).▼hardMicrosoftDatabricksCohere1 repliesunlockedThe moment a company runs LLMs in more than one place, it needs a gateway. The signal is the cross-cutting concerns (cost, reliability, observability, governance) that a gateway consolidates, not merely 'proxy the API.' Here is the design.Open full answer →
09Design a click-through-rate (CTR) prediction system for ads ranking at scale.▼hard★ EssentialMetaGoogleAmazon2 repliesunlockedAds ranking is where calibrated probabilities collide with tight latency and money. The signal is knowing that CTR has to be calibrated (not just ranked), the feature and serving design, and the auction context. Here is the design that goes past 'train a classifier.'Open full answer →
10Design an anomaly detection system for a metric (e.g. cloud billing) with seasonality and cold start.▼hardAmazonMicrosoftGoogle1 repliesunlockedAnomaly detection seems simple until seasonality, cold start, and alert fatigue arrive. The signal is modeling the expected baseline (including weekly and daily cycles), picking unsupervised methods when labels are scarce, and tuning so you do not bury users in false alarms. Here is the design.Open full answer →
11Design ChatGPT end to end: from training to serving a conversational assistant at scale.▼hard★ EssentialOpenAIAnthropicGoogle3 replies○ sign inThe canonical AI system-design question. The signal is covering both the model lifecycle and the serving stack at real scale, without rambling. Most candidates design only half and lose the points.Open full answer →
12Design a deep research agent that answers complex questions by searching and synthesizing many sources.▼hard★ EssentialOpenAIAnthropicGoogle1 replies○ sign inThe modern agentic system-design question. The signal is the plan, search, read, synthesize, verify loop with per-claim citations, plus keeping cost and latency bounded. The hard parts are not the writing.Open full answer →
13Design memory for a personal AI assistant that remembers users across sessions.▼hardOpenAIAnthropicMicrosoft2 replies○ sign inCross-session memory is what makes an assistant feel personal, and it is mostly a retrieval and state-management problem rather than a bigger context window. The signal is the tiered architecture plus what to store, forget, and protect.Open full answer →
14Design a multi-agent customer support system with escalation to humans.▼hardSierraDecagonSalesforce1 replies○ sign inSupport is the flagship applied-AI use case, exercising agents, RAG, tools, and the critical human handoff. The signal is knowing when to answer, when to take action, and when to escalate, safely.Open full answer →
15Design an LLM inference platform (vLLM-as-a-service) serving many models and teams.▼hard★ EssentialNVIDIAMicrosoftDatabricks2 replies○ sign inLimited GPUs, dozens of models, and every team demanding low latency for little money. The signal is whether you can shape that into a single governed serving fleet: continuous batching, KV cache, per-tenant quotas, and cost you can genuinely attribute.Open full answer →
16Design an AI code review system that comments on pull requests.▼hardMicrosoftGoogleCognition3 replies○ sign inAI code review succeeds or fails on precision: a handful of noisy comments and the team silences the bot for good. The signal is grounding in the diff plus repo context, unforgiving false-positive control, and winning developer trust one accepted comment at a time.Open full answer →
17Design an AI email assistant that drafts replies, summarizes threads, and prioritizes the inbox.▼hardGoogleMicrosoftOpenAI1 replies○ sign inSummarize, draft, and triage, all across the most sensitive PII a person holds. The signal is grounding in the real thread, matching the user's voice, and a firm human-in-the-loop rule on anything that gets sent.Open full answer →
18Design a text-to-image generation service (Midjourney/DALL-E-like) at scale.▼hardOpenAIGoogleNVIDIA1 replies○ sign inA GPU-heavy generative system where sampling steps drive the bill and a single bad image becomes a headline. The signal is the diffusion serving pipeline, the cost levers on per-image GPU time, and a required two-sided safety layer.Open full answer →
19Design an AI resume-screening system that handles 100K applications per week.▼hardGoogleAmazonMicrosoft2 replies○ sign inScreening resumes is both high-volume and high-stakes: a legally sensitive, bias-prone judgment about people. The signal is trading off throughput against fairness, human oversight, and explainability, not an LLM ranking resumes. Here is the design.Open full answer →
20Design a real-time transcription system for thousands of concurrent audio streams.▼hardGoogleMicrosoftOpenAI2 replies○ sign inTranscribing in real time at scale probes streaming ASR, latency budgets, and GPU fleet management under heavy concurrency. The signal is chunked streaming inference with partial results, not batch transcription. Here is the design.Open full answer →
21Design an AI pipeline that extracts structured data from unstructured documents (invoices, contracts, forms).▼hardMicrosoftGoogleAmazon2 replies◆ premiumDocument extraction (IDP) is a massive enterprise use case with a steep correctness bar: a wrong extracted number beats having none. The signal is the parse, extract, validate, human-review pipeline plus confidence-based routing. Here is the design.Open full answer →
22Design a voice assistant architecture (speech in, speech out) with low latency.▼hardGoogleAmazonApple2 replies◆ premiumA voice assistant links STT, an LLM, and TTS under a punishing latency budget where each stage piles on delay. The signal is streaming and pipelining the stages plus turn-taking, not three blocking calls. Here is the design.Open full answer →
23Design a medical diagnosis assistant using AI, safely.▼hardGoogleMicrosoftAmazon1 replies◆ premiumHealthcare is the highest-stakes AI domain: a wrong answer can injure a patient, and regulators are paying attention. The signal is designing decision support with grounding, human oversight, and guardrails, never an autonomous diagnoser. Here is the design.Open full answer →
24Design an AI-powered legal document review system (contracts, clauses, risks).▼hardMicrosoftHarveyGoogle1 replies◆ premiumLegal review is high-stakes and precision-critical: a missed clause or hallucinated citation carries real consequences, and lawyers have been sanctioned over fabricated cites. The signal is grounding in the actual documents, citing exact passages, and lawyer-in-the-loop. Here is the design.Open full answer →
25Design a dynamic pricing engine (e.g. ride-sharing, e-commerce, travel).▼hardAmazonGoogleMicrosoft2 replies◆ premiumDynamic pricing combines demand forecasting, optimization, and real-time serving, under fairness and trust constraints. The signal is the predict-then-optimize structure plus guardrails against perverse outcomes. Here is the design.Open full answer →
26Design an AI-powered search engine for a large e-commerce catalog.▼hardAmazonGoogleMicrosoft2 replies◆ premiumE-commerce search is where retrieval, ranking, and business goals meet, and it carries a strict exact-match requirement (brand, size, SKU). The signal is query understanding plus hybrid retrieval plus business-aware ranking. Here is the design.Open full answer →
27Design a music generation service (Suno-like).▼hardGoogleOpenAINVIDIA1 replies◆ premiumA GPU-heavy generative-audio system with text/genre/lyric conditioning, minutes-long coherence, and copyright constraints. The signal is the generation pipeline plus the async, cost, and safety layer that gets it shippable.Open full answer →
28Design a video generation service (Sora-like).▼hardOpenAIGoogleNVIDIA1 replies◆ premiumVideo generation is image generation plus the harsh constraint of temporal consistency, and it is the most GPU-intensive generative task around. The signal is diffusion over spacetime plus a serving design that holds up under multi-minute jobs.Open full answer →
29Design an AI system for automated code migration (e.g. Python 2→3, framework upgrade, language port).▼hardGoogleMicrosoftCognition2 replies◆ premiumCode migration is a high-value agentic task with a strict correctness bar: the migrated code has to still work. The signal is grounding in the real repo, transforming in verifiable chunks, and gating on tests, never one huge LLM rewrite.Open full answer →
30Design an AI notification system that prioritizes what matters instead of broadcasting everything.▼hardMetaGoogleMicrosoft1 replies◆ premiumNotification systems fail by spamming users until they mute, and a mute is a permanently lost channel. The signal is treating it as a per-user send/hold/batch/suppress decision optimized for long-term trust, not for clicks or volume.Open full answer →
31Design an AI meeting summarizer that handles thousands of meetings a day.▼hardMicrosoftGoogleZoom2 replies◆ premiumTwo models in a chain (ASR then summarization), a long-context problem buried inside, and a faithfulness bar where a fabricated action item carries real consequences. The signal is the pipeline plus how you keep a 3-hour transcript honest at thousands a day.Open full answer →
32Design an on-device AI assistant (runs locally on a phone or laptop).▼hardAppleGoogleMicrosoft1 replies◆ premiumOn-device AI gives up raw capability for privacy, offline use, and latency, under tight memory and battery limits. The signal is the small-quantized-model stack plus a hybrid router that sends the hard queries to the cloud without leaking private context.Open full answer →
33Design a fraud-detection system that uses LLMs (beyond a classic ML classifier).▼hardAmazonMicrosoftGoogle2 replies◆ premiumThe trap is swapping the classifier for an LLM. The real-time, imbalance, and adversarial constraints stay put. The signal is a hybrid: a fast calibrated model scores inline, LLMs investigate the gray zone off the hot path.Open full answer →
34Design a two-tower retrieval system for recommendation/candidate generation.▼hard★ EssentialGoogleMetaPinterest2 replies◆ premiumHow large recommenders and search draw candidates from millions of items in milliseconds. The signal is why the user and item towers stay separate, how that enables precomputed embeddings plus an ANN index, and where ranking takes over.Open full answer →
35Design a typeahead / autocomplete suggestion system.▼hardGoogleMetaAmazon1 replies◆ premiumEvery keystroke has to return ranked suggestions in tens of milliseconds, at search-engine QPS. The interesting part is the data structure and what you precompute, not the query path. Here is the design that holds up under the latency budget.Open full answer →
36Design an ETA / delivery-time prediction system (ride-share, food delivery, logistics).▼hardUberAmazonGoogle1 replies◆ premiumETA is spatiotemporal regression served in real time over conditions that shift by the minute. The signal is feature freshness, segment or stage decomposition, and the asymmetric cost of being wrong. Here is the design.Open full answer →
37Design a 'People You May Know' (friend/connection recommendation) system.▼hardMetaLinkedInGoogle1 replies◆ premiumPYMK is graph recommendation at billion-node scale. The interviewer is testing for one instinct: do you generate candidates from the social graph, or naively try to score every pair? Here is the design that holds up through the follow-ups.Open full answer →
38Design a news feed ranking system (social media timeline).▼hard★ EssentialMetaLinkedInTwitter2 replies◆ premiumFeed ranking is multi-objective ML at massive scale with a harsh serving constraint. The interviewer wants to see whether you optimize a value model toward long-term satisfaction, or fall into the CTR trap that breeds clickbait. Here is the design.Open full answer →
39Design a vector database / embedding retrieval service.▼hard★ EssentialPineconeMicrosoftDatabricks1 replies◆ premiumThe service under every RAG stack and semantic search box. The signal is your ANN index choice and how you deal with the three things that quietly break it: metadata filtering, live updates, and scale.Open full answer →
40Design a real-time bidding (RTB) system for online ads.▼hardGoogleMetaAmazon1 replies◆ premiumPredict, value, and bid on one impression in roughly 10ms, billions of times a day. The signal is the pCTR-to-bid pipeline under a tight latency budget, plus why calibration and budget pacing decide whether you make or lose money.Open full answer →
41Design a visual / image search system (search by image, or text-to-image search).▼hardGooglePinterestAmazon1 replies◆ premiumImage search is embedding retrieval at billion-image scale. A strong answer shows when a vision-only encoder is enough and when you need a CLIP-style shared space, plus how the ANN index actually serves the query. Here is the design.Open full answer →
42Design a spam / abuse detection system (email, comments, or messages).▼hardGoogleMetaMicrosoft1 replies◆ premiumSpam detection is adversarial, imbalanced classification under a low-latency bar. The interviewer is watching whether you set the threshold by cost asymmetry and rely on signals spammers cannot fake. Here is the design.Open full answer →
43Design a query understanding system for search.▼hardGoogleAmazonMicrosoft1 replies◆ premiumQuery understanding is the front end of search that converts a raw query into structured intent. Get it wrong and even a perfect index returns garbage. The signal is the pipeline and how you measure it. Here is the design.Open full answer →
44Design a real-time feature pipeline / feature store for online ML.▼hardUberAmazonDatabricks2 replies◆ premiumOnline models need features that are fresh and computed the same way training computed them. The classic failure is training-serving skew that quietly degrades the model. The signal is the online/offline split built on one shared definition. Here is the design.Open full answer →
45How do you handle the cold-start problem in a recommendation system?▼hardNetflixAmazonSpotify1 replies◆ premiumNew users and new items carry zero interaction history, so collaborative filtering has nothing to work with. The candidates who pass treat it as a lifecycle, not a single trick. Here is how.Open full answer →
46How do you balance relevance and diversity in a ranking/recommendation list?▼hardNetflixSpotifyPinterest1 replies◆ premiumRank items by relevance alone and you ship ten near-identical results and a filter bubble. What interviewers want is a re-ranking stage that scores the list as a set, plus the metric that proves it works.Open full answer →
47Design a knowledge-graph-backed question answering system.▼hardGoogleMicrosoftAmazon1 replies◆ premiumSome questions need precise multi-hop facts that vector retrieval cannot chain. The signal is entity linking plus query translation over a graph (or GraphRAG), and knowing when the graph is worth its maintenance cost. Here is the design.Open full answer →
48Design the perception system for an autonomous vehicle (or robot).▼hardTeslaWaymoNVIDIA1 replies◆ premiumAV perception is safety-critical, real-time, multimodal ML: detect and track everything around the vehicle across multiple sensors. The signal is sensor fusion plus detection/tracking under a hard latency budget and a fail-safe bar. Here is the design.Open full answer →
49Design a machine translation service at scale.▼hardGoogleMetaMicrosoft1 replies◆ premiumMachine translation is seq2seq generation delivered across hundreds of language pairs under strict latency and quality budgets. What matters is sidestepping the quadratic pair blowup, saving low-resource languages, and serving it cheaply. Here is the design.Open full answer →
50Design a human activity recognition system (from sensors or video).▼hardAppleGoogleMeta1 replies◆ premiumDetecting walking, driving, or a fall from a sensor stream is windowed time-series classification, typically on a battery-bound device. What matters is windowing, temporal smoothing, and the on-device constraints most candidates overlook. Here is the design.Open full answer →
52Design an event recommendation system (events, jobs, or other time-sensitive items).▼hardMetaLinkedInEventbrite2 replies◆ premiumRecommending events (or jobs) breaks ordinary recsys in two spots: items expire and items are local. What matters is how you handle perishability, geography, and the fact that every item is a cold-start item. Here is the design.Open full answer →
54How do you handle feedback loops and bias in a recommendation system?▼hardNetflixMetaYouTube2 replies◆ premiumA recommender trains on data its own past recommendations produced, so it learns to confirm its own beliefs. What matters is spotting the loop, naming the biases it breeds, and knowing the exploration and debiasing fixes that break it.Open full answer →
55Design a data labeling / annotation platform.▼hardScale AIGoogleAmazon1 replies◆ premiumLabeled data is the fuel for ML, and a labeling platform succeeds or fails on quality control. The signal is the workflow plus the quality math: consensus, gold honeypots, inter-annotator agreement, and active learning to spend the budget where it counts.Open full answer →
56Design an object detection service (detect and localize objects in images at scale).▼hardGoogleAmazonMeta1 replies◆ premiumDetecting and boxing objects at scale reduces to one driving tradeoff plus a handful of CV specifics most candidates fumble: the detector family, NMS, focal loss, and why mAP rather than accuracy is the metric. Here is the design.Open full answer →
60Design a demand forecasting system (retail/inventory/capacity).▼hardAmazonWalmartUber2 replies◆ premiumForecasting a single series is textbook work; forecasting a million SKU-stores that have to reconcile, where stockouts cost more than overstock, is what the interview actually tests. The strong answer is global, hierarchical, and cost-aware.Open full answer →
61Design an autonomous coding agent that resolves GitHub issues end to end (plan, edit, test, iterate).▼hardCognitionOpenAIAnthropic1 replies◆ premiumA Devin-style agent that carries an issue all the way to a merged PR is the hardest kind to make reliable, since every step can fail and errors pile up. Here is the architecture and the loop that keeps it honest.Open full answer →
62Design a semantic cache for LLM responses that cuts cost and latency without serving stale or wrong answers.▼hardOpenAIPerplexityAnthropic3 replies◆ premiumExact-match caching does little when no two prompts match. Semantic caching reuses answers across similar queries, and its entire danger is handing back a near-match that is subtly wrong. Here is how to build it safely.Open full answer →
63Design a multi-region, highly available LLM serving platform with failover and bounded cost.▼hardAWSMicrosoftOpenAI2 replies◆ premiumGPUs are scarce and costly, so multi-region HA for LLMs is not simply web-app HA with bigger machines. Capacity, routing, and failover all bend around the GPU constraint. Here is the design.Open full answer →
64Design a system to run LLM inference over a billion documents offline, as cheaply as possible.▼hardGoogleDatabricksSnowflake1 replies◆ premiumBatch scoring a billion items is a throughput-and-cost problem, the reverse of low-latency serving. Every choice that harms latency works in your favor here. Here is how to design for dollars-per-million-documents.Open full answer →
65Design an internal evaluation platform that lets teams measure and compare LLM features reliably.▼hardOpenAIAnthropicScale AI2 replies◆ premiumWhen every team evaluates prompts in one-off notebooks, an org ships regressions and argues about vibes. A shared eval platform turns quality into something measurable and comparable. Here is what it must provide.Open full answer →
67Design a computer-use agent that operates a browser to complete tasks (book travel, fill forms) reliably.▼hardOpenAIAnthropicGoogle DeepMind1 replies◆ premiumAn agent that clicks through a real website is slow, brittle, and a single wrong click away from a costly mistake. The architecture comes down to perception, action, and guardrails around irreversible steps. Here is how to build it.Open full answer →
68Design a human-feedback data platform to collect the preference data that trains and aligns your models.▼hardAnthropicOpenAIScale AI2 replies◆ premiumRLHF and evals can only match the preference data behind them, and that data comes from humans whose quality swings wildly. The platform that yields trustworthy labels is a serious system in its own right. Here is its design.Open full answer →
69Design a conversational analytics agent that answers business questions over a data warehouse in natural language.▼hardSnowflakeDatabricksGoogle2 replies◆ premium'What was revenue by region last quarter?' looks like text-to-SQL, yet production analytics agents break on ambiguity, wrong joins, and confidently wrong numbers. Here is the architecture that makes the answers trustworthy.Open full answer →
71Design a system that monitors the quality of millions of AI support conversations and flags the bad ones.▼hardSierraDecagonSalesforce1 replies◆ premiumAn AI support agent working through millions of chats will occasionally be wrong, rude, or unhelpful, and no one can read them all. Watching quality at that scale is a design problem in itself, with its own failure modes.Open full answer →
72How do CAP and consistency tradeoffs apply to an ML feature store and online serving?▼hardUberMetaAWS1 replies◆ premiumClassic distributed-systems tradeoffs appear in ML infra with an ML twist: stale features and eventually-consistent reads carry model-accuracy consequences, not just correctness ones. Here is how to reason about it.Open full answer →
73Distribute a 10GB file from one bandwidth-limited source to thousands of machines as fast as possible.▼hardAnthropicGoogleMeta2 replies◆ premiumAnthropic's signature opener. The naive answer (one server pushes to N clients) is capped by the source uplink and scales linearly. The answer interviewers reward turns receivers into senders so the swarm's capacity grows with its size. Here is that reasoning.Open full answer →
74Design a distributed key-value store (partitioning, replication, and consistency).▼hard★ EssentialAmazonGoogleAnthropic1 replies◆ premiumThe Dynamo question. Interviewers want three decisions made cleanly: how you partition keys so adding nodes does not reshuffle everything, how you replicate for durability, and where you sit on the CAP spectrum. Here is how to reason through all three with concrete quorum math.Open full answer →
75Design a distributed rate limiter for an API serving millions of requests per second.▼hard★ EssentialGoogleAmazonStripe2 replies◆ premiumEvery API platform needs one. Interviewers reward the candidate who picks the right algorithm (token bucket vs sliding window) for the burst behavior, then cracks the genuinely hard part: holding one shared limit across many servers without a per-request round trip to a central store.Open full answer →
76Design a load balancer that distributes traffic across a fleet of backend servers.▼hard★ EssentialGoogleAmazonMeta1 replies◆ premiumLooks simple until the follow-ups: which layer do you balance at, how do you keep traffic off a dead server, and how does the load balancer itself avoid being a single point of failure? Interviewers want the algorithm, the health-check loop, and the high-availability story.Open full answer →
78Design a metrics, logging, and monitoring service for thousands of servers.▼hard★ EssentialGoogleAmazonMeta1 replies◆ premiumThe observability infrastructure question. Interviewers want you to split the three telemetry types, choose storage that withstands massive write volume, and design alerting that fires fast without burying on-call in noise. Here is the pipeline with retention and cardinality math.Open full answer →
79Design a system that records events in a single globally consistent order across many machines.▼hardGoogleAmazonAnthropic2 replies◆ premiumThe distributed ordering problem that sits at the heart of Kafka, replicated logs, and consensus systems. Interviewers look for you to face the uncomfortable fact that physical clocks lie, then pick the right instruments: a single sequencer, consensus, or logical clocks. This walks that progression.Open full answer →
80Design a real-time group chat and messaging system like Slack or WhatsApp.▼hard★ EssentialMetaAmazonMicrosoft2 replies◆ premiumThe real-time messaging staple. Interviewers look for the delivery path (persistent connections, not polling), a fan-out strategy that survives large groups, and a clear story on ordering and delivery guarantees. This lays out that design, including the fan-out tradeoff that marks senior candidates.Open full answer →
81Design an evaluation framework for an ads ranking system.▼hardMetaGoogleAmazon2 replies◆ premiumThis asks you to design the scoreboard, not the player. A strong answer keeps offline gates (AUC, calibration, NDCG) apart from the online verdict (A/B with revenue, user, and advertiser guardrails), and layers in counterfactual replay so you can trust a model before it ever serves a live auction.Open full answer →
82Design a personalized news / feed ranking system.▼hardGoogleMetaApple1 replies◆ premiumA news feed differs from a generic recommender. Time is a first-class signal: a story that mattered this morning is noise by tonight. The interviewer expects recency decay, an engagement-versus-quality value model, and a plan for filter bubbles, not merely retrieval plus ranking.Open full answer →
83Design a misinformation / fake-news detection system at scale.▼hardMetaGoogleMicrosoft1 replies◆ premiumTruth is not a label you can gather cheaply, and adversaries adapt as soon as you ship. A strong answer combines content, graph, and behavioral signals, places humans in the loop where precision matters, and treats adversarial drift as a permanent operating condition rather than a one-time training problem.Open full answer →
86Design a system to retrieve similar scenes from a large video corpus given a query clip.▼hardGoogleMetaAmazon2 replies◆ premiumVideo search is image search plus a time axis, and the time axis is the whole problem. A strong answer embeds frames, pools them into scene vectors, indexes with ANN at billion scale, and explains how a multimodal query (clip, text, or both) locates the right moment, not just the right video.Open full answer →
87Design an IDE code assistant (Copilot-style) that completes code as the developer types.▼hardMicrosoftOpenAIAnthropic1 replies◆ premiumInline completion lives or dies on tail latency: a suggestion that lands after the developer keeps typing is useless. Learn how to assemble the context window, hide model latency behind speculation and caching, and keep a tight feedback loop on acceptance rate.Open full answer →
88Design an enterprise semantic search system over a company's internal documents and tools.▼hardGleanMicrosoftGoogle1 replies◆ premiumEnterprise search lives or dies on permissions, freshness, and wiring into thirty messy SaaS sources; retrieval quality is table stakes. Learn how to fan out across connectors, enforce per-user access at query time, and blend lexical with vector search for results people trust.Open full answer →
89Design a document summarization pipeline that handles long documents at high throughput.▼hardOpenAIAnthropicGoogle1 replies◆ premiumSummarizing a 200-page contract is not one LLM call: it is chunking, hierarchical reduction, and a faithfulness check so you never invent facts. Learn the map-reduce pattern, when long-context wins out, and how to evaluate summaries at scale.Open full answer →
90Design an LLM-based content moderation system that screens user content at platform scale.▼hardOpenAIMetaGoogle1 replies◆ premiumModerating billions of items a day with an LLM on each one is too slow and too expensive. Learn the tiered funnel (cheap classifier then LLM then human), how to tune thresholds for precision versus recall, and how to stay ahead of adversaries.Open full answer →
91Design a personalization service that tailors LLM responses to each user's context and history.▼hardOpenAIGoogleMeta1 replies◆ premiumPersonalizing an LLM is a retrieval and memory problem, not a per-user fine-tune. Learn how to assemble user context at request time, keep long-term memory from bloating the prompt, and respect privacy and the right to be forgotten.Open full answer →
93Design a customer-support automation platform that resolves tickets end to end with LLMs.▼hardSierraDecagonSalesforce2 replies◆ premiumAuto-resolving support tickets means grounding answers in your knowledge base, safely calling real APIs (refunds, account changes), and knowing when to hand off to a human. Learn the agent loop, the guardrails, and how to measure resolution without eroding trust.Open full answer →
95Design an A/B testing platform for LLM features (prompts, models, retrieval) with trustworthy metrics.▼hardOpenAIGoogleMicrosoft2 replies◆ premiumRunning experiments on LLM features is tough because outputs are open-ended and quality is fuzzy. See how to assign traffic, choose metrics beyond engagement, tame variance from non-determinism, and dodge the traps that let a winning variant lose once it ships.Open full answer →
96Design a RAG-as-a-service platform that lets teams build retrieval-augmented apps over their own data.▼hardAWSDatabricksSnowflake1 replies◆ premiumSelling RAG as a product means wrangling messy ingestion, multi-tenant isolation, and per-customer index freshness, all behind a simple API. See the ingestion and query planes, how to keep tenants isolated, and how to hand customers eval and observability.Open full answer →
98Design a notification and fan-out system that delivers to millions of users across push, email, and SMS.▼hardMetaLinkedInUber1 replies◆ premiumA celebrity posts and 50M followers need a notification. The tricky parts are not sending one message; they are fan-out strategy, deduplication, channel routing, and not flooding users. Here is the architecture that handles both the long tail and the viral spike.Open full answer →
99Design the ride-matching system that pairs riders with nearby drivers in real time.▼hardUberAirbnbAmazon2 replies◆ premiumA rider taps request and within seconds a nearby driver gets assigned. The interesting problems are geospatial indexing of moving drivers, the matching objective (nearest is not always best), and handling the race where two riders want the same car. Here is how to build it.Open full answer →
100Design a payment ledger that records money movement with exactly-once semantics and no lost cents.▼hardStripeAmazonUber2 replies◆ premiumIn payments, a duplicate charge or a lost credit is not a bug, it is a financial incident. The design turns on idempotency keys, double-entry bookkeeping, and an append-only ledger you can audit and reconcile. Here is how money systems stay correct.Open full answer →
101Design a distributed cache like Redis or Memcached that serves millions of reads per second.▼hardAmazonMetaNetflix1 replies◆ premiumA cache is easy until you spread it across many nodes. Then come consistent hashing, eviction policy, the thundering herd on a cache miss, hot keys, and how much staleness you can tolerate. Here is the design that holds up under real traffic.Open full answer →
102Design a time-series database that ingests millions of metrics per second and answers range queries fast.▼hardAmazonNetflixMicrosoft1 replies◆ premiumMetrics, traces, and IoT data are append-heavy, time-ordered, and seldom updated. A general database handles this poorly. The wins come from columnar layout, compression tuned for timestamps, downsampling, and retention. Here is the time-series design interviewers want.Open full answer →
103Design a data lakehouse pipeline that ingests raw events and serves both analytics and ML features.▼hardDatabricksSnowflakeNetflix1 replies◆ premiumRaw clickstream lands in object storage and somehow turns into clean tables, dashboards, and ML features. The design questions are table format, the bronze-silver-gold layering, batch versus streaming, and how you handle schema drift and late data. Here is the lakehouse blueprint.Open full answer →
104Design a large-scale web crawler that fetches billions of pages while being polite and avoiding traps.▼hardGoogleMicrosoftAmazon1 replies◆ premiumCrawling a few pages is trivial. Crawling the web means a URL frontier with priority, per-host politeness, dedup across billions of URLs, and defenses against spider traps and infinite content. Here is the crawler architecture that scales without getting your IPs banned.Open full answer →
107Design an idempotent job queue that processes background tasks exactly once despite retries and crashes.▼hardStripeAmazonUber2 replies◆ premiumBackground jobs fail, retry, and get redelivered. If a job sends an email or charges a card, running it twice is a real problem. The design combines at-least-once delivery with idempotent handlers, visibility timeouts, and dead-letter queues. Here is how to make jobs safe.Open full answer →
108Design an ad exchange that runs a real-time auction across many bidders within a 100ms budget.▼hardGoogleMetaAmazon1 replies◆ premiumWhen a page loads, an ad slot goes to auction across dozens of bidders and a winner is picked before the page finishes rendering, all in under 100ms. The design covers the auction mechanism, the brutal latency budget, budget pacing, and fraud. Here is how an exchange runs millions of auctions per second.Open full answer →
109Design a private LLM deployment for a regulated enterprise where nothing, not even telemetry, may leave the network.▼hardPalantirNVIDIADatabricks◆ premiumMoving a cloud-API POC into a bank or defense network kills your model provider, your judge API, and your vendor dashboards in one stroke. Learn the signed-bundle supply chain, local evaluation loop, and zero-egress observability that make an air-gapped LLM stack actually operable.Open full answer →
111Design a personalized learning assistant that adapts to each student.▼hardGoogleDuolingoKhan Academy◆ premiumThe LLM is the easy part. The system is a learner model: a skill graph, a per-student mastery estimate, and an item selector that keeps the student at the edge of their ability. Here is the design, including the pedagogical constraint most candidates miss.Open full answer →
112Design a multi-tenant chatbot platform where every business gets its own custom assistant.▼hardIntercomSalesforceZendesk◆ premiumFive thousand businesses, five thousand assistants, one platform. The hard parts are tenant isolation you can defend, noisy neighbors, onboarding a tenant with zero data, and evaluating assistants you can never manually QA. Here is the control plane and the data plane.Open full answer →
113Design a content moderation system for live video streams.▼hardTwitchYouTubeMeta◆ premiumYou cannot review a live stream after publishing, because it already reached the audience. The broadcast delay buffer is the design, and everything else (frame sampling, the audio channel, the cascade) is built to fit inside it. Here is how it fits together.Open full answer →
116Your mental-health chatbot gave harmful advice to a user in crisis. How do you redesign it?▼hardGoogleMicrosoftOpenAI◆ premiumThe root cause is not a weak system prompt. A model trained to be agreeable is dangerous to a user in crisis, because the objective and the safety requirement point in different directions. The fix has to live outside the model. Here is what that architecture looks like.Open full answer →
117Your moderation model flags normal speech in other markets. How do you moderate across cultures?▼hardMetaGoogleTikTok◆ premiumA classifier trained on one culture's annotations does not generalize to another culture's speech, and the aggregate metric hides it. The signal is recognizing that the ground truth itself is the bug, then designing the policy and eval stack around that.Open full answer →
05Design a large-scale training pipeline that resumes cleanly after a node failure.▼hardNVIDIAOpenAIGoogle2 repliesunlockedAt thousand-GPU scale, hardware failure is routine rather than rare, and a run that cannot resume burns weeks. The signal is checkpointing strategy, deterministic resume, and holding lost work to a minimum. Here is the fault-tolerant design.Open full answer →
17Design an online experimentation (A/B testing) platform for ML models at scale.▼hardMetaMicrosoftNetflix1 replies○ sign inA dependable experiment platform goes well beyond splitting traffic in half. What matters is stable assignment, exposure logging, statistical discipline, and guardrails that hold up against peeking and sample-ratio mismatch. Here is the design.Open full answer →
25What are the components of an ML platform, and why build one?▼hardUberNetflixDatabricks2 replies◆ premiumAn ML platform is the internal system that lets many teams build and ship models reliably. What matters is naming the components (data, features, training, registry, serving, monitoring) and arguing why standardizing beats per-team reinvention, plus when not to build.Open full answer →
28Your model scores well offline but worse online, and you suspect training-serving skew. How do you find it?▼hardGoogleMetaDatabricks3 replies◆ premiumSame model, two answers: clean offline, ugly online. The cause is almost always a feature computed differently across the two paths. Here is the diff-based hunt that localizes it to a single column.Open full answer →
30Your online features are stale, and predictions suffer for it. How do you guarantee feature freshness?▼hardUberDoorDashMeta2 replies◆ premiumA fraud model fed a feature an hour behind is half-blind, but recomputing everything in real time wastes money you don't need to spend. Freshness is a per-feature decision on a real cost curve. Here is how to manage it.Open full answer →
31A customer disputes a prediction your model made three months ago. How do you reproduce it exactly?▼hardStripeCapital OneGoogle2 replies◆ premiumRegulators and customers will ask 'Why was I denied?', and 'we retrained since then' will not satisfy them. Reproducing a prediction exactly requires versioning everything. This spells out what 'everything' really covers.Open full answer →
32Your ground-truth labels arrive weeks late. How do you monitor the model in the meantime?▼hardStripeMetaAmazon2 replies◆ premiumWaiting on labels to measure accuracy means learning a model broke a month after it did. Production monitoring must function before the truth shows up. These are the signals you track instead.Open full answer →
33How do you build a pipeline that retrains, validates, and promotes a model automatically (continuous training)?▼hardGoogleDatabricksUber1 replies◆ premiumAutomated retraining seems like a convenience right up until an auto-retrained model quietly ships worse. The gates are the entire point. Here is how to automate retraining without automating a regression straight into production.Open full answer →
37A prompt tweak fixed one case and silently broke ten others. How do you regression-test an LLM app in CI?▼hardOpenAIAnthropicSierra2 replies◆ premiumEditing a prompt is a code change that ships without a compiler or a unit test by default, so quality regressions slip out invisibly. Treating prompts and models as testable artifacts is what divides a toy from a product. Here is the harness.Open full answer →
38Design an ML experiment-tracking and analysis platform.▼hardMetaGoogleMicrosoft1 replies◆ premiumEvery team rebuilds a spreadsheet of training runs and then drowns in it. The interviewer wants the platform that ingests runs, params, metrics, and artifacts at high write volume, ties them together by lineage, and makes thousands of experiments comparable, which is a different system from a model registry.Open full answer →
39How do you build an evaluation harness that runs in CI to gate every model change?▼hardOpenAIAnthropicDatabricks1 replies◆ premiumA green build says nothing about model quality. The signal is an eval harness that runs deterministically in CI, checks against a frozen baseline, and blocks the merge on regressions. Here is how to make it fast, stable, and trusted.Open full answer →
40How do you put governance around models: approvals, access, model cards, and deprecation?▼hardMicrosoftIBMSalesforce2 replies◆ premiumPromotion is the easy part. Governance covers who may ship what, on whose sign-off, with what documented, and how a model gets retired. Here is the control plane an auditor actually asks for.Open full answer →
41What exactly do you pin to make an ML training run bit-for-bit reproducible?▼hardAnthropicGoogle DeepMindNVIDIA1 replies◆ premium'Just set a seed' misses the point. Reproducibility means pinning the environment, the data, the code, and the hardware-level nondeterminism together. Here is the full checklist and where it springs leaks.Open full answer →
44How do you design automated rollback triggers so a bad model reverts before a human notices?▼hardNetflixUberStripe2 replies◆ premiumManual rollback means minutes of damage while someone wakes up. What matters is defining the trigger signals, thresholds, and guardrails that revert automatically, without flapping on noise. Here is how to make the loop safe.Open full answer →
45Going deeper on canary and blue-green: how do you actually shift traffic and decide to ramp?▼hardNetflixAmazonUber1 replies◆ premiumSaying 'route 5% to the canary' is the easy part. What matters is how you split traffic deterministically, gather enough signal to decide, and ramp on evidence rather than vibes. Here is the mechanics layer.Open full answer →
46When does an ML platform make sense to build, and how do you design the paved path?▼hardDatabricksAWSUber1 replies◆ premiumA platform that no one uses is wasted headcount; a platform built too early is premature. What matters is justifying the investment by leverage and designing a paved path teams adopt willingly. Here is the framing.Open full answer →
47PSI, KL divergence, MMD, and the KS test all detect drift. When do you reach for each?▼hardDatabricksMicrosoftAmazon2 replies◆ premiumFour drift tests, four different assumptions. The weak answer lists them; the strong one knows which handles high-dimensional embeddings, which requires binning, and which returns a calibrated p-value. Here is how to choose.Open full answer →
49How do you design the triggers and cadence for retraining a fleet of production models?▼hardNetflixUberDatabricks1 replies◆ premiumRetrain too often and you burn money and risk regressions; too rarely and the model rots. The strong answer is a layered trigger policy with guardrails, not one cron job. Here is how to set the cadence.Open full answer →
51How do you define SLOs and error budgets for an ML system, where 'correct' is probabilistic?▼hardGoogleStripeMicrosoft1 replies◆ premiumClassic SRE SLOs assume a request is right or wrong. ML predictions are probabilistic and labels lag, so naive uptime SLOs miss the failures that count. Here is how to set SLOs that actually cover model quality.Open full answer →
53Design an evaluation pipeline for an LLM application that runs on every prompt and model change.▼hardOpenAIAnthropicCohere1 replies◆ premiumEyeballing a few outputs does not scale, and a prompt tweak that fixes one case quietly breaks ten. A real LLM eval pipeline pairs a versioned dataset, layered scorers, and a CI gate. Here is the architecture.Open full answer →
56You need to move a live feature to a different model or provider. How do you cut over without a quality regression?▼hardOpenAIAnthropicDatabricks◆ premiumA provider swap does not fail with a 500. It fails by staying up and quietly getting worse. The signal is knowing what actually changes under you on a model swap, and the shadow-plus-staged-ramp protocol that catches it before your users do.Open full answer →
60Your provider updated the model behind the API and nobody told you. How do you find out before your users do?▼hardOpenAIAnthropicRamp◆ premiumMigrating models is a project you plan. Being migrated is a Tuesday. When the weights move under a stable API and your prompts were tuned against the old ones, every dashboard stays green while quality quietly rots.Open full answer →
01Serve a 70B-parameter model with high throughput. Do the memory math and name the optimizations.▼hard★ EssentialNVIDIAOpenAIAnthropic2 repliesunlockedInterviewers here want concrete figures, not 'grab a bigger GPU.' Weight memory stays constant, the KV cache scales with traffic, and the order you pull levers in settles the outcome. This walks through the napkin math and the serving stack.Open full answer →
02Explain data, tensor, and pipeline parallelism and FSDP/ZeRO, and size the memory for training a large model.▼hard★ EssentialNVIDIAOpenAIAnthropic2 repliesunlockedThe interviewer is checking that you understand how a model too large for any one GPU still gets trained, and can run the optimizer-state memory math that justifies sharding. This covers the parallelism taxonomy and the 16-bytes-per-parameter figure.Open full answer →
03Explain quantization for inference: INT8/INT4, GPTQ/AWQ, what breaks, and how you validate it.▼hard★ EssentialNVIDIAOpenAIxAI2 repliesunlockedQuantization is the opening move for shrinking and accelerating models, and the interviewer expects more than 'use fewer bits.' What they grade is whether you know what each precision level gains you, why outliers wreck naive quantization, and how you demonstrate quality survived. This lays that out.Open full answer →
04Why is standard attention memory-bound, and how does FlashAttention fix it without changing the math?▼hardNVIDIAOpenAIAnthropic2 repliesunlockedA staple at hardware-aware teams. What they look for is grasping that attention's cost is memory traffic rather than FLOPs, and that FlashAttention is an exact, IO-aware reordering rather than an approximation. This is the answer that shows you reason about the memory hierarchy.Open full answer →
05Explain the KV cache: prefill vs decode, why it grows, and how MQA/GQA and PagedAttention help.▼hard★ EssentialNVIDIAOpenAIAnthropic2 repliesunlockedThe KV cache is what makes LLM serving hard, and the interviewer wants the mechanics: what it holds, why it caps concurrency, and the tricks that shrink it. This is the answer that shows you grasp decode-time economics.Open full answer →
06Explain speculative decoding and the other main levers for cutting LLM generation latency.▼hardNVIDIAOpenAIAnthropic2 repliesunlockedDecode runs sequentially and is memory-bound, so latency tricks count. What they grade is whether you can explain speculative decoding's draft-and-verify mechanism (and why it stays exact) along with the other levers and when each fits. This is the latency toolkit.Open full answer →
07Explain mixed-precision training: FP16 vs BF16, loss scaling, and where the numerics break.▼hard★ EssentialNVIDIAOpenAIGoogle2 repliesunlockedMixed precision is routine at scale, and the interviewer wants the numerics: why FP16 needs loss scaling, why BF16 mostly does not, and what remains in FP32. What they grade is whether you understand dynamic range vs precision. This is that answer.Open full answer →
08Why are GPUs suited to deep learning, and how do GPUs, CPUs, and TPUs differ?▼hardNVIDIAGoogleOpenAI2 repliesunlockedA hardware-literacy question, particularly at NVIDIA and the labs. What they grade is whether you understand throughput vs latency hardware, the memory hierarchy, and why matrix multiplication maps onto GPUs and TPUs. This is the architecture-aware answer.Open full answer →
11Walk through optimizing a CUDA kernel: warp divergence, memory coalescing, and shared-memory bank conflicts.▼hardNVIDIAOpenAIxAI1 replies○ sign inKernel-level questions separate people who have written CUDA from people who have read about it. The signal is commanding the SIMT execution model and the three classic throughput killers, with a concrete fix for each. Here is the low-level answer.Open full answer →
17What are FSDP and DeepSpeed ZeRO, and how do their sharding stages differ?▼hardNVIDIAOpenAIMicrosoft2 replies○ sign inFSDP and ZeRO let you train models too large for one GPU without splitting the compute. The signal is the ZeRO stages (what gets sharded at each level) and the communication you pay for it. Here is the answer.Open full answer →
18What are the collective communication operations (all-reduce, all-gather, reduce-scatter) in distributed training?▼hardNVIDIAOpenAIGoogle2 replies○ sign inDistributed training is bottlenecked by GPU-to-GPU communication, and these collectives are how the data travels. The signal is what each one does and which parallelism strategy relies on it. Here is the answer.Open full answer →
20What is model sharding, and how do tensor and pipeline parallelism split a model across GPUs?▼hardNVIDIAOpenAIGoogle2 replies○ sign inWhen a model is too large for one GPU you split the model itself, not just the data. The signal is telling tensor parallelism (split within a layer) apart from pipeline parallelism (split across layers) and matching each to the interconnect. Here is the answer.Open full answer →
23What is disaggregated (prefill/decode) serving for LLM inference?▼hardNVIDIAOpenAIMicrosoft2 replies◆ premiumLLM inference has two phases with opposite resource profiles, and co-locating them lets a long prompt stall everyone else's tokens. The signal is knowing why prefill and decode fight, and what separating them costs. Here is the answer.Open full answer →
27What consumes GPU memory during training/inference, and how do you fit a model that doesn't?▼hardNVIDIAOpenAIMeta1 replies◆ premiumOOM is the wall you hit most often in deep learning, and 'buy a bigger GPU' is the weakest reply. What counts is naming the memory consumers, knowing which one dominates, and pairing the right lever with it.Open full answer →
28What is MFU (Model FLOPs Utilization), and why can GPU utilization be misleading?▼hard★ EssentialNVIDIAOpenAIGoogle1 replies◆ premiumnvidia-smi reading 100% can mask the fact that you are tapping only a fraction of the hardware's real compute. What matters is MFU (useful FLOPs vs peak) and the gap between 'the GPU is busy' and 'the GPU is efficient'.Open full answer →
29What is FP8 (and low-precision training/inference), and what are the tradeoffs?▼hardNVIDIAOpenAIGoogle2 replies◆ premiumPast FP16/BF16, FP8 sits on the next rung of the precision ladder, and the newest tensor cores compute on it natively. What counts is knowing the two formats, what FP8 really buys, and why dynamic range demands careful scaling.Open full answer →
30How do you quantize or compress the KV cache, and why does it matter for long-context serving?▼hardNVIDIAOpenAIMicrosoft1 replies◆ premiumAt long context the KV cache, not the weights, dominates GPU memory and decode bandwidth. What counts is spotting it as the binding constraint and naming the levers that shrink it without wrecking quality.Open full answer →
33How do you serve many fine-tuned model variants efficiently (multi-LoRA serving)?▼hardNVIDIAMicrosoftDatabricks2 replies◆ premiumRunning one full fine-tuned model per customer grows GPU count linearly and drains the budget quickly. A method exists to pack hundreds of variants onto a single GPU without sacrificing batching. The interviewer wants to hear how.Open full answer →
34How do you autoscale LLM inference, and why is it different from scaling a normal web service?▼hardNVIDIAMicrosoftOpenAI1 replies◆ premiumCPU-based autoscaling that suits a web tier quietly breaks on GPU inference: the signal is wrong, and replicas need minutes to warm. The interviewer wants the signals you genuinely scale on and how you mask the cold start.Open full answer →
35Your GPUs sit at 40% utilization during training. How do you find and fix the bottleneck?▼hardNVIDIAMetaGoogle2 replies◆ premiumPaying for accelerators that sit idle half the time is the most common waste in ML training, and the reflex to add more GPUs only makes it worse. The interviewer wants the profiling discipline that pinpoints what is starving them.Open full answer →
36Your LLM decode is slow even though GPU compute utilization looks low. Why is it memory-bandwidth-bound?▼hardNVIDIAOpenAIDatabricks2 replies◆ premiumThe counterintuitive reality of LLM serving: token generation is capped by how quickly you can read weights out of memory, not by arithmetic. Once that clicks, the entire optimization menu follows from one number.Open full answer →
37You doubled the GPUs but training barely got faster. Why doesn't distributed training scale linearly?▼hardMetaNVIDIAGoogle1 replies◆ premiumLinear scaling is the marketing figure; the actual curve bends early for reasons rooted in physics, not bugs. Here is where the speedup leaks and how to recover it.Open full answer →
38Your distributed training job hangs or crashes intermittently. How do you debug it?▼hardMetaNVIDIAOpenAI2 replies◆ premiumA 256-GPU job that freezes with no error at 3am is a special kind of pain. The causes come from a short, recurring list. Here is the systematic way to identify which one hit you.Open full answer →
39How do you cut training cost with spot/preemptible GPUs without losing days of work to a preemption?▼hardAWSGoogleDatabricks1 replies◆ premiumSpot GPUs frequently run 60-90% cheaper, and they disappear with two minutes' notice. The savings hold only if a preemption costs you minutes rather than the whole run. Here is how to make that the case.Open full answer →
40Your INT4-quantized model lost too much accuracy. How do you recover it?▼hardNVIDIAHugging FaceDatabricks2 replies◆ premiumNaive 4-bit quantization can wreck quality, and the reflex to give up and serve fp16 leaves a large speedup unclaimed. The accuracy is usually recoverable. Here is the ladder of fixes.Open full answer →
41Your inference p50 is fine but p99 latency spikes under load. How do you fix tail latency?▼hardNVIDIAOpenAIAWS2 replies◆ premiumUsers experience the p99, not the median, and the tail is where serving systems quietly break. The causes are queuing and batching effects, not a slow model. Here is how to flatten it.Open full answer →
42You have more models than GPUs. How do you share GPUs across many models and teams?▼hardNVIDIAAWSDatabricks1 replies◆ premiumPinning one GPU per model leaves most of a fleet stranded on idle silicon. Sharing safely is a genuine systems problem with four distinct mechanisms, each suited to a different traffic shape. Here is how to choose.Open full answer →
43Your inference server OOMs when requests arrive with long prompts. How do you handle variable-length memory?▼hardNVIDIAOpenAITogether1 replies◆ premiumA serving box steady on short prompts falls over the instant a 30k-token request arrives, because KV-cache memory scales with sequence length times batch. Here is how to bound it without crashing.Open full answer →
44Your large-model pretraining hits sudden loss spikes that don't recover. How do you stabilize it?▼hardOpenAIMetaGoogle2 replies◆ premiumAt billion-parameter scale, training can be running smoothly and then the loss jumps and never returns, burning a fortune in compute. The causes and the playbook are familiar to the few who've done it. Here it is.Open full answer →
46What is chunked prefill, and how does it stop long prompts from stalling decode?▼hardNVIDIAOpenAIMicrosoft1 replies◆ premiumOne long prompt can freeze every other user's token stream for hundreds of milliseconds. Chunked prefill carves that prompt up so decode keeps flowing. Here is the mechanism and the knob that controls it.Open full answer →
47How does prefix caching work internally in an LLM server, and when does it actually help?▼hardOpenAIAnthropicNVIDIA1 replies◆ premiumA shared system prompt is re-prefilled on every request unless the server remembers it. Prefix caching skips that work, but only when the blocks align exactly. Here is the hashing and eviction machinery underneath.Open full answer →
50How do you offload the KV cache to CPU or NVMe, and when is it worth the bandwidth hit?▼hardNVIDIAMicrosoftAWS1 replies◆ premiumGPU memory runs out well before you run out of conversations to cache. Offloading KV to CPU or NVMe buys capacity, but the interconnect can turn into the new bottleneck. Here is the bandwidth math.Open full answer →
51You quantized your serving model to FP8 and throughput doubled. How do you prove accuracy held?▼hardNVIDIAOpenAIDatabricks2 replies◆ premiumFP8 serving is fast and usually fine, until it quietly degrades on the one workload your benchmark did not cover. What counts is knowing what FP8 breaks and how to validate it. Here is the recipe.Open full answer →
52What is the serving overhead of structured (JSON/grammar-constrained) output, and how do you cut it?▼hardOpenAIAnthropicNVIDIA2 replies◆ premiumForcing valid JSON sounds free, but the mask computation can stall every decode step. The fix is precompiling the grammar into a fast automaton. Here is where the cost hides and how to strip it out.Open full answer →
53How do you serve multiple models on shared GPUs using MIG, MPS, or model swapping?▼hardNVIDIAAWSMicrosoft1 replies◆ premiumMost models do not fill a GPU, so one model per GPU wastes money. The three sharing mechanisms (MIG, MPS, swapping) differ widely in isolation and overhead. Here is how to pick.Open full answer →
54Traffic arrives in sharp bursts and your LLM p99 spikes each time. How do you absorb the bursts?▼hardOpenAIAWSNVIDIA2 replies◆ premiumAutoscaling reacts in minutes, but a burst lands in seconds, and the gap is where your tail latency dies. Absorbing bursts is about buffers and shedding, not just adding replicas. Here is the playbook.Open full answer →
56Walk through the ZeRO stages and FSDP internals. Where does the memory actually go and when is it gathered?▼hardMicrosoftMetaNVIDIA1 replies◆ premiumZeRO and FSDP both shard training state across data-parallel ranks, but the trick is in when each shard is gathered and freed. Get the memory accounting and the all-gather timing and you can size any run.Open full answer →
57Beyond basic gradient checkpointing, how do you choose selective activation recomputation to maximize MFU?▼hardNVIDIAGoogleMeta2 replies◆ premiumFull activation checkpointing saves memory but costs a flat 30% extra compute. Selective recomputation wins most of that back by recomputing only the cheap, memory-heavy operations. Here is how to pick what to recompute.Open full answer →
58How do you overlap communication with computation in distributed training, and how do you verify it works?▼hardNVIDIAMetaGoogle1 replies◆ premiumThe collective communication in distributed training is pure overhead unless it runs while the GPU computes. Hiding it is the difference between 30% and 55% MFU. Here is how the overlap actually works and how you check it on a trace.Open full answer →
61Design fault-tolerant checkpointing for a 1000-GPU training run. How do you minimize lost work on a failure?▼hardMetaNVIDIAMicrosoft2 replies◆ premiumOn a large training run a node will drop, and the interesting question is not whether but how many GPU-hours vanish when it does. Checkpoint cadence, sharded writes, and quick restart settle that.Open full answer →
62Your training collectives are slow. How do you debug the NCCL/interconnect path and find where bandwidth is lost?▼hardNVIDIAMetaMicrosoft2 replies◆ premiumWhen all-reduce is your bottleneck, the culprit is nearly always a misconfigured path: traffic on the wrong link, a dead NIC, or a topology NCCL failed to discover. Here is the methodical way to track down the missing bandwidth.Open full answer →
64Your activations for one long sequence no longer fit on a GPU. Explain context parallelism and ring attention.▼hardNVIDIAAnthropicOpenAI◆ premiumData, tensor, and pipeline parallelism each leave a single sequence's activations on one device, so training past 200k tokens hits a wall none of them can clear. The fourth axis shards the sequence itself, and the interview turns on the communication math.Open full answer →
65Reasoning models made your traffic decode-heavy: 30k thinking tokens per request. What changes in your serving stack?▼hardOpenAIAnthropicNVIDIA◆ premiumWhen each request thinks for 30,000 tokens, serving swings from compute-bound prefill to memory-bound decode, and the KV cache turns into the resource you genuinely schedule. The levers that governed chat traffic stop being the ones that count.Open full answer →
68What is goodput for an LLM service, and why is tokens per second a vanity metric?▼hardOpenAIAnthropicNVIDIA◆ premiumRaw tokens per second is gameable: crank the batch size and the dashboard looks great while every request misses its latency target. Goodput is the throughput that actually meets your SLOs, and it is the number you size and autoscale on.Open full answer →
01A tool-using agent reads untrusted web content. How do you defend against prompt injection?▼hard★ EssentialAnthropicOpenAIMicrosoft3 repliesunlockedThere is no one-shot patch for prompt injection, and answering 'sanitize the input' loses the round. What lands is defense in depth: privilege boundaries, handling retrieved content as data rather than instructions, and a human gate on irreversible actions. Here is the layered answer.Open full answer →
02How do you handle PII and data governance for an enterprise LLM deployment (SOC 2, GDPR, the EU AI Act)?▼hard★ EssentialMicrosoftGoogleDatabricks2 repliesunlockedA CISO-facing question that trips up engineers who focus only on model quality. What matters is treating governance as architecture rather than a checkbox: minimization, isolation, auditability, and never training on customer data by default. Here is the framework.Open full answer →
03Design an evaluation and guardrail stack for an LLM feature: jailbreaks, toxicity, and hallucination.▼hard★ EssentialAnthropicOpenAIGoogle2 repliesunlockedGetting an LLM feature to production safely is an evaluation problem first and a model problem second. What lands is a layered eval-plus-guardrail design with honest, segmented metrics rather than a single 'safety classifier.' Here is how to measure and defend each failure mode.Open full answer →
04How do you detect and mitigate bias in an ML model used for consequential decisions?▼hardGoogleMicrosoftAmazon1 repliesunlockedFairness questions catch engineers who treat it as a vibe. What lands is knowing the formal fairness metrics conflict mathematically, that you have to choose one deliberately for the context, and where bias enters the pipeline. Here is the rigorous, honest answer.Open full answer →
07What are data poisoning and ML supply-chain attacks, and how do you defend against them?▼hard★ EssentialGoogleMicrosoftAnthropic1 repliesunlockedMost ML security centers on inference-time attacks; this one targets the training pipeline, where a poisoned dataset or a tampered dependency can hide a backdoor that clean-data evaluation never catches. What lands is naming the attack classes and recognizing that defense means provenance, not a single model fix.Open full answer →
08Explain differential privacy and privacy-preserving ML (DP-SGD, federated learning). When do you use them?▼hardGoogleAppleMicrosoft2 repliesunlockedPrivacy starts as a governance requirement and turns into a training-time technique. What lands is knowing what differential privacy actually promises (and what it costs), plus how federated learning and DP fit together. Here is the rigorous, honest answer.Open full answer →
09Explain model extraction and membership inference attacks, and how you defend against them.▼hardGoogleMicrosoftAnthropic2 repliesunlockedTwo attacks aimed at a deployed model's confidentiality: copying its functionality through the API, and deducing who was in its training data. What lands is naming the precise mechanism each exploits and recognizing that every defense trades against utility.Open full answer →
15What is federated learning, and how do you defend it against a poisoning participant?▼hardGoogleAppleNVIDIA1 replies○ sign inFederated learning trains across decentralized devices without pooling data, yet a malicious participant can poison the shared model. What lands is the privacy mechanism plus the outlier-resistant aggregation defenses. Here is the answer.Open full answer →
21What is machine unlearning, and how do you make a model 'forget' specific data?▼hardGoogleMicrosoftApple2 replies◆ premiumGDPR erasure and copyright takedowns require pulling a user's influence out of trained weights, not just deleting a dataset row. The signal is knowing why deletion falls short and where retrain, SISA, and approximate scrubbing each sit on the cost-versus-proof curve.Open full answer →
27What is confidential computing (secure enclaves / TEEs), and when is it used for AI?▼hardMicrosoftGoogleNVIDIA2 replies◆ premiumEncryption protects data at rest and in transit, but the instant you compute on it the data sits as cleartext in memory. Confidential computing closes that gap. The signal is the TEE concept, attestation, and the AI workloads that genuinely need it.Open full answer →
28What are the main privacy-preserving ML techniques, and how do they differ?▼hardGoogleAppleMicrosoft1 replies◆ premiumPrivacy in ML is a toolbox, not one switch, and each tool defends a different threat. The signal is mapping DP, federated learning, confidential computing, encryption, and minimization to what each one actually protects, and knowing they compose.Open full answer →
30What are gradient inversion attacks, and why do they threaten federated learning?▼hardGoogleAppleMicrosoft2 replies◆ premiumFederated learning transmits gradients, not raw data. The catch: a gradient is derived from the data, so it carries the data. The signal is knowing why 'we only share gradients' is not a privacy guarantee. Here is the answer.Open full answer →
31What is indirect prompt injection, and why is it so dangerous for RAG and agents?▼hardAnthropicOpenAIMicrosoft1 replies◆ premiumWith direct injection the user attacks the prompt. With indirect injection the payload sits inside a page, doc, or email the model reads. The signal is recognizing that retrieved and tool data is untrusted and can hijack the model. Here is the answer.Open full answer →
33Your RAG system can surface documents a user shouldn't see. How do you enforce authorization in retrieval?▼hardGleanMicrosoftSalesforce2 replies◆ premiumAn enterprise RAG that retrieves across everyone's documents is a breach in waiting. The fix belongs in the retrieval layer, not the prompt. Here is the design that survives a security review.Open full answer →
35Your model regurgitates verbatim training data, including PII. How do you prevent memorization?▼hardAnthropicOpenAIGoogle DeepMind1 replies◆ premiumLarge models memorize and can be coaxed into emitting training examples verbatim, a genuine privacy and copyright liability. The defenses reach across data, training, and output. Here is the layered answer.Open full answer →
36Your model denies someone a loan, and they demand to know why. How do you handle the right to explanation?▼hardCapital OneStripeGoogle2 replies◆ premiumFor consequential decisions, 'the model said so' will not satisfy a regulator. Adverse-action notices and the right to explanation limit which model you can even ship. Here is the governance view.Open full answer →
38Design data isolation for a multi-tenant AI SaaS so one customer's data can never leak to another.▼hardSalesforceGleanSnowflake2 replies◆ premiumAI features create cross-tenant leak paths that classic SaaS isolation never had to reckon with: shared embeddings, shared caches, and fine-tunes that memorize. One leak ends an enterprise contract. Here is the isolation model.Open full answer →
39A user invokes their right to be forgotten. How do you delete their data across the whole ML stack?▼hardAppleGoogleMeta2 replies◆ premiumDeleting a row is trivial. Removing a person's influence from embeddings, caches, derived datasets, and a trained model is not. GDPR and CCPA demand it regardless. Here is the plan that survives an audit.Open full answer →
40Your agent reads untrusted content and can send data externally. How do you stop prompt-injection data exfiltration?▼hardAnthropicOpenAIMicrosoft2 replies◆ premiumWhen an agent holds private data, reads untrusted text, and can talk to the outside, injected instructions can steal data. This 'lethal trifecta' is the defining agent vulnerability. The fix is architectural, not a better prompt.Open full answer →
41Threat-model an LLM application from scratch. What is the attack surface and how do you reason about it?▼hardMicrosoftGoogleAnthropic1 replies◆ premiumBefore naming defenses, a security engineer maps the attack surface systematically. LLM apps present a wider, stranger surface than classic software. Here is how to threat-model one end to end.Open full answer →
42What are multi-turn jailbreaks like crescendo, and why do single-turn filters miss them?▼hardAnthropicOpenAIMicrosoft1 replies◆ premiumA request that gets refused in one message often lands when broken across ten. The signal is understanding that conversational state is part of the attack surface, and that turn-by-turn classifiers see only fragments.Open full answer →
43How do attackers smuggle prompt injections past filters using encoding and obfuscation?▼hardAnthropicOpenAIMicrosoft1 replies◆ premiumbase64, leetspeak, invisible Unicode, and foreign scripts each let a payload look like gibberish to your filter yet read as a clear instruction to the model. The signal is knowing why the model decodes what the classifier cannot.Open full answer →
44Give a taxonomy of LLM jailbreaks and the layered defenses that actually hold up.▼hardAnthropicOpenAIGoogle1 replies◆ premiumRoleplay, obfuscation, optimization-based suffixes, and multi-turn escalation are distinct attack classes that call for distinct defenses. The signal is organizing the space and pairing each class with a control instead of hoping one filter covers all.Open full answer →
45What are backdoor (trojan) attacks on ML models, and how do you detect a poisoned model?▼hardGoogleMicrosoftAnthropic1 replies◆ premiumA backdoored model acts perfectly until it meets a secret trigger, then flips. The signal is explaining why clean test accuracy never exposes it, and what detection actually buys you when the trigger is unknown.Open full answer →
47How do tool-result and memory poisoning attacks compromise an AI agent, and how do you defend?▼hardAnthropicOpenAIMicrosoft1 replies◆ premiumAn agent that trusts its tools and its own memory can be redirected by one poisoned record that resurfaces turns or sessions later. The signal is treating persistent state as an attack surface, not just the live prompt.Open full answer →
48What are the data-exfiltration channels in an AI agent, and how do you close them?▼hardAnthropicOpenAIMicrosoft2 replies◆ premiumA hijacked agent does not need a 'send email' tool to leak secrets. A rendered markdown image, a URL parameter, or a DNS lookup will do. The signal is enumerating the covert channels and locking down egress, not just tools.Open full answer →
49Why is 'the model is not a trust boundary' the core principle of secure RAG, and how do you build on it?▼hardAnthropicMicrosoftGoogle2 replies◆ premiumAsking the model to keep secrets or enforce permissions puts the job on the wrong component. The signal is enforcing access control before retrieval, in code you trust, and treating the LLM as untrusted compute over data that is already authorized.Open full answer →
50How do you set and spend an epsilon budget when deploying differential privacy in practice?▼hardAppleGoogleMicrosoft1 replies◆ premiumEpsilon is the privacy knob, and shipping DP means picking a number, justifying it, and tracking what each query spends. The signal is treating epsilon as a finite budget that composes, not a magic constant. Here is the answer.Open full answer →
51When is federated learning actually worth it versus centralizing the data?▼hardGoogleAppleNVIDIA1 replies◆ premiumFederated learning keeps data on-device, but you pay for it in accuracy, debuggability, and engineering complexity. The signal is naming when those costs are justified and when a simpler centralized pipeline with DP wins. Here is the answer.Open full answer →
54Walk me through how you run a bias and fairness audit on a deployed model.▼hardMicrosoftGoogleLinkedIn1 replies◆ premiumA fairness audit is a structured process: pick protected attributes, choose metrics that fit the harm, measure disaggregated performance, and document findings. The signal is knowing the metrics conflict and which one the use case requires. Here is the answer.Open full answer →
57Under the EU AI Act, what concrete obligations attach to a high-risk system versus a GPAI model?▼hardMicrosoftGoogleOpenAI1 replies◆ premiumThe EU AI Act hands different duties to high-risk deployers, GPAI model providers, and limited-risk systems. The signal is naming the specific obligations per tier, not merely reciting that risk tiers exist. Here is the answer.Open full answer →
58Your agent calls tools on behalf of users. How do you design its identity, credentials, and authorization?▼hardGleanSierraAnthropic◆ premiumAn agent running on a single over-privileged service account is a confused deputy waiting to happen. The signal is per-user delegated credentials, token exchange, per-tool scopes, and an audit trail that names the human. Here is the answer.Open full answer →
59Radiologists agree with your model 98% of the time, even when it is wrong. How do you stop automation bias?▼hardGoogleMicrosoftEpic◆ premiumHuman-in-the-loop is the mitigation everyone writes into the risk register and almost nobody measures. When the reviewer anchors on a confident model output, your oversight control fails exactly on the cases it existed to catch.Open full answer →
60Your hiring model never sees gender, and it still discriminates. How do you find and remove proxy features?▼hardLinkedInWorkdayMeta◆ premiumDropping the protected attribute is the answer most candidates give, and it accomplishes nothing: the attribute is reconstructible from the features you kept. Here is how to actually locate the proxies and what removing them costs you.Open full answer →
61Your model passes bias checks for gender and for race separately, but fails for Black women. How do you handle intersectional fairness?▼hardGoogleMicrosoftLinkedIn◆ premiumSingle-axis fairness audits are just another form of averaging, and they average away the exact group that is being harmed. The hard part is not noticing that: it is handling the combinatorial blowup, the tiny cells, and the multiple-testing problem without chasing ghosts.Open full answer →
65Your differentially private model lost most of its accuracy. How do you buy the utility back?▼hardAppleGoogleMicrosoft◆ premiumPicking epsilon is the easy half. The hard half is the accuracy you just gave up, and the levers that get it back are not the ones most candidates reach for.Open full answer →
66Your text safety tests all pass. How do you red team a model that also takes images and audio?▼hardOpenAIAnthropicGoogle◆ premiumYour guardrail reads text. The attack is not in the text. That single sentence is the whole vulnerability, and the red team you build from it looks nothing like the one you already have.Open full answer →
44A deployment to a customer's production environment failed. Walk me through how you recovered.▼hardPalantirDatabricksScale AI2 replies◆ premiumA failed prod deployment stress-tests judgment under pressure. Interviewers want to see stabilize-first instincts, clean communication, and a root-cause fix that heads off a repeat. Here is the arc.Open full answer →
50Tell me about an ethical dilemma where you had to push back on something you were asked to do.▼hardAnthropicGooglePalantir2 replies◆ premiumEthical pushback probes integrity and judgment under pressure. Interviewers look for principled, specific action, not a generic statement of values. Here is the arc that signals real backbone.Open full answer →
52A key customer is about to churn. Walk me through how you would try to save the account.▼hardSalesforceDatabricksSnowflake2 replies◆ premiumRescuing a churning account is diagnosis under pressure: find the real reason, fix what you can, and win back trust with action. Interviewers look for a method, not a discount. Here is the move.Open full answer →
01Design the ranking model for a personalized feed (Instagram-style).▼hard★ EssentialMetaLinkedInPinterestunlockedWith billions of candidate items and only tens of milliseconds to choose the next 10, a feed is a latency problem first. The interview probes the two-stage architecture, how you set the objective when engagement fights integrity, and the biases that silently corrupt your training labels.Open full answer →
02Design a music recommendation system (Spotify-style).▼hard★ EssentialSpotifyAppleAmazonunlockedA track runs three minutes, a session runs an hour, and a fresh release has zero plays on launch day. The interview centers on mixing collaborative filtering with audio content embeddings, handling cold start on both sides, and reading a skip as the loud negative it really is.Open full answer →
03Design an evaluation framework for an ads-ranking system.▼hard★ EssentialMetaGoogleAmazonunlockedTraining a pCTR model is the easy part. The challenge is proving a change helps before it reaches revenue, when the model runs inside an auction, the logs surface only ads that won, and a 1% calibration error costs real money. This is an eval question, not a model question.Open full answer →
04Predict watch time for items in a video catalog, Netflix-style. How do you build it?▼hardNetflixYouTubeDisney+unlockedWatch time is the label everyone optimizes and hardly anyone measures cleanly. You see minutes only for videos people chose to play, the distribution is savagely skewed, and the slot they saw it in shifted the number. The interview asks whether you can predict a biased label honestly.Open full answer →
05Design a system to detect bots and inauthentic accounts in real time.▼hard★ EssentialMetaRobloxGoogleunlockedThe positive class runs about 1 in 1,000, your labels show up late and noisy, and the instant you ship a model the adversary starts probing it. This is the uncommon ML problem where the data actively fights back, so the design hinges on labels, latency, and enforcement cost as much as on the classifier.Open full answer →
06Design a CTR and conversion-rate prediction system for ads.▼hardGoogleMetaAmazonunlockedThis model's output is a price input, not a ranking. A miscalibrated CTR skews the auction bid, so you overpay or underdeliver. Throw in conversions that arrive days after the click and advertisers with no history, and calibration plus delayed feedback become the entire interview.Open full answer →
07Design an ETA prediction system for a maps or navigation app.▼hardGoogleUberDoorDashunlockedAn ETA is a promise. The interview tests whether you model it as a point estimate (and apologize when it misses) or as a distribution where p90 lets you under-promise, and how you feed live traffic and completed trips back into the model.Open full answer →
08Design a landmark or image recognition system at scale.▼hardGoogleApplePinterestunlockedMillions of landmarks exist, most with only a handful of photos, and the next photo could show something not in your catalog at all. A flat classifier collapses on the long tail and never says 'I don't know.' The interview is embeddings plus retrieval plus a confident refusal.Open full answer →
09Build a fraud-detection model for payments.▼hard★ EssentialStripePayPalAdyenunlockedFraud is well under 1% of transactions, the labels land weeks late as chargebacks, and the fraudsters deliberately adapt to your model. Optimizing accuracy hands you a model that approves everything. The interview is about dollars-at-risk thresholding, label delay, and a review queue with a fixed headcount.Open full answer →
10Design a recommendation engine for an online-course (or e-commerce) catalog.▼hardAmazonCourseraUdemyunlockedNew courses launch every week and most browsers are signed-out or brand new, so the interesting half of this problem is what you recommend when you have almost no behavioral signal. The other half is avoiding the trap of optimizing engagement into a clickbait catalog.Open full answer →
11Design the 'For You' ranking system for a short-video feed.▼hardTikTokMetaYouTube○ sign inThis product succeeds or fails on a feedback loop measured in seconds: every swipe is a label, and the following video must respond to it. The tricky part is exploring widely enough to learn what someone enjoys while avoiding a filter bubble or the amplification of junk.Open full answer →
12Design learning-to-rank for product/marketplace search.▼hardAmazonDoorDashEtsy○ sign inA search box is a recommender carrying a strong prior: the query. The difficult pieces are reading ambiguous intent, retrieving in two stages within a tight latency budget, and learning from clicks without teaching the model that whatever appeared first is best.Open full answer →