02When do you choose prompting vs RAG vs fine-tuning for a customer problem?▼medium★ EssentialOpenAIAnthropicCohere2 repliesunlockedThe most frequently asked applied GenAI question, and the one most candidates turn into a definition dump. What the interviewer wants is a decision framework with a default and the conditions that override it. Here is the call that earns points.Open full answer →
04Encoder-only vs decoder-only vs encoder-decoder: when do you use each, and why are decoder-only models dominant?▼medium★ EssentialGoogleOpenAICohere2 repliesunlockedA tidy fundamentals question that trips up anyone who only knows GPT. The signal is pairing each architecture to its task through its attention pattern, and explaining why the field settled on decoder-only even for tasks that are not generation. Here is that answer.Open full answer →
05What causes LLM hallucinations, and how do you reduce them in a production feature?▼medium★ EssentialOpenAIAnthropicMicrosoft2 repliesunlockedEvery customer wants to know how to stop the model inventing things. The weak reply is 'better prompts.' The signal is understanding why models hallucinate and stacking grounding, abstention, and measurement into a system you can defend.Open full answer →
06Explain tokenization (BPE, WordPiece, SentencePiece) and why it quietly drives cost, latency, and quality.▼medium★ EssentialOpenAICohereGoogle1 repliesunlockedTokenization reads like plumbing until it accounts for your bill, your latency, and why the model stumbles on numbers and rare languages. The signal is understanding how subword tokenizers operate and the consequences that follow from them.Open full answer →
09Explain temperature, top-k, and top-p (nucleus) sampling. When do you use greedy vs sampling?▼medium★ EssentialOpenAICohereAnthropic1 repliesunlockedEvery LLM product tunes these knobs, and the interviewer wants to hear what each one does to the probability distribution and which setting suits which task. That includes why factual and creative tasks call for opposite settings.Open full answer →
11What are word embeddings (Word2Vec, GloVe), and how do they capture meaning?▼medium★ EssentialGoogleCohereMeta1 replies○ sign inEmbeddings are the foundation of modern NLP and retrieval. This tests whether you grasp the distributional idea behind them, not just 'words become vectors.' What matters is how training on context yields geometry that encodes meaning.Open full answer →
12What is perplexity, and what are its limits as a language-model metric?▼mediumOpenAIGoogleCohere2 replies○ sign inPerplexity is the classic LM metric. What matters is knowing it is just exponentiated cross-entropy, what it intuitively captures, and why low perplexity does not mean a good product.Open full answer →
14What is in-context learning, and why does chain-of-thought prompting improve results?▼medium★ EssentialOpenAIAnthropicGoogle2 replies○ sign inIn-context learning is the property that turned prompting into a paradigm; chain-of-thought is its most useful trick. What matters is knowing what 'learning' means here (no weight updates) and why making the model reason step by step actually helps. Here is the answer.Open full answer →
15Explain self-consistency and tree-of-thought prompting. When are they worth the extra cost?▼mediumOpenAIGoogleAnthropic1 replies○ sign inTwo prompting strategies that purchase accuracy with extra compute. What matters is knowing how each explores the reasoning space, that they trade tokens and latency for reliability, and how to judge when the problem actually warrants it. Here is that answer.Open full answer →
16What is ReAct (Reasoning + Acting) prompting, and why does interleaving thought and action help?▼mediumOpenAIAnthropicGoogle1 replies○ sign inReAct is the pattern behind most tool-using agents. What matters is why interleaving reasoning with actions (and observing results) beats reasoning alone or acting alone. Here is the answer that ties the prompt pattern to real agent behavior.Open full answer →
18What are small language models (SLMs) and reasoning models (LRMs), and when do you choose each?▼mediumMicrosoftOpenAIGoogle2 replies○ sign inThe 2025-2026 landscape isn't 'bigger is better' anymore. What matters is knowing why small models and reasoning models exist, the test-time-compute tradeoff, and routing the right model to the right task. Here is the practitioner's view.Open full answer →
19How do you design system prompts and prompt templates for production?▼mediumOpenAIAnthropicMicrosoft1 replies○ sign inWhat separates a demo prompt from a production prompt is structure, versioning, and defense. What matters is treating the system prompt as a contract and templates as parameterized, testable artifacts. Here is the answer.Open full answer →
20What is prompt chaining, and why do production systems need output parsers?▼mediumMicrosoftOpenAICohere2 replies○ sign inComplex tasks rarely fit one prompt, and free-text LLM output rarely drops into code cleanly. What matters is decomposing into chained steps and parsing each output. Here is the answer that ties prompting to real pipelines.Open full answer →
21What is jailbreaking, what are the common techniques, and how do you defend against it?▼mediumOpenAIAnthropicGoogle2 replies◆ premiumJailbreaking is the adversarial sport of steering a model around its own safety training. What matters is naming the technique families and treating defense as a layered, never-finished arms race, not a one-time patch.Open full answer →
22What is instruction tuning, and how does it differ from pretraining and alignment?▼medium★ EssentialOpenAIAnthropicGoogle1 replies◆ premiumInstruction tuning converts a bare next-token predictor into a model that obeys instructions. What you are being tested on is slotting it correctly into the pretrain to SFT to alignment pipeline and stating precisely what it does and does not repair.Open full answer →
25Explain BLEU, ROUGE, and BERTScore. When would you use each, and what are their limits?▼mediumGoogleOpenAICohere2 replies◆ premiumThe classic automatic metrics for generated text. Interviewers want you to pair each with its task and identify the blind spot common to all three. Candidates who pass explain why none of them is the last word on quality.Open full answer →
26What are MMLU, HumanEval, and GSM8K, and how do you interpret LLM benchmark scores?▼mediumOpenAIGoogleAnthropic1 replies◆ premiumPlenty of people cite benchmark numbers; almost nobody reads them carefully. What shows depth is explaining what each one measures and why leaderboard figures outrun real-world skill. The question the interviewer is saving is how you would spot contamination.Open full answer →
27How do you prepare a dataset to fine-tune an LLM, and why does data quality dominate?▼mediumOpenAIAnthropicCohere2 replies◆ premiumFine-tuning lives or dies on data, not on hyperparameters. What shows depth is spelling out what makes a set good (quality, diversity, format, dedup) and defending why a few thousand clean examples outperform a million noisy ones.Open full answer →
29What is G-Eval / LLM-as-a-judge, and how do you make it reliable?▼medium★ EssentialOpenAIMicrosoftCohere1 replies◆ premiumLLM-as-judge is how you grade open-ended generation at scale, and G-Eval put a formal frame on it. What shows depth is naming the biases that make raw judge scores untrustworthy and demonstrating exactly how you harden them.Open full answer →
30What is the difference between offline and online evaluation, and why do you need both?▼mediumMetaGoogleMicrosoft2 replies◆ premiumOffline metrics gate releases; online metrics reveal what actually happened with users. What shows depth is understanding why offline wins routinely fail to hold up online, and how the two feed each other.Open full answer →
32What is cross-attention, and how does it differ from self-attention?▼mediumGoogleOpenAICohere1 replies◆ premiumCross-attention is how a model attends from one sequence into another, the mechanism behind encoder-decoder models and multimodal conditioning. What shows depth is knowing exactly where the queries versus keys/values come from.Open full answer →
33What do the feed-forward (MLP) layers in a transformer do, and why are they most of the parameters?▼mediumGoogleOpenAINVIDIA1 replies◆ premiumAttention gets all the attention, but the feed-forward layers hold most of a transformer's weights and handle much of the per-token 'knowledge' work. What shows depth is knowing what the FFN computes and why it dominates the parameter count.Open full answer →
34Why is an LLM's context window limited, and how do models extend it?▼mediumGoogleOpenAIAnthropic2 replies◆ premiumContext windows are not arbitrary figures; they follow from attention's quadratic cost, KV-cache memory, and how the model was trained. What shows depth is naming all three causes and matching each to the technique that extends it.Open full answer →
36How do you decide between an open-source (self-hosted) LLM and a closed-source API model?▼mediumMicrosoftDatabricksCohere1 replies◆ premiumThis is an architecture and business decision, not a religious one. What shows depth is weighing capability, cost, privacy, control, and operational burden, then committing to a call instead of declaring 'open is always better.'Open full answer →
39How does LLM tool calling (function calling) actually work under the hood?▼medium★ EssentialOpenAIAnthropicMicrosoft1 replies◆ premiumTool calling powers every agent. The signal is grasping that the model executes nothing: it emits a structured request your code runs, then you hand the result back. Here is the loop and the details that determine reliability.Open full answer →
43What are neural scaling laws and the Chinchilla compute-optimal result?▼mediumGoogleOpenAIAnthropic1 replies◆ premiumScaling laws explain why bigger models trained on more data predictably improve, and Chinchilla changed how we allocate compute. The signal is the model-size-vs-data tradeoff and the fact that many models were under-trained. Here is the answer.Open full answer →
44Compare LLM decoding strategies: greedy, beam search, temperature, top-k, top-p, and repetition penalties.▼mediumOpenAIGoogleCohere1 replies◆ premiumHow you decode from the model's probabilities shapes the output as much as the model itself. The signal is knowing the deterministic vs sampling methods and where each fits (factual vs creative). Here is the answer.Open full answer →
45What's the difference between masked language modeling (BERT) and causal language modeling (GPT)?▼mediumGoogleOpenAIMeta1 replies◆ premiumBERT and GPT diverge on one decision made before a single weight is trained: what does each token get to see? That choice ripples into attention, use case, and why one family now dominates. Here is the answer.Open full answer →
47How does constrained / structured decoding force an LLM to emit valid JSON or grammar?▼mediumOpenAIAnthropicMicrosoft2 replies◆ premiumPrompting for JSON works until it doesn't, and at scale the tail breaks your parser. Constrained decoding makes malformed output literally impossible to sample. The signal is knowing exactly where in the loop the constraint takes hold. Here is the answer.Open full answer →
48What challenges arise with multilingual LLMs, and why does tokenization penalize some languages?▼mediumGoogleCohereMeta1 replies◆ premiumMultilingual models are uneven across languages, and most candidates cite only the obvious cause. The differentiator is the tokenizer: the same sentence can cost a non-English user several times as many tokens. Here is the answer.Open full answer →
50How do you turn token embeddings into a single sentence/document embedding (pooling)?▼mediumGoogleCohereMicrosoft1 replies◆ premiumA transformer emits one vector per token, but retrieval needs one vector per text. The signal is knowing the pooling options and the catch nearly everyone overlooks: the model has to be trained for whichever one you pick.Open full answer →
55What is automated prompt optimization (e.g. DSPy), and why move beyond hand-tuning prompts?▼mediumDatabricksMicrosoftCohere1 replies◆ premiumHand-tuned prompts break on the next model upgrade and fail to compose across pipeline stages. Frameworks like DSPy compile prompts against a metric instead. The signal is treating prompting as an optimized program. Here is the answer.Open full answer →
56How do you evaluate long-context models (needle-in-a-haystack and beyond)?▼mediumGoogleAnthropicOpenAI1 replies◆ premiumA model that claims a million-token window may not actually exploit it. The signal is knowing needle-in-a-haystack, where it fails, and how to probe genuine multi-fact reasoning across the entire context. Here is the answer.Open full answer →
58Given a new LLM use case, how do you decide between prompting, RAG, fine-tuning, and tools/agents?▼mediumOpenAIAnthropicMicrosoft2 replies◆ premiumThe senior signal is fitting the method to what is genuinely missing rather than reaching for your favorite. Knowledge, behavior, or actions each steer you to a different tool. Here is the decision framework that scores highest.Open full answer →
59What are Matryoshka embeddings, and why are they useful for retrieval at scale?▼mediumGoogleOpenAICohere1 replies◆ premiumA single trained embedding you can cut to any length and still use. The signal is the nested-prefix training objective and the coarse-to-fine retrieval win it enables at scale. Here is the answer.Open full answer →
61Your LLM's answers are too long and rambling. How do you control response length in production?▼mediumOpenAICohereSierra1 replies◆ premiumToken count is latency and dollars, not merely style. 'Be concise' hardly works, and max_tokens just cuts off mid-sentence. Here is how to genuinely shape length without amputating answers.Open full answer →
65Your LLM coding assistant keeps suggesting deprecated APIs. How do you fix stale knowledge?▼mediumCognitionGitHubOpenAI1 replies◆ premiumThe model's training cutoff is frozen, but your dependencies shift weekly. Retraining is the wrong reflex. Here is how teams keep code suggestions current without touching the weights.Open full answer →
66Your model repeats phrases and gets stuck in loops on long generations. How do you fix degeneration?▼mediumOpenAICohereMistral2 replies◆ premiumNeural text degeneration is a known failure of likelihood-maximizing decoding, not a broken model. The fixes are specific decode-time knobs. Here is which lever to reach for and what each one costs.Open full answer →
68How do you design stopping criteria and stop sequences for an LLM in production?▼mediumOpenAIAnthropicCohere1 replies◆ premiumGeneration has to end somewhere, and the wrong stop rule either truncates answers or wastes tokens on trailing garbage. Here is how the EOS token, stop strings, and max-token caps actually interact.Open full answer →
71What's the difference between evaluating a model and evaluating the product around it, and why do you need both?▼mediumOpenAIAnthropicScale AI2 replies◆ premiumA model that scores 92% on your eval can still ship a product users hate, because the model is one component in a system. Teams that run only model evals get blindsided. Here is the distinction that matters.Open full answer →
82When do you use pairwise versus pointwise evaluation for LLM outputs, and what does each get wrong?▼mediumOpenAIMicrosoftCohere1 replies◆ premiumPairwise asks which one wins, pointwise asks how good a single output is. The signal is knowing which is more reliable, how Elo/Bradley-Terry aggregates comparisons, and where each method quietly misleads.Open full answer →
84How do you design an offline LLM eval harness so the numbers are reproducible and comparable?▼mediumHugging FaceOpenAIMicrosoft2 replies◆ premiumThe same model can land ten points apart on MMLU depending on prompt format and scoring method. The signal is knowing the knobs (log-prob vs generation, few-shot, normalization) that make evals reproducible.Open full answer →
94What is the GGUF format, and what do llama.cpp k-quants (Q4_K_M, Q5_K_S) actually mean?▼mediumHugging FaceAppleAWS1 replies◆ premiumGGUF powers most local LLM runs, and its quant names look cryptic. What matters is decoding what Q4_K_M means and why mixed-precision k-quants outperform naive uniform quantization.Open full answer →
101What are instruction-tuned embeddings, and why do query and passage prefixes matter?▼mediumCohereHugging FaceMicrosoft1 replies◆ premiumModern embedding models expect a task instruction prepended to the text, and a wrong prefix quietly wrecks retrieval. The signal is why instructions help and the asymmetric query/passage convention.Open full answer →
104Your diffusion model ignores the precise layout you asked for. How do you make image generation controllable?▼mediumStability AIAdobeMidjourney◆ premiumText prompts are a one-dimensional control surface, and cranking the guidance scale until the model obeys just burns your image. The candidates who pass name the right conditioning mechanism for the right kind of control.Open full answer →
105What are the key hyperparameters for fine-tuning an LLM, and how do you actually set them?▼mediumHugging FaceDatabricksTogether AI◆ premiumEveryone can name learning rate and epochs. The signal is knowing that LoRA wants a learning rate roughly 10x higher than full fine-tuning, why alpha/r is the only scaling that matters, and which curve tells you your rank is too big.Open full answer →
106How do you evaluate a multi-turn conversation, not just a single response?▼mediumOpenAIAnthropicSierra◆ premiumYour assistant scores 4.6 out of 5 on every individual turn and still loses the user by turn eight. Per-turn averages hide the failures that actually cancel subscriptions, and here is the session-level eval that catches them.Open full answer →
107Your prompts are enormous and repetitive. How do you compress context without losing accuracy?▼mediumAnthropicOpenAICursor◆ premiumMost teams reach for a token-dropping compressor and pay an accuracy tax for tokens they could have had for almost nothing. The ranking of levers matters more than any single technique, and the top of the list is not compression at all.Open full answer →
108Your fine-tuned model reproduces training examples word for word instead of generalizing. How do you fix it?▼mediumHugging FaceDatabricksScale AI◆ premiumA paraphrased prompt comes back with a training answer, verbatim. This is small-dataset SFT overfitting, not the pretraining memorization problem people confuse it with, and the fix has a strict order of operations.Open full answer →
109Your chatbot loses the thread after ten turns and breaks when the user changes topic. How do you manage conversation state?▼mediumOpenAIAnthropicCohere◆ premiumAppending every turn is the default in tutorial code and it fails twice: on the context window and on cost. The signal is the layered assembly, the constraints you refuse to let the summarizer touch, and what you do the moment the user changes subject.Open full answer →
110Explain multimodal fusion: early, late, and cross-attention. Which architecture would you pick, and when?▼mediumOpenAIGoogle DeepMindMeta◆ premiumFour fusion families, and the choice between them is decided by one question most candidates never ask. Naming CLIP and LLaVA is table stakes; the score comes from knowing which one cannot reason and which one eats your context window.Open full answer →
115Walk me through everything that happens between the user hitting Enter and the first token appearing.▼mediumAnthropicOpenAINVIDIA◆ premiumThe whiteboard question that spans the entire stack, from BPE to the sampler. What separates a strong answer is knowing that prefill and decode stress opposite hardware resources, and that nearly every serving decision you will ever make falls out of that one fact.Open full answer →
116What is causal masking, and why does it let you train on every position in a sequence at once?▼mediumGoogleOpenAIMeta◆ premiumOne triangle of negative infinity, added before the softmax, is what makes transformer training parallel and generation stubbornly serial. Interviewers want the mechanism and the asymmetry it creates, not a definition of attention read back to them.Open full answer →
117Why did modern LLMs replace LayerNorm with RMSNorm, and why is pre-norm now standard?▼mediumAnthropicMetaGoogle DeepMind◆ premiumTwo defaults that every Llama-class model shares and almost no candidate can justify. One is a compute win that turned out to cost nothing in quality; the other is what makes a 60-layer stack converge at all.Open full answer →
118Why do transformers need residual connections, and what do people mean by the residual stream?▼mediumAnthropicOpenAIGoogle DeepMind◆ premiumMost candidates answer with the 2015 ResNet answer and stop. The senior answer treats the residual stream as a shared communication bus, and that reframing is what makes logit attribution, the logit lens, and activation steering possible at all.Open full answer →
120You must choose between LoRA and full fine-tuning for a domain assistant. How do you decide?▼mediumDatabricksPredibaseTogether AI◆ premiumBoth work, so the decision is made by four numbers: how many examples you have, how far the capability has to move, how many variants you must serve, and how many GPUs you own. The serving axis is the one candidates never mention.Open full answer →
121You fine-tuned a model and the task metric went up. How do you prove you did not break everything else?▼mediumAnthropicOpenAIScale AI◆ premiumThe follow-up every interviewer holds in reserve after you say you fine-tuned something. A task-metric win proves almost nothing on its own. Here is the five-part protocol that separates a shipped model from a demo.Open full answer →
125Your summarizer invents facts that were never in the source article. How do you measure and fix it?▼mediumOpenAIGoogleAnthropic◆ premiumSummarization is the one task where the model was handed everything it needed and still made something up. The signal is separating intrinsic from extrinsic hallucination, knowing why ROUGE cannot see either, and gating on entailment before you ship.Open full answer →
126The document does not fit in the context window. Walk me through your options.▼mediumOpenAIAnthropicGoogle◆ premiumTruncate, map-reduce, refine, retrieve, or stuff a long-context model. Each buys you something different and breaks differently. The candidates who score are the ones who pick based on the question being asked, not the document being read.Open full answer →
127Your LLM classifier's accuracy swings when you reword the prompt or reorder the labels. How do you fix it?▼mediumOpenAIGoogleScale AI◆ premiumA one-word rewrite moving your accuracy several points is not a prompting problem, it is an uncalibrated decision function. The fix is measuring the model's prior over labels and dividing it out, not another round of tinkering.Open full answer →
128Your AI feature works in English and falls apart in other languages. How do you fix it?▼mediumGoogleCohereMeta◆ premiumThree different systems are failing at once (the tokenizer, the model, and your pipeline) and most candidates blur them into one. Separating them tells you which fix buys the most, and the highest-leverage one is not the prompt.Open full answer →
129What is meta-prompting, and when should you let an LLM write your prompts?▼mediumDatabricksAnthropicGoogle◆ premiumLetting a model write your prompts works, right up until the optimizer memorizes your eval set and hands you an unreadable prompt that scores better and generalizes worse. The bounds are the whole answer.Open full answer →
131The prompt itself is your biggest cost line. How do you optimize it without losing quality?▼mediumOpenAIAnthropicDatabricks◆ premiumEvery request pays for the prompt and almost nobody has looked at where the tokens actually go. It is rarely the part you can read: thirty tool schemas and seven stale examples usually outweigh the system prompt, and the output side costs several times more per token.Open full answer →
132What is AI alignment, and how is it different from bolting on a safety filter?▼mediumAnthropicOpenAIGoogle DeepMind◆ premiumNaming RLHF is not an answer. The frame that scores is outer versus inner alignment, why Goodhart breaks any proxy objective you optimize hard enough, and why a classifier sitting at the boundary can constrain a model's behavior without changing what it is trying to do.Open full answer →
03How do you choose chunk size and decide between dense, sparse (BM25), and hybrid retrieval?▼mediumCohereGleanDatabricks2 repliesunlockedThe two knobs that decide whether a RAG system works, and the two candidates tend to gloss over. The signal is tuning chunking against recall and knowing precisely what dense retrieval drops that BM25 recovers. Here is the reasoning, not the rules of thumb.Open full answer →
07How do you get reliable structured output (JSON / function calls) from an LLM in production?▼medium★ EssentialOpenAIAnthropicMicrosoft2 repliesunlockedAgents and integrations depend on the model returning valid, schema-conforming output. The signal is stacking constrained decoding, schema validation, and retries, rather than trusting a prompt to do the job. Here is the production-reliability answer.Open full answer →
08How does approximate nearest-neighbor search work, and how do you choose a vector index (HNSW vs IVF)?▼medium★ EssentialGleanCohereDatabricks2 repliesunlockedEvery RAG system rests on a vector index, and the interviewer wants proof you grasp the recall/latency/memory tradeoff, not just 'use a vector DB.' The signal is why exact search will not scale and how HNSW and IVF place different bets.Open full answer →
14What is the Model Context Protocol (MCP), and how do you design good tools for an agent?▼medium★ EssentialAnthropicOpenAIMicrosoft2 replies○ sign inMCP standardized how agents connect to tools and data, but tool design is what determines reliability. The signal is knowing what MCP actually standardizes and the principles behind a tool the model can call correctly from its description alone.Open full answer →
15What is agent reflection / self-correction, and does it actually improve agent performance?▼mediumAnthropicOpenAICognition2 replies○ sign inReflection is the pattern in which an agent critiques and revises its own work. The signal is knowing when it truly helps (external feedback grounds the critique) versus when self-critique on its own is theater.Open full answer →
16Compare chunking strategies (fixed-size, recursive, semantic, parent-child). How do you pick?▼medium★ EssentialGleanCohereDatabricks1 replies○ sign inChunking quietly caps RAG quality, and 'split every 500 tokens' leaves recall on the table. The signal is knowing the strategy families and the parent-child trick that separates retrieval size from context size.Open full answer →
17How do you implement citations and source attribution in a RAG system, and why does it matter?▼mediumGleanMicrosoftCohere2 replies○ sign inCitations turn a RAG answer from 'trust me' into something checkable, and they are a genuine engineering problem. The signal is grounding each claim to a specific passage and verifying the attribution, not tacking a bag of links onto the end.Open full answer →
19What is the Plan-and-Execute agent pattern, and how does it compare to ReAct?▼mediumAnthropicOpenAICognition1 replies○ sign inPlan-and-Execute and ReAct are the two leading agent control patterns. The signal is knowing the upfront-plan versus step-by-step tradeoff, why one costs less, and why most production agents wind up blending them.Open full answer →
20What are the types of agent memory (short-term, long-term, episodic, semantic), and how do you use each?▼mediumAnthropicOpenAISierra1 replies○ sign inAgents need memory beyond the context window, and 'just store the history' is the wrong answer. The signal is telling the memory types apart and mapping each to a storage and retrieval strategy. Here is the answer.Open full answer →
21What is context engineering, and why is it considered more important than prompt engineering for agents?▼mediumAnthropicOpenAICognition2 replies◆ premiumContext engineering is the discipline that took over from 'prompt engineering' for serious agent work. The signal is grasping that what you place in the context window (and what you omit) shapes behavior more than clever wording. Here is the answer.Open full answer →
22How do you choose an embedding model, and how do you handle embedding drift when you upgrade it?▼mediumCohereGleanDatabricks2 replies◆ premiumThe embedding model is the base of retrieval, and swapping it is deceptively risky. The signal is choosing on domain-relevant retrieval quality (not a leaderboard) and knowing that a new model means re-embedding everything. Here is the answer.Open full answer →
24Your agent has many tools but keeps picking the wrong one or passing wrong parameters. How do you fix it?▼mediumAnthropicOpenAIMicrosoft1 replies◆ premiumTool selection and parameter extraction are where agents quietly break. The strongest answer treats the tool spec as the only thing the model sees, then repairs the design, not the model. Here is how.Open full answer →
25What is the difference between sparse and dense embeddings, and why does hybrid retrieval combine them?▼mediumCohereGleanMicrosoft2 replies◆ premiumDense versus sparse is the core retrieval tradeoff, and 'just use embeddings' quietly loses every exact-match query. The signal is knowing what each representation captures and why production blends them. Here is the answer.Open full answer →
27What are sub-agents, and how does an orchestrator delegate to them effectively?▼mediumAnthropicOpenAICognition2 replies◆ premiumSub-agents are how you scale a complex agent task without one huge, noisy context. The signal is context isolation and clean delegation: a focused subtask in, a compact result out. Here is the answer.Open full answer →
28How do agents communicate and coordinate in a multi-agent system?▼mediumAnthropicOpenAIMicrosoft1 replies◆ premiumMulti-agent systems succeed or fail on how agents share information and hand off work. The signal is naming the three communication patterns and the coordination failures that sink the naive version. Here is the answer.Open full answer →
29Your RAG system struggles with PDFs containing tables and complex layouts. How do you fix parsing?▼mediumMicrosoftDatabricksGlean2 replies◆ premiumGarbage parsing means garbage retrieval, and naive PDF text extraction wrecks tables and reading order. The signal is fixing the parser, not the retriever. Here is the answer.Open full answer →
31What is 'harness engineering' for AI agents, and why does the scaffolding matter as much as the model?▼mediumAnthropicOpenAICognition2 replies◆ premiumOne model can behave completely differently depending on the harness wrapped around it. The signal is recognizing that the scaffolding frequently sets agent quality more than the underlying model does. Here is the answer.Open full answer →
33How do you optimize a RAG or agent system for cost and latency in production?▼mediumCohereMicrosoftGlean2 replies◆ premiumRAG and agents turn expensive and slow quickly: retrieval plus reranking plus big-model calls, multiplied across agent steps. The signal is naming the dominant cost first, then the levers that genuinely move it. Here is the playbook.Open full answer →
35What is reranking in a RAG pipeline, and why does a cross-encoder reranker improve results?▼medium★ EssentialCohereGoogleMicrosoft2 replies◆ premiumReranking is the cheapest large win in RAG quality: pull a broad set, then reorder it precisely. The signal is the bi-encoder-versus-cross-encoder distinction and the retrieve-then-rerank two-stage design. Here is the answer.Open full answer →
36How do you combine lexical (BM25) and semantic (vector) retrieval, and what is Reciprocal Rank Fusion?▼medium★ EssentialCohereMicrosoftElastic1 replies◆ premiumPure vector search drops exact terms; pure keyword search drops meaning. The signal is understanding why each fails on its own and how to merge two rankings on incomparable scales without hand-tuning weights. Here is the answer.Open full answer →
38How do you keep a RAG system's knowledge fresh (index updates, stale data, changing documents)?▼mediumMicrosoftGleanCohere1 replies◆ premiumA RAG system is only as current as its index, and stale or duplicated content quietly degrades answers. The signal is an incremental pipeline with deletes, updates, and recency signals, rather than a one-time bulk load. Here is the answer.Open full answer →
40What is query routing in a RAG/agent system, and how do you decide where a query should go?▼mediumCohereMicrosoftGlean1 replies◆ premiumPushing every query through one pipeline wastes latency, money, and precision. A router decides what each query actually needs. The signal is naming the four decisions a router makes and how you stop a misroute from sinking the answer.Open full answer →
41What is HyDE (Hypothetical Document Embeddings), and why does it improve retrieval?▼mediumCohereMicrosoftGoogle2 replies◆ premiumA short question and the passage that answers it sit in different neighborhoods of embedding space. HyDE bridges that gap by embedding a fake answer rather than the question. The signal is understanding why a wrong hypothetical still retrieves the right docs.Open full answer →
42What is parent-child (small-to-big) retrieval, and why does it improve RAG?▼mediumMicrosoftCohereGlean1 replies◆ premiumSmall chunks match precisely but starve the LLM of context; big chunks carry context but match badly. Parent-child retrieval declines to choose. The signal is separating what you match on from what you feed the model.Open full answer →
43What is contextual retrieval, and how does it fix the lost-context problem in chunking?▼mediumAnthropicCohereMicrosoft2 replies◆ premiumA chunk embedded in isolation forgets which document, section, and entity it came from, so it retrieves poorly. Contextual retrieval writes that context back in before indexing. The signal is fixing retrieval at index time rather than query time.Open full answer →
44What is semantic chunking, and how does it compare to fixed-size chunking?▼mediumCohereMicrosoftGlean1 replies◆ premiumFixed-size chunking cuts a coherent idea mid-thought; semantic chunking splits on meaning. The signal is naming the methods (structure-aware, embedding-similarity, LLM-based) and the tradeoffs that decide which one to ship.Open full answer →
46What is Corrective RAG (CRAG) / self-correcting retrieval?▼mediumMicrosoftCohereGlean1 replies◆ premiumStandard RAG trusts whatever it retrieves, even when it's irrelevant. Corrective RAG scores retrieval quality and acts on it. The signal is the grade-then-correct loop: re-retrieve, fall back to web search, or discard.Open full answer →
47How do you evaluate the retrieval component of a RAG system (separately from generation)?▼mediumCohereMicrosoftGlean2 replies◆ premiumRAG failures are usually retrieval failures, yet most teams measure only the final answer. The signal is scoring retrieval on its own (recall@k, precision@k, MRR/nDCG) to pin down exactly where the system breaks.Open full answer →
51Your RAG keeps retrieving near-duplicate chunks, wasting the context window. How do you diversify results?▼mediumGleanPerplexityNotion1 replies◆ premiumTop-k by raw similarity often feeds the model five paraphrases of one paragraph, denying it the other facts the question needs. The fix is ranking for relevance and novelty together. Here is how.Open full answer →
54Users ask vague, underspecified questions your RAG can't answer well. How do you handle query understanding and clarification?▼mediumGleanPerplexitySierra1 replies◆ premiumReal users type 'what about the new policy?' with no context. Retrieving on those four words yields noise. Here is how strong systems disambiguate before they ever reach the retriever.Open full answer →
56How do you choose top-k and the context budget for RAG, given recall, noise, and cost all pull against each other?▼mediumGleanPerplexityCohere1 replies◆ premiumMore chunks means higher recall but also more noise, more cost, and more lost-in-the-middle. The right k is an empirical tradeoff, not a default of 5. Here is how to find it.Open full answer →
59Should you build agent orchestration yourself or use a framework like LangGraph? How do you decide?▼mediumSierraCognitionDecagon2 replies◆ premiumFrameworks promise speed and hand you abstraction you'll eventually fight. Rolling your own is more code but full control. Here is the honest tradeoff, and why many production teams end up thinner than they started.Open full answer →
60Workflows versus agents: how much autonomy should you actually give an AI system, and how do you decide?▼mediumAnthropicSierraCognition1 replies◆ premiumThe industry uses 'agent' for anything that calls an LLM. The distinction that matters is how much control you hand to the model, and more autonomy is not better. Here is the spectrum and the decision rule.Open full answer →
62Build a small in-memory document indexer and retriever from scratch (inverted index + BM25), then add a vector option.▼mediumAppleGleanAnthropic2 replies◆ premiumA bridge connecting classic DSA and modern RAG. Interviewers want to see you build a working inverted index and a correct BM25 score by hand, reason about its complexity, and then know precisely when you would switch to embeddings and an ANN index instead.Open full answer →
64How do you decompose a complex query into sub-queries for retrieval, and when does it backfire?▼mediumPerplexityGleanGoogle1 replies◆ premiumA single embedding cannot capture a question with three independent parts. Interviewers want to see you know when to split a query, how to retrieve and recombine per sub-query, and the latency and drift costs that make decomposition a net loss on simple questions.Open full answer →
70How do you measure faithfulness (hallucination rate) in a RAG system, and what makes it hard to score?▼mediumAnthropicCohereDatabricks1 replies◆ premiumAn answer can be correct yet still unfaithful, asserting things the retrieved context never said. The signal is scoring faithfulness against the context, not against truth, and knowing why LLM-judge faithfulness scores drift.Open full answer →
71Context precision versus context recall: which do you optimize, and how do they trade off in RAG?▼mediumCohereGleanDatabricks2 replies◆ premiumPushing top-k higher raises recall but buries the answer in noise, and a tight reranker raises precision but can discard the one chunk you needed. The signal is knowing which metric caps the system and how to move both with a retrieve-wide-then-rerank shape.Open full answer →
77How should an agent recover from tool errors: retries, backoff, and when to give up?▼mediumAnthropicOpenAIAWS1 replies◆ premiumTools fail: timeouts, rate limits, bad arguments, garbage output. A naive agent retries blindly or quits. The signal is classifying errors and matching each to the right recovery, with hard caps.Open full answer →
82What are Reflexion and self-critique loops, and when do they actually improve an agent?▼mediumAnthropicOpenAIGoogle DeepMind1 replies◆ premiumAgents can critique and retry their own work. The signal is knowing how Reflexion's verbal feedback loop operates, when self-critique genuinely helps versus when it is theater, and what makes it real.Open full answer →
83How do you design human-in-the-loop checkpoints so an agent can pause, ask, and resume?▼mediumAnthropicSierraSalesforce2 replies◆ premiumAutonomous agents still need humans at the right moments. The signal is designing checkpoints: where to interrupt, what to surface, how to persist and resume state, without reducing the agent to a click-through rubber stamp.Open full answer →
85Your agent's token bill is exploding. How do you control the cost of a multi-step agent?▼mediumAnthropicOpenAIAWS1 replies◆ premiumAgents re-send growing context every step, so cost scales worse than linearly. The signal is knowing where the tokens go and the levers (caching, model routing, context trimming, step caps) that shrink the bill.Open full answer →
87Your vector search returns results with high similarity scores that are simply not relevant. How do you fix it?▼mediumGleanPineconeCohere◆ premiumA 0.91 cosine score and a useless passage are not a contradiction. The candidates who score here name the encoding mismatch, the topical-but-not-answering chunk, and why an absolute score cutoff was never going to work.Open full answer →
90Your RAG system gives bad answers. Walk me through how you localize the failure.▼mediumGleanDatabricksCohere◆ premiumSix stages, six isolating experiments, six metrics. The candidates who score do not guess at knobs, they bisect the pipeline, and they instrument the rungs nobody else does: ranking, context assembly, generation.Open full answer →
91Retrieval returned exactly the right passage and the model still made something up. Now what?▼mediumAnthropicOpenAIGlean◆ premiumRetrieval is exonerated, so the bug lives in generation. There are four usual causes and they have different fixes, and the one nobody names is that the model was never given permission to say it does not know.Open full answer →
93Semantic search works on full questions and fails on two-word queries. Why, and how do you fix it?▼mediumAlgoliaElasticGlean◆ premiumA dense encoder given 'refund policy' has almost nothing to work with. The fix is counterintuitive and it is not a better embedding model, and the reason this bug survives your eval set is worse than the bug.Open full answer →
96When should an agent write code instead of emitting JSON tool calls?▼mediumAnthropicOpenAIHugging Face◆ premiumTool calling costs one LLM round trip per action. Code costs one round trip for a loop over 500 records. The signal is knowing exactly what you trade away when you let the model write the program instead of the call.Open full answer →
97How do LangChain and LangGraph actually work, and what do their abstractions hide?▼mediumLangChainDatabricksMicrosoft◆ premiumInterviewers ask about these by name and listen for whether you have read the source or only the README. The signal is explaining the runnable interface, why an agent needs a cyclic graph rather than a chain, and what the layers hide.Open full answer →
98Your agent takes 90 seconds to complete a task. How do you make it fast?▼mediumOpenAIAnthropicPerplexity◆ premiumAgent latency is a step-count problem disguised as a speed problem. The winning move is removing round trips, not shaving milliseconds off each one, and knowing which step you can delete is the whole interview.Open full answer →
99When should an agent act without being asked?▼mediumAnthropicOpenAIMicrosoft◆ premiumA proactive agent runs on a trigger, with no human watching at the moment of action. That inverts the risk model, and the interviewer is listening for whether you separate notifying from acting.Open full answer →
100How do you build an agent that can look at images and produce charts and files, not just text?▼mediumOpenAIAnthropicGoogle◆ premiumThe agent loop assumes an observation is a short string, and images break that assumption in both directions. The signal is a context policy that keeps pixels out of the transcript and a verification step for the files the agent produces.Open full answer →
101How do you enforce a hard per-task budget so an agent stops before it overruns?▼mediumAnthropicOpenAIAWS◆ premiumEveryone says 'cap the budget'. The signal is the enforcement mechanism: a budget object that travels with the run, checked before each call rather than after, with reserved headroom for a final answer and correct accounting across sub-agents.Open full answer →
102How does an agent know when it is done?▼mediumAnthropicOpenAICognition◆ premiumThe runaway loop gets all the attention. The failure that actually ships is the agent that declares victory on step 4 with half the work missing. The signal is a finish tool the harness can reject, and a completion check that reads the artifact instead of taking the model's word for it.Open full answer →
01Implement a thread-safe token-bucket rate limiter for concurrent API and tool-calling traffic.▼mediumAnthropicOpenAIMicrosoft2 repliesunlockedLabs reach for this practical screen often, since it probes concurrency, time handling, and judgment inside 20 lines. The pitfall is a background thread that burns CPU. Below is the lazy-refill approach interviewers expect, along with the follow-ups.Open full answer →
02Implement k-means from scratch, including k-means++ initialization and a convergence check.▼mediumScale AIDatabricksNVIDIA2 repliesunlockedA recurring ML-coding screen. The loop itself is easy; what interviewers watch for is k-means++ init, a genuine convergence criterion, and awareness of the failure modes. Here is the compact implementation plus the follow-ups interviewers reliably ask.Open full answer →
03Implement a numerically stable softmax and cross-entropy loss from scratch.▼medium★ EssentialNVIDIAGoogleMeta2 repliesunlockedA deceptively easy ML-coding ask. Writing exp/sum is trivial; the signal is the max-subtraction trick and the log-sum-exp form that stop it overflowing. Here is the stable implementation and the reason the naive version breaks.Open full answer →
04Implement an LRU cache with O(1) get and put, then make it thread-safe with TTL.▼mediumOpenAIGoogleMeta2 repliesunlockedThe single most-asked design-coding question, and a common warm-up at the labs ahead of the ML follow-ups. The signal is the hashmap-plus-doubly-linked-list for genuine O(1), then handling the TTL and concurrency follow-ups cleanly. Here is that build.Open full answer →
05Maintain the running median of a number stream as values arrive.▼mediumGoogleMetaAmazon1 repliesunlockedA classic that pays off the two-heap insight. A sorted list costs O(n) per insert; two balanced heaps give O(log n) insert and O(1) median. Here is the implementation and the rebalancing detail people get wrong.Open full answer →
08Implement logistic regression from scratch in NumPy: forward pass, loss, and gradient descent.▼mediumAmazonMetaGoogle2 repliesunlockedA from-scratch ML-coding staple that tests whether you really know the math you rely on. The signal is the clean gradient (it reduces to Xᵀ(ŷ - y)/n), numerical stability, and vectorization. Here is the implementation and the details interviewers push on.Open full answer →
09Implement a trie for autocomplete: insert words and return all completions of a prefix.▼mediumGoogleMicrosoftMeta1 repliesunlockedAutocomplete is the canonical trie question, and it checks whether you reach for the right structure rather than scanning a word list. The signal is O(prefix) lookup, the DFS to gather completions, and the follow-ups (ranking, memory). Here is the build.Open full answer →
10Given a query vector and N stored vectors, return the top-k most similar by cosine similarity, efficiently.▼mediumCohereGleanNVIDIA1 repliesunlockedThe core operation beneath every embedding/RAG retrieval, posed as a coding exercise. The signal is vectorizing the similarity, normalizing correctly, and using a partial selection (argpartition) rather than a full sort. Here is the efficient implementation and the scaling follow-up.Open full answer →
11Return the k most frequent elements in a large array (and handle a stream).▼medium★ EssentialMetaAmazonGoogle1 replies○ sign inA classic that checks whether you reach past sorting for the right structure. The signal is the heap solution (O(n log k)), the bucket-sort O(n) trick, and how it shifts for an unbounded stream. Here is the answer.Open full answer →
12Solve 'longest substring without repeating characters' and explain the sliding-window / two-pointer pattern.▼medium★ EssentialMetaAmazonGoogle1 replies○ sign inSliding window is one of the highest-yield coding patterns, and this is its canonical problem. The real signal is spotting when a window collapses an O(n squared) scan into one linear pass, and holding the invariant cleanly.Open full answer →
13Explain BFS and DFS and when to use each, then detect a cycle in a graph.▼mediumGoogleMetaAmazon1 replies○ sign inGraph traversal sits beneath a large family of interview problems. What matters is knowing the BFS-vs-DFS tradeoff (shortest path vs memory shape) and applying it cleanly, then getting the directed-vs-undirected cycle gotcha that trips up most candidates.Open full answer →
15Implement precision, recall, F1, and a confusion matrix from raw predictions in NumPy.▼mediumAmazonMetaGoogle1 replies○ sign inA common ML-coding check that confirms you actually understand the metrics you quote. The signal is getting TP/FP/FN/TN right and knowing macro vs micro averaging for multiclass, not reaching for sklearn.Open full answer →
16Implement a data loader that batches and shuffles a dataset, and explain efficient input pipelines.▼mediumNVIDIAGoogleMeta1 replies○ sign inData loading is where training pipelines quietly bottleneck. The signal is a correct shuffle-then-batch iterator plus knowing why prefetching and parallel loading keep the GPU fed.Open full answer →
18Merge overlapping intervals, and explain the sort-then-sweep pattern.▼medium★ EssentialGoogleMetaAmazon1 replies○ sign inMerging intervals is a staple that probes the sort-then-sweep idea. The tell is sorting by start and merging in a single pass, O(n log n). Below is the pattern along with the family of problems it opens up.Open full answer →
19Implement k-nearest-neighbors classification from scratch, and make prediction efficient.▼mediumAmazonGoogleMeta1 replies○ sign ink-NN is quick to code and a solid check of vectorization and the lazy-learner tradeoff. Interviewers look for a tidy vectorized distance calculation plus knowing why naive prediction is O(n) and how to accelerate it. The implementation follows.Open full answer →
21Implement Layer Normalization (and RMSNorm) from scratch.▼mediumNVIDIAGoogleMeta1 replies◆ premiumLayerNorm appears in every transformer, and coding it verifies you know what it normalizes over and why. Interviewers look for normalization across the feature dimension per token, the learnable scale and shift, and the RMSNorm simplification modern LLMs took up.Open full answer →
23Implement binary search and its variants (first/last occurrence, search in rotated array).▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumBinary search is simple to explain and notoriously easy to botch (off-by-one, infinite loops). Interviewers look for a correct template plus the variants (boundaries, rotated arrays) that show up constantly. The answer follows.Open full answer →
24Explain backtracking and use it to generate all permutations / subsets / combinations.▼mediumGoogleMetaAmazon2 replies◆ premiumBacktracking underlies permutations, subsets, N-queens, and constraint problems. Interviewers look for the choose/explore/un-choose template plus pruning, and knowing exactly which knob distinguishes permutations from combinations.Open full answer →
26Merge k sorted lists (or streams) efficiently.▼mediumGoogleMetaAmazon2 replies◆ premiumMerging k sorted sources is the textbook min-heap problem and a genuine data-engineering pattern (merging sorted shards/streams). Interviewers look for the heap of k heads yielding O(N log k). The answer follows.Open full answer →
28Implement batch normalization (forward pass, train and inference) from scratch.▼mediumNVIDIAGoogleMeta2 replies◆ premiumCoding BatchNorm verifies you know the train/inference difference, the part everyone forgets. Interviewers look for normalizing over the batch with running stats kept for inference. The implementation follows.Open full answer →
30Topological sort: order tasks with dependencies (and detect cycles).▼mediumGoogleMetaAmazon1 replies◆ premiumTopological sort arranges a DAG so dependencies come first, the backbone of build systems, schedulers, and ML/data pipeline DAGs. Interviewers look for Kahn's algorithm (or DFS) plus cycle detection. The answer follows.Open full answer →
31Union-Find (Disjoint Set Union): connectivity and grouping.▼mediumGoogleMetaAmazon1 replies◆ premiumUnion-Find answers 'are these in the same group?' almost instantly and drives connected-components, cycle detection, and clustering. Interviewers look for path compression plus union by rank for near-O(1) operations. The answer follows.Open full answer →
32Number of Islands: connected components on a grid (flood fill).▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumA staple grid-traversal problem probing BFS/DFS flood fill and disciplined visited-marking. What interviewers watch for: viewing the grid as a graph and tallying connected components. Here is the answer.Open full answer →
34Reservoir sampling: pick k random items from a stream of unknown length.▼mediumGoogleMetaAmazon2 replies◆ premiumDrawing a uniform sample from a stream too large for memory (or whose length stays unknown) is a genuine data-engineering problem. What interviewers watch for: the replace-with-decreasing-probability trick and a telescoping proof. Here is the answer.Open full answer →
37Find the Lowest Common Ancestor (LCA) of two nodes in a binary tree.▼mediumGoogleMetaAmazon1 replies◆ premiumLCA is the recursion staple that probes how you carry information upward from subtrees in one pass. What interviewers watch for: the post-order 'found in left, found in right' logic. Here is the answer plus the BST shortcut.Open full answer →
38Maximum Subarray (Kadane's algorithm).▼mediumAmazonGoogleMeta1 replies◆ premiumMaximum subarray is the entry-point 1D DP problem, and Kadane's is the O(n) one-liner. What interviewers watch for: the 'extend or restart' call at each element and the all-negative edge case most people fumble. Here is the answer.Open full answer →
39Word Break: can a string be segmented into dictionary words?▼mediumGoogleMetaAmazon1 replies◆ premiumWord Break is the classic 1D string DP that snags people who reach for greedy or naive recursion. What interviewers watch for: the dp[i] = 'is the prefix of length i segmentable' recurrence, plus why a locally valid split can doom the rest. Here is the answer.Open full answer →
40Rotate an n×n matrix 90 degrees in place.▼mediumGoogleMetaAmazon1 replies◆ premiumRotating a matrix in place probes index manipulation and the transpose-then-reverse trick. What interviewers watch for: splitting the rotation into two simple passes instead of juggling four-way swaps. Here is the answer.Open full answer →
41Bit manipulation essentials: single number, counting bits, power of two.▼mediumGoogleMetaAmazon1 replies◆ premiumBit-manipulation problems screen for fluency with binary and the O(1)-space tricks most candidates fumble. The tell is whether you reach for XOR's self-canceling property and the n & (n-1) idiom by reflex. Here is the toolkit.Open full answer →
42Find the k-th largest element (Quickselect).▼mediumGoogleMetaAmazon2 replies◆ premiumK-th largest has three textbook solutions, and what interviewers watch for is knowing Quickselect's average O(n) beats sorting's O(n log n), why its worst case is O(n²), and when a heap is genuinely the better call. Here is the answer.Open full answer →
43Implement TF-IDF from scratch.▼mediumAmazonGoogleMeta2 replies◆ premiumTF-IDF is the classic text-vectorization scheme and a quick test of whether you truly grasp term-frequency times inverse-document-frequency, or merely recite it. What interviewers watch for: explaining why IDF kills common words. Here is the implementation.Open full answer →
44Coin Change: fewest coins to make an amount (unbounded knapsack DP).▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumThe DP that reveals why greedy quietly fails on non-standard denominations, and how a single bottom-up table fixes it. What interviewers watch for: the dp[amount] recurrence and the unbounded-reuse insight.Open full answer →
45Longest Common Subsequence (LCS) and the 2D DP family.▼mediumGoogleMetaAmazon1 replies◆ premiumLCS is the template 2D-sequence DP behind diff tools and bioinformatics. Interviewers look for rebuilding the match/mismatch recurrence from memory and not mixing up subsequence (gaps allowed) with substring (contiguous). The answer follows.Open full answer →
46Gas Station: the greedy circuit problem.▼mediumGoogleAmazonMeta1 replies◆ premiumGas Station pays off spotting a greedy invariant that turns O(n²) into O(n). Two facts carry the whole solution: total feasibility, and that a failed prefix lets you skip every start within it.Open full answer →
47Jump Game: can you reach the end of the array (greedy)?▼mediumGoogleMetaAmazon2 replies◆ premiumJump Game pays off spotting that a greedy reachability scan beats DP. Interviewers look for tracking the farthest reachable index in one pass, and catching the exact moment you fall behind it.Open full answer →
50House Robber: the pick-or-skip 1D DP.▼mediumGoogleAmazonMeta2 replies◆ premiumHouse Robber is the tidiest choose-with-a-constraint 1D DP, and it reduces to O(1) space. Interviewers look for the take-this-or-skip recurrence and the two-variable rolling optimization.Open full answer →
51Group Anagrams: the canonical-key hash-map pattern.▼mediumGoogleMetaAmazon2 replies◆ premiumGroup Anagrams probes the 'compute a canonical key and bucket by it' pattern. Interviewers look for choosing a key that anagrams share without comparing every pair. The answer follows.Open full answer →
52Implement a precision-recall (or ROC) curve and AUC from scores and labels.▼mediumAmazonGoogleMeta2 replies◆ premiumBuilding a PR/ROC curve from scratch shows you understand thresholds and the precision/recall tradeoff. What interviewers really want is sweeping the threshold in one sorted pass and integrating the area. The implementation follows.Open full answer →
53Product of Array Except Self (no division).▼mediumGoogleMetaAmazon1 replies◆ premiumThis problem outlaws the obvious division trick, forcing the prefix/suffix-product insight. Interviewers look for computing left and right products in two passes with O(1) extra space. The answer follows.Open full answer →
54Sort Colors (Dutch National Flag): three-way partition in one pass.▼mediumGoogleMetaAmazon1 replies◆ premiumSorting an array of three values in one pass probes the three-pointer partition (Dutch National Flag). Interviewers look for the low/mid/high invariant and knowing when not to advance mid. The answer follows.Open full answer →
55Spiral Matrix traversal (boundary simulation).▼mediumGoogleMetaAmazon1 replies◆ premiumSpiral traversal probes careful boundary management more than algorithmic insight. Interviewers look for shrinking four boundaries layer by layer without double-visiting a row or column. The answer follows.Open full answer →
56Maximal Square: the 2D dynamic programming pattern on a grid.▼mediumGoogleMetaAmazon1 replies◆ premiumThe textbook grid DP where each cell depends on three neighbors at once. What interviewers want is the min-of-three recurrence, plus the reason it has to be min. The answer follows.Open full answer →
58Decode Ways: count the decodings of a digit string (1D DP).▼mediumGoogleMetaAmazon1 replies◆ premiumDecode Ways is a 1D DP whose difficulty sits entirely in the edge cases: zeros and the valid 1-26 range. Interviewers look for the take-one-digit-or-two recurrence plus disciplined validity checks. The answer follows.Open full answer →
59Longest Palindromic Substring (expand around center).▼mediumGoogleMetaAmazon2 replies◆ premiumThis classic has a tidy O(n^2) expand-around-center solution that outdoes the naive O(n^3). Interviewers look for expanding from every center and handling odd and even lengths separately. The answer follows.Open full answer →
60Implement the Adam optimizer from scratch.▼mediumNVIDIAGoogleMeta1 replies◆ premiumCoding Adam shows you know what .step() actually does: momentum combined with per-parameter adaptive rates and bias correction. What interviewers watch for is the two moments plus the bias-correction step.Open full answer →
63Meeting Rooms II: minimum rooms for overlapping intervals.▼mediumGoogleMetaAmazon1 replies◆ premiumThe fewest meeting rooms you need equals the highest number of meetings active simultaneously. That reframing is the entire interview; two O(n log n) solutions drop out of it, and the tie-handling catches careless candidates.Open full answer →
64Kth Smallest Element in a BST (in-order traversal).▼mediumGoogleMetaAmazon1 replies◆ premiumThis one rewards knowing that an in-order walk of a BST produces sorted order. The signal is halting at the kth element instead of walking the entire tree.Open full answer →
65Search a sorted 2D matrix (staircase search).▼mediumGoogleMetaAmazon2 replies◆ premiumA row- and column-sorted matrix rewards a single insight: begin at a corner and drop a whole row or column each step. That converts an O(m*n) scan into O(m+n), and which corner you pick is not arbitrary.Open full answer →
66Implement a dropout layer (train and inference) from scratch.▼mediumNVIDIAGoogleMeta1 replies◆ premiumDropout takes five lines, yet most candidates fumble two of them: turning it off at inference and rescaling the survivors so the expected activation holds constant. Inverted dropout is the convention they want to see.Open full answer →
67Longest Consecutive Sequence in O(n) with a hash set.▼mediumGoogleMetaAmazon1 replies◆ premiumFinding the longest run of consecutive integers without sorting divides candidates who reach for O(n log n) from those who spot the hash-set trick. The signal is one loop invariant that eliminates redundant work. Here is the answer.Open full answer →
68Validate a Binary Search Tree.▼medium★ EssentialGoogleMetaAmazon2 replies◆ premiumValidating a BST trips up people who only check parent-child pairs and miss violations buried deep in a subtree. The signal is propagating min/max bounds or relying on in-order monotonicity. Here is the answer.Open full answer →
69Course Schedule: can you finish all courses given prerequisites (cycle detection)?▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumCourse Schedule collapses to a single question: is the prerequisite graph a DAG? The signal is seeing the graph framing and applying topological sort or DFS to detect a cycle. Here is the answer.Open full answer →
71Implement top-k and top-p (nucleus) sampling from a model's next-token logits.▼mediumOpenAICohereMistral1 replies◆ premiumEvery chat model's 'temperature' and 'top_p' knobs come down to a few lines of logit surgery. Implementing them proves you understand decoding rather than just calling it. Here is the from-scratch version.Open full answer →
73Implement a leakage-safe, stratified train/validation/test split. What can go wrong?▼mediumMetaAmazonDatabricks2 replies◆ premiumA bad split silently inflates every metric you'll ever report, and the bugs are subtle: leaked groups, shuffled time, preprocessing fit on everything. Here is the split done right.Open full answer →
74Implement an exponential moving average (EMA) of model weights, and explain why it helps.▼mediumGoogleMetaNVIDIA1 replies◆ premiumMany state-of-the-art training runs hold a shadow copy of the weights that averages the trajectory, then serve that rather than the final step. It's a few lines and a genuine accuracy gain. Here it is.Open full answer →
75Implement a learning-rate scheduler with linear warmup and cosine decay.▼mediumGoogleMetaOpenAI1 replies◆ premiumNearly every modern training run relies on warmup-then-cosine, and getting it wrong destabilizes early training or squanders the tail. It's a closed-form function of the step. Here is the implementation and the why.Open full answer →
76Implement a smoothed n-gram language model and compute perplexity on held-out text.▼mediumGoogleAmazonApple1 replies◆ premiumAhead of transformers, this was the language model, and it remains the clearest way to prove you grasp what perplexity truly measures. Smoothing is where people slip up. Here is the implementation.Open full answer →
77Compute a running mean and variance over a stream in one pass (Welford's algorithm). Why not the naive formula?▼mediumMetaStripeDatabricks1 replies◆ premiumThe textbook variance formula suffers catastrophic precision loss on streaming data and cannot update incrementally. Welford's one-pass update is the norm for online feature normalization. Here it is.Open full answer →
80Implement a Bloom filter, and explain where it speeds up an ML/data pipeline.▼mediumGoogleMetaDatabricks1 replies◆ premiumA Bloom filter answers 'have I seen this?' with a few bits per item rather than storing the key, swapping a rare false positive for a large memory saving. Here is the build, the sizing math, and where it pays off in dedup and serving.Open full answer →
81Detect a cycle in a linked list, and find where the cycle starts.▼mediumMetaAmazonMicrosoft2 replies◆ premiumFloyd's tortoise and hare finds a cycle in O(1) space, but what sets strong candidates apart is the second phase: a brief distance argument that identifies exactly where the loop starts. Here is the answer and the math.Open full answer →
82Find the node where two singly linked lists intersect.▼mediumAmazonMicrosoftMeta1 replies◆ premiumTwo lists that share a tail have to intersect at a single node, but aligning their lengths without counting is the elegant move interviewers look for. Here is the two-pointer trick that cancels the lengths out, plus the answer.Open full answer →
83Remove the Nth node from the end of a linked list in one pass.▼mediumMetaAmazonMicrosoft1 replies◆ premiumThe two-pass length-then-delete solution works, but the interview asks for a single pass: a gap of N between two pointers, plus a dummy head that makes deleting the real head come out for free. Here is the clean answer.Open full answer →
84Compute the diameter of a binary tree (longest path between any two nodes).▼mediumMetaGoogleAmazon2 replies◆ premiumThe diameter is not the tree's height, and the path does not have to pass through the root. The clean solution derives height and best path in one DFS, updating a global max at every node. Here is the answer and the subtlety candidates miss.Open full answer →
85Reconstruct a binary tree from its preorder and inorder traversals.▼mediumAmazonMicrosoftGoogle1 replies◆ premiumPreorder names the root; inorder divides the rest into left and right subtrees. The naive version is O(n squared); the strong answer uses a value-to-index map and a moving preorder pointer for O(n). Here is the answer and why both orders are required.Open full answer →
87Find the next greater element for each item in an array using a monotonic stack.▼mediumAmazonMetaGoogle1 replies◆ premiumThe brute force runs O(n squared) nested scans. A monotonic stack solves it in one O(n) pass by holding only the candidates that can still become a future answer. Here is the pattern and why each element is pushed and popped exactly once.Open full answer →
88Find all unique triplets in an array that sum to zero (3Sum).▼medium★ EssentialMetaAmazonGoogle2 replies◆ premiumThe naive triple loop runs O(n cubed). Sort first, then fix one element and converge two pointers for O(n squared). The real test is deduplication: returning unique triplets without a set. Here is the clean template.Open full answer →
89Merge all overlapping intervals and explain the sort-then-sweep line technique.▼mediumGoogleAmazonMeta1 replies◆ premiumMerging intervals is the entry point to the whole interval family. The trick is sorting by start so overlaps end up next to each other, then collapsing them in one linear sweep. Here is the pattern and the sweep-line generalization behind it.Open full answer →
90Generate all valid combinations of n pairs of parentheses.▼mediumGoogleMetaAmazon1 replies◆ premiumGenerating then filtering costs O(2^(2n)) and wastes effort. Backtracking with two counters builds only valid strings by applying the balance rule at every step. Here is the template and why the pruning conditions are exactly right.Open full answer →
93Count the number of contiguous subarrays whose sum is divisible by k.▼mediumAmazonGoogleMeta2 replies◆ premiumTesting every subarray costs O(n squared). Prefix sums with a remainder-frequency map solve it in a single O(n) pass: two prefixes sharing a remainder mod k enclose a divisible subarray. The pitfall is negative remainders. Here is the clean answer.Open full answer →
98Convert sampled call-stack profiler data into a flame tree and find the slowest function.▼mediumGoogleOpenAIApple1 replies◆ premiumA practical build screen: transform a stream of sampled call stacks into a flame tree, then report self-time against total-time per function. The trap is mixing up the two times. Here is how to aggregate the tree and rank the hot functions.Open full answer →
99Find duplicate files in a directory tree by content: size prefilter, then hashing.▼mediumGoogleAppleAmazon2 replies◆ premiumA grounded systems-coding screen: locate files with identical content across a tree. The naive all-pairs hash wastes work. The signal is the size prefilter plus a cheap-hash gate ahead of the full hash. Here is the layered approach.Open full answer →
101Simulate infection spreading across a 2D grid with multi-source BFS, passing staged test cases.▼mediumGoogleAmazonMeta2 replies◆ premiumThe rotting-oranges family of build screens: a state expands outward one step per tick across a grid, with the spec adding rules each round. The signal is multi-source BFS processed by layers, not per-cell loops. Here is the design that absorbs each new test case.Open full answer →
104Build a small tool to a loosely defined, shifting spec: clarify, structure for change, adapt mid-session.▼mediumGoogleAnthropicOpenAI2 replies◆ premiumGoogle's 'vibe coding' screen: the spec is intentionally vague and shifts mid-interview. The signal isn't the algorithm, it's whether you clarify before coding, structure for change, and keep tests green as the requirements move. Here is how to run that loop.Open full answer →
105Fenwick tree (Binary Indexed Tree): point updates and prefix sums in O(log n).▼mediumGoogleMetaAmazon2 replies◆ premiumA Fenwick tree serves prefix-sum queries and point updates in O(log n) using one flat array and a single bit trick. The signal is the lowbit operation and why it wins over a plain prefix array when values change. Here is the answer.Open full answer →
107Dijkstra's algorithm: shortest paths from a source in a weighted graph.▼mediumGoogleAmazonUber2 replies◆ premiumDijkstra computes single-source shortest paths in O((V+E) log V) with a min-heap, the backbone of routing and network latency problems. The signal is why it requires non-negative weights and how lazy deletion keeps the heap simple. Here is the answer.Open full answer →
108Bellman-Ford: shortest paths with negative edges and negative-cycle detection.▼mediumGoogleAmazonMicrosoft1 replies◆ premiumBellman-Ford copes with negative edge weights that break Dijkstra and detects negative cycles, the foundation of currency-arbitrage problems. The signal is the V-1 relaxation rounds plus the extra Vth round that flags a negative cycle. Here is the answer.Open full answer →
109Floyd-Warshall: all-pairs shortest paths with a three-loop dynamic program.▼mediumGoogleAmazonMicrosoft2 replies◆ premiumFloyd-Warshall computes shortest paths between every pair of nodes in O(V cubed) with a compact three-line triple loop. The signal is the intermediate-node DP order and why k has to be the outer loop. Here is the answer.Open full answer →
110Kruskal's algorithm: minimum spanning tree via sorted edges and union-find.▼mediumGoogleAmazonMicrosoft2 replies◆ premiumKruskal builds a minimum spanning tree by sorting edges and adding the cheapest one that does not form a cycle, using union-find for the cycle check. The signal is the greedy cut property and why disjoint-set is the right tool. Here is the answer.Open full answer →
112Rabin-Karp: substring search and multi-pattern matching with a rolling hash.▼mediumGoogleAmazonMeta1 replies◆ premiumRabin-Karp slides a fixed-width hash across the text so each window costs O(1) to update, which makes it ideal for matching many patterns at once. The signal is the polynomial rolling hash, modular arithmetic, and why you still verify on a hash hit. Here is the answer.Open full answer →
113Binary search on the answer: turn an optimization into a monotonic feasibility check.▼mediumGoogleAmazonUber1 replies◆ premiumBinary search on the answer cracks minimize-the-maximum and capacity problems by guessing the result and testing feasibility with a monotone predicate. The signal is spotting monotonicity and writing a clean feasibility function. Here is the answer.Open full answer →
114Number theory toolkit: sieve of Eratosthenes, fast modular exponentiation, and gcd.▼mediumGoogleAmazonMicrosoft1 replies◆ premiumSieving primes, fast modular power, and Euclid's gcd are the number-theory primitives that quietly drive crypto, hashing, and combinatorics problems. The signal is the O(n log log n) sieve and O(log e) binary exponentiation. Here is the answer.Open full answer →
116Design a time-based key-value store: set with a timestamp, get the value as of a time.▼mediumGoogleAmazonUber1 replies◆ premiumA time-based key-value store logs versioned writes and answers 'what was the value at time t' via binary search over per-key timestamps. The signal is the append-only design and the floor (largest timestamp <= t) lookup. Here is the answer.Open full answer →
117Build a decision tree classifier from scratch: pick splits by Gini or entropy, then predict.▼mediumAmazonGoogleMeta2 replies◆ premiumA from-scratch classic that checks recursion plus the split criterion math. The signal is computing impurity correctly, picking the best threshold by information gain, and knowing the stopping rules. Here is a clean recursive implementation.Open full answer →
118Implement Gaussian Naive Bayes from scratch: fit per-class statistics and classify in log space.▼mediumAmazonGoogleMicrosoft1 replies◆ premiumA from-scratch staple that checks whether you grasp the conditional-independence assumption and why you work in log space. The signal is fitting per-class means and variances, summing log-likelihoods, and adding the log prior. Here is the implementation.Open full answer →
119Implement PCA from scratch via SVD: center the data, project onto top components, report variance.▼mediumGoogleMetaNVIDIA2 replies◆ premiumA from-scratch favorite that probes linear algebra fluency. The signal is centering first, using SVD instead of forming the covariance matrix, and reading variance off the singular values. Here is the implementation and the details interviewers push on.Open full answer →
121Solve linear regression with the normal equations: derive the closed form and implement it stably.▼mediumAmazonGoogleMicrosoft1 replies◆ premiumA build-it-yourself check on the least-squares closed form and the numerical traps hiding in it. What matters is deriving the normal equations, understanding why you never invert explicitly, and reaching for lstsq or the SVD instead. The code follows.Open full answer →
124Implement the AdamW optimizer from scratch and explain how decoupled weight decay differs from Adam.▼mediumOpenAIGoogle DeepMindMeta1 replies◆ premiumA build-it-yourself check on modern optimizers. What matters is the moment estimates, bias correction, and the single change that counts: AdamW decouples weight decay from the gradient rather than folding it into the loss. The code follows, plus why it wins.Open full answer →
127Implement a WordPiece tokenizer from scratch: greedy longest-match-first subword segmentation.▼mediumGoogleHugging FaceOpenAI1 replies◆ premiumA build-it-yourself check on subword tokenization. What matters is greedy longest-match encoding against a fixed vocabulary, the continuation-prefix convention, and how WordPiece diverges from BPE. The code follows.Open full answer →
128Build a mini data loader with sharding for distributed training: split data across workers without overlap.▼mediumMetaNVIDIAGoogle2 replies◆ premiumA build-it-yourself check on distributed input pipelines. What matters is partitioning data across workers with no overlap and no gaps, epoch-consistent shuffling with a shared seed, and handling the uneven-last-batch problem. The code follows.Open full answer →
130Write an async batch caller for an LLM API: N requests, a concurrency cap, timeouts, and retries with backoff.▼mediumOpenAIAnthropicScale AI◆ premiumThe most job-shaped coding screen in AI, ML, and GenAI engineering: fan out N LLM calls without melting the rate limit or losing the batch to one bad request. What matters is the retry policy, not the async syntax. Below is the version that passes.Open full answer →
131Implement a conversation memory system: buffer, sliding window, summary, and token-budget eviction.▼mediumOpenAIAnthropicLangChain◆ premiumThe most-asked hands-on LLM exercise: a chat history that outgrows the context window. What gets scored is not the sliding window, it is the region eviction is never allowed to touch. Below is the version that passes.Open full answer →
132Write token counting and context-window packing for an LLM call: fit the budget, reserve room for the completion.▼mediumOpenAIAnthropicCohere◆ premiumEvery RAG system packs a prompt, and the packing bug is always the same one: the input fits the window exactly, so the model has nowhere left to answer. The arithmetic here is what separates a candidate who has shipped from one who has read about it.Open full answer →
134Build an LLM-as-a-judge evaluation harness with pairwise comparison and position-bias control.▼mediumOpenAIAnthropicScale AI◆ premiumAsking a model which answer is better is one line of code. Getting a number you would let block a deploy takes position-bias control, a confidence interval, and a human-labeled set the judge is measured against. Here is the harness.Open full answer →
135Write a tool-call handler for an LLM API: schema validation, execution, error feedback, and parallel calls.▼mediumOpenAIAnthropicLangChain◆ premiumEvery agent is a loop around this function. The candidates who fail it raise an exception on a bad tool call; the ones who pass hand the error back to the model as a tool result and let it fix itself on the next turn.Open full answer →
136Implement chunking strategies from scratch: fixed-size, recursive, semantic, and parent-child.▼mediumGleanDatabricksCohere◆ premiumEvery RAG system starts here, and most candidates ship the same bug: they size the chunk in characters and call it tokens. Below is running code for all four strategies, plus the infinite loop in the overlap arithmetic and the one in the recursion.Open full answer →
137Write a prompt-injection detector and evaluate it on an adversarial set.▼mediumAnthropicOpenAIMicrosoft◆ premiumWriting the regexes takes ten minutes. The half of the question that separates candidates is the evaluation: a detector that blocks 'ignore the noise in the data' has shipped a bug to every analyst using your product. Here is the layered detector and the harness that proves it works.Open full answer →
138Implement output guardrails that block off-topic answers and PII leakage, within a latency budget.▼mediumAnthropicMicrosoftStripe◆ premiumThis code runs on every single response, so it sits on the critical path and a heavyweight check here doubles your p95. The signal is in the ordering, the fail-open decision when the guardrail times out, and the fact that you cannot un-send a token you already streamed.Open full answer →
139Implement a cross-encoder reranker and prove it improves nDCG@10.▼mediumCohereGleanElastic◆ premiumAnyone can call a rerank endpoint. The word doing the work in this question is 'prove': you have to implement DCG, ideal DCG, and nDCG@k from graded labels and report the before-and-after. Plus the ceiling nobody mentions until it bites them in production.Open full answer →
140Consume a streaming LLM response: SSE parsing, incremental output, cancellation, and partial JSON.▼mediumOpenAIAnthropicVercel◆ premiumThe naive version splits on newlines and works right up until a TCP chunk lands mid-line. Then there is the error that arrives after a 200 OK, the user who closes the tab while you keep paying for tokens, and JSON you cannot parse until it closes.Open full answer →
142Build a minimal RAG pipeline end to end: embed, index, retrieve, ground, and cite.▼mediumOpenAIAnthropicGlean◆ premiumEveryone can write the happy path. The screen is decided by the two branches most candidates skip: what the system does when retrieval finds nothing good, and what it does when the model cites a chunk you never sent.Open full answer →
144Build a document parser: PDF to layout-aware text to clean chunks.▼mediumGleanAnthropicDatabricks◆ premiumMost RAG projects do not die at the retriever, they die at ingestion. Naive PDF extraction interleaves columns into nonsense, shreds tables, and stamps the footer into all 4,000 chunks. Here is the parser that survives real documents.Open full answer →
02Explain the bias-variance tradeoff, and how you diagnose and fix high bias vs high variance.▼medium★ EssentialAmazonGoogleMeta2 repliesunlockedThe most frequent ML fundamentals question, and a subtle seniority check: anyone can repeat the definition, but can you break down the error and convert it into a concrete debugging plan?Open full answer →
03Define precision, recall, F1, and AUC, and give a case where each (and accuracy) is misleading.▼medium★ EssentialAmazonMetaGoogle2 repliesunlockedThe interviewer wants to see whether you choose metrics to fit the problem or just recite definitions. The signal that counts is recognizing when accuracy and even AUC mislead, and linking each metric to a decision.Open full answer →
05How do you handle a severely imbalanced dataset, and what are the tradeoffs of each technique?▼medium★ EssentialAmazonMetaGoogle1 repliesunlockedImbalance turns up in fraud, churn, and abuse, and the naive answer (oversample, done) leaks data and inflates offline metrics. The signal is favoring cost-sensitive learning, fixing the metric, and resampling correctly. Here is the full toolkit with its tradeoffs.Open full answer →
06Explain MLE vs MAP and apply Bayes' theorem to a medical-test (base-rate) problem.▼mediumAmazonGoogleMeta1 repliesunlockedA standard stats question that also works as a numeracy check. The signal is linking MLE/MAP to regularization and getting the base-rate calculation right, the one that surprises most people. Here is the intuition along with the worked numbers.Open full answer →
07Compare SGD, momentum, RMSProp, Adam, and AdamW. Why does AdamW decouple weight decay?▼mediumNVIDIAGoogleMeta2 repliesunlockedOptimizer questions probe whether you grasp what each one adapts and the subtle AdamW fix that the whole field now relies on. The signal is the per-parameter adaptivity story plus why tying weight decay to Adam was a bug. Here is that answer.Open full answer →
08How do you approach feature engineering, encoding categoricals, and handling missing data?▼medium★ EssentialAmazonGoogleMeta2 repliesunlockedTabular ML is won on features, and this question checks whether you navigate the practical traps: target leakage in encodings, informative missingness, and fitting transforms on the wrong data. The signal is leakage-safe preprocessing. Here is the toolkit.Open full answer →
09Explain recommendation approaches: collaborative filtering vs content-based, matrix factorization, and cold start.▼mediumMetaNetflixAmazon1 repliesunlockedRecsys underpins half of applied ML, and this question checks whether you fit the approach to data availability and hold a real answer for the cold-start problem that breaks naive systems. Here is the foundations answer.Open full answer →
10How do you tell whether model A is genuinely better than model B, not just better by chance?▼mediumGoogleMetaAmazon2 repliesunlockedA point-estimate win on a metric is not a genuine win. The signal is testing significance with the right paired method on a clean held-out set, weighing effect size, and confirming online. Here is how to compare models without fooling yourself.Open full answer →
11Contrast L1 and L2 regularization. Why does L1 produce sparse weights?▼medium★ EssentialGoogleAmazonMeta1 replies○ sign inA near-universal ML fundamentals question. Anyone can recite 'L1 is lasso, L2 is ridge'; the signal is the gradient-and-geometry reason L1 forces weights to exactly zero and when you'd choose each. Here is that answer.Open full answer →
12Compare bagging and boosting, and random forests vs gradient boosting. When do you use each?▼medium★ EssentialAmazonGoogleMeta1 replies○ sign inEnsembles dominate tabular ML, and this question tests whether you grasp that they attack different parts of the error. The signal is bagging-reduces-variance vs boosting-reduces-bias and why GBMs win on tabular data. Here is the answer.Open full answer →
13How does an SVM work, and what does the kernel trick actually buy you?▼mediumAmazonGoogleMicrosoft2 replies○ sign inSVMs sort the candidates who memorized 'maximize the margin' from those who can explain how a kernel delivers non-linear separation without ever touching the high-dimensional space. Here is the answer that lands the second signal.Open full answer →
14How does a decision tree choose splits, and what is the difference between Gini impurity and entropy?▼medium★ EssentialAmazonMetaGoogle1 replies○ sign inTrees are the building block of the ensembles that rule tabular ML, so interviewers check you can explain how a split gets chosen and how a lone tree overfits. The Gini-vs-entropy part is a trap: candidates over-weight a choice that barely matters. Here is the answer.Open full answer →
15Explain PCA and the curse of dimensionality. When and how do you reduce dimensions?▼medium★ EssentialAmazonGoogleMicrosoft2 replies○ sign inDimensionality questions probe linear-algebra intuition and practical judgment together. What interviewers reward is what PCA really does (project onto max-variance directions), why high dimensions hurt, and the honest catch: it is unsupervised, so it can discard the exact direction your label needs. Here is the answer.Open full answer →
17Explain backpropagation. Walk through the chain rule for a simple two-layer network.▼medium★ EssentialGoogleMetaNVIDIA1 replies○ sign inBackprop is the algorithm that makes deep learning trainable, and the interviewer wants the chain-rule mechanics, not just 'it computes gradients.' What interviewers reward is the forward-then-backward flow and why it is efficient. Here is the answer.Open full answer →
18What is batch normalization, why does it help training, and how does it differ at train vs inference?▼mediumGoogleNVIDIAMeta2 replies○ sign inBatchNorm is one of the most-asked deep-learning questions, and the trap is the train/inference difference. What interviewers reward is what it normalizes, why it stabilizes and speeds training, and why it switches to running statistics at inference. Here is that answer.Open full answer →
19What causes vanishing and exploding gradients, and how do activations, initialization, and residuals fix them?▼mediumGoogleNVIDIAMeta1 replies○ sign inThis question connects why deep nets were hard to train with the cluster of tricks that solved it. What interviewers reward is the multiplicative-gradient cause and naming the real fixes: ReLU, He/Xavier init, residuals, normalization. Here is the answer.Open full answer →
20How do CNNs work? Explain convolution, pooling, and the receptive field.▼mediumGoogleNVIDIAMeta1 replies○ sign inCNNs remain foundational even as transformers rise, and this checks whether you grasp why convolution suits images. What interviewers reward is parameter sharing and local connectivity, what pooling buys, and how the receptive field grows. Here is the answer.Open full answer →
24What is model calibration, why does it matter, and how do you measure and fix it?▼mediumGoogleAmazonMeta1 replies◆ premiumA model can rank perfectly and still output meaningless probabilities. The signal is knowing precisely when calibration matters, how to measure it, and the post-hoc fixes. Here is the answer most candidates miss.Open full answer →
25Explain the Central Limit Theorem, and the difference between correlation and causation (with Simpson's paradox).▼mediumMetaAmazonGoogle2 replies◆ premiumCore statistics screening that catches people who run tests without grasping why they work. The signal is what the CLT actually licenses, and a correlation-vs-causation answer that uses Simpson's paradox to expose a confounder.Open full answer →
28How does speech-to-text (Whisper) work, and what matters when building voice AI (STT + TTS)?▼mediumOpenAIGoogleMicrosoft1 replies◆ premiumVoice is a major modality and a common applied-AI surface. The signal is the audio-to-text pipeline, why Whisper is resilient, and the cumulative latency budget that can make or break a real-time voice agent.Open full answer →
29How do RNNs, LSTMs, and GRUs work, and why did transformers largely replace them?▼mediumGoogleNVIDIAAmazon1 replies◆ premiumSequence models remain interview staples, particularly the gating that repaired RNNs and the reason attention took over. What matters is linking the vanishing-gradient narrative to the parallelism case that let transformers ride the scaling wave.Open full answer →
32What is transfer learning, and how do you decide whether to freeze, fine-tune, or use feature extraction?▼mediumGoogleAmazonMeta1 replies◆ premiumTransfer learning is the reason you seldom train from scratch, and the real question is how much of the pretrained model to reuse versus adapt. What matters is a clean decision grid across data size and task similarity, plus knowing when a low LR guards against catastrophic forgetting.Open full answer →
33How do k-NN and Naive Bayes work, and what are their assumptions and tradeoffs?▼mediumAmazonGoogleMicrosoft2 replies◆ premiumTwo simple classifiers that keep showing up in interviews because they check whether you grasp assumptions and tradeoffs, not just sklearn calls. What matters is k-NN's laziness and curse of dimensionality against Naive Bayes' independence assumption. Here is the answer.Open full answer →
34Walk through the common probability distributions and when each applies.▼mediumAmazonGoogleMeta1 replies◆ premiumDistribution questions check whether you can map a data-generating process to the right model. What matters is knowing what each distribution describes plus a concrete use case, not memorizing PDFs. Here is the practical map.Open full answer →
35Explain hypothesis testing: null/alternative, p-value, Type I/II errors, and choosing a test.▼medium★ EssentialMetaAmazonGoogle1 replies◆ premiumHypothesis testing sits under every experiment, and what matters is reading the p-value correctly (it trips most people) and picking the right test. Here is the rigorous, plain-language answer.Open full answer →
36What are active learning and semi-supervised learning, and when do you use them?▼mediumGoogleAmazonMeta1 replies◆ premiumLabels are the costly bottleneck in ML, and these two techniques tackle it from different angles. What matters is knowing active learning picks what to label while semi-supervised draws on unlabeled data directly. Here is the answer.Open full answer →
37How do you approach a time-series forecasting problem, and what is special about validating it?▼mediumAmazonGoogleMeta2 replies◆ premiumTime series breaks the usual ML assumptions: data is ordered and correlated, so random cross-validation silently leaks the future and inflates your score. What matters is decomposition, point-in-time features, and time-aware validation.Open full answer →
38What are ensemble methods (bagging, boosting, stacking, blending), and why do ensembles work?▼mediumAmazonGoogleMeta1 replies◆ premiumEnsembles win Kaggle and quietly drive most production tabular models. What matters is explaining why combining models beats one (error decorrelation), and knowing exactly how the four techniques differ in what they fix.Open full answer →
40How do you detect outliers and anomalies, and which method do you choose?▼mediumAmazonGoogleMicrosoft1 replies◆ premiumOutlier detection appears in data cleaning, fraud, and monitoring, and no single method wins everywhere. Interviewers want you to match the statistical, distance, or model-based families to the dimensionality, distribution, and labels you actually have.Open full answer →
41What is multi-task learning, and when does sharing a model across tasks help or hurt?▼mediumGoogleMetaAmazon1 replies◆ premiumOne model, multiple objectives, a single shared backbone. Interviewers want you to explain precisely why sharing helps (regularization, data efficiency) and the failure mode that wrecks naive setups. Here is the answer.Open full answer →
42Why does the learning rate matter so much, and how do warmup and decay schedules help?▼mediumNVIDIAGoogleOpenAI1 replies◆ premiumThe learning rate is the single hyperparameter that can NaN your run at step 50 or stall it indefinitely. Modern training schedules it rather than pinning it to one value. Interviewers want you to know precisely what warmup and decay each give you. Here is the answer.Open full answer →
43How do you evaluate a ranking or recommendation system (nDCG, MAP, MRR, recall@k)?▼mediumGoogleMetaAmazon1 replies◆ premiumRanking is not classification, so accuracy is the wrong instrument. What you need to show is matching the rank-aware metric to the task: one right answer versus many, binary versus graded relevance. Here is the answer.Open full answer →
44Compare activation functions (sigmoid, tanh, ReLU, GELU, softmax) and when to use each.▼mediumGoogleMetaNVIDIA1 replies◆ premiumA staple that tests whether you know why ReLU displaced sigmoid and how to pair the output activation with the loss. What matters is telling the vanishing-gradient story correctly. Here is the answer.Open full answer →
45Compare batch, stochastic, and mini-batch gradient descent (and momentum).▼medium★ EssentialGoogleMetaNVIDIA2 replies◆ premiumEveryone says 'gradient descent,' but the batch-size decision and momentum are the actual interview content. What earns credit is the noise-vs-cost tradeoff across batch/SGD/mini-batch and why momentum pays off.Open full answer →
46How do you choose a loss function (MSE, MAE, Huber, cross-entropy, focal, contrastive)?▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumThe loss sets what the model optimizes, and the wrong choice silently sinks it. What counts is matching the loss to the task and data (outliers, imbalance), rather than reflexively reaching for MSE or cross-entropy.Open full answer →
48What cross-validation strategy do you use, and how do you avoid leakage in CV?▼medium★ EssentialAmazonGoogleMeta2 replies◆ premiumCross-validation yields a reliable performance estimate, but the wrong scheme leaks data and misleads. What matters is matching the CV scheme to the data (stratified, grouped, time-series) and fitting preprocessing inside the fold.Open full answer →
49Compare dimensionality reduction methods: PCA vs t-SNE vs UMAP.▼mediumGoogleMetaAmazon1 replies◆ premiumThese three get lumped together, yet they answer different questions: one is a preprocessing tool, two are eyeballing tools. The candidates who pass know precisely which structure each keeps and which it silently discards.Open full answer →
50Compare clustering methods: k-means, hierarchical, DBSCAN, and GMM.▼medium★ EssentialAmazonGoogleMeta1 replies◆ premiumk-means is the reflex answer, yet it silently assumes round, equal-size clusters and requires you to know k in advance. What earns credit is positioning each alternative by the specific assumption it drops, and knowing when to use it.Open full answer →
51What is Linear Discriminant Analysis (LDA), and how does it differ from PCA?▼mediumAmazonGoogleMicrosoft1 replies◆ premiumLDA is the supervised cousin of PCA, and the contrast is a favorite. What matters is knowing that LDA uses the labels to maximize class separation while PCA only chases variance, plus the C minus 1 dimension cap that trips up most candidates.Open full answer →
52Explain entropy, cross-entropy, KL divergence, and mutual information.▼mediumGoogleMetaAmazon2 replies◆ premiumThese four quantities sit under cross-entropy loss, decision-tree splits, distillation, and the KL penalty in RLHF. What matters is deriving them from one another and pointing to precisely where each turns up in a real training loop.Open full answer →
53How do you scale numerical features and encode categorical features?▼mediumAmazonGoogleMeta1 replies◆ premiumPreprocessing quietly decides whether a model trains well, and the right choice depends on the model. What matters is knowing when scaling counts versus when it is wasted effort, and how to encode a feature with thousands of categories without blowing up your matrix.Open full answer →
55Why does weight initialization matter, and what are Xavier and He initialization?▼mediumGoogleNVIDIAMeta2 replies◆ premiumBad initialization makes deep nets fail to train at all, with activations that vanish or explode through depth. What matters is knowing why zero init is fatal and how to match Xavier or He to your activation function.Open full answer →
56What is the curse of dimensionality, and how does it affect ML?▼mediumGoogleAmazonMeta1 replies◆ premiumHigh-dimensional data breaks the intuitions and methods that work in two or three dimensions. What matters is naming the concrete effects (distances concentrate, data goes sparse, overfitting climbs) and the mitigations that actually move the needle.Open full answer →
57How do you do feature selection (filter, wrapper, embedded methods)?▼mediumAmazonGoogleMicrosoft1 replies◆ premiumFeature selection trims noise, overfitting, and serving cost, but the three method families pull in different directions. What interviewers want is filter vs wrapper vs embedded and the conditions under which you reach for each.Open full answer →
59Compare similarity/distance metrics: Euclidean, cosine, Manhattan, Jaccard, Mahalanobis.▼mediumAmazonGoogleMeta1 replies◆ premiumPick the wrong distance metric and you quietly break kNN, clustering, and retrieval. What matters is knowing what each metric actually measures and matching it to the data: magnitude vs direction, sets, correlated features.Open full answer →
61What is dropout, and how does it regularize a neural network?▼mediumGoogleMetaNVIDIA2 replies◆ premiumDropout is the classic neural-net regularizer, but what matters is whether you can explain why zeroing activations forces redundancy, and the train-vs-inference scaling bug that trips most candidates. Here is the answer.Open full answer →
62What is weak supervision, and how do you train models with noisy or programmatic labels?▼mediumGoogleAmazonSnorkel2 replies◆ premiumHand-labeling at scale is the bottleneck. Weak supervision produces labels programmatically instead, and what matters is whether you can explain how a label model denoises conflicting sources into probabilistic labels. Here is the answer.Open full answer →
67Explain the basics of reinforcement learning (and how it differs from supervised learning).▼mediumGoogleOpenAIMeta1 replies◆ premiumRL sits under RLHF, robotics, and recommendation, and interviewers want the core framing. What matters is the agent-environment-reward loop and the three things that make it harder than supervised learning. Here is the answer.Open full answer →
68What is data augmentation, and how does it differ across modalities (images, text, audio)?▼mediumGoogleMetaNVIDIA1 replies◆ premiumData augmentation cheaply expands training data and regularizes models, but valid transforms differ by modality. What matters is the label-preserving constraint and why text is the hard one. Here is the answer.Open full answer →
75How do you handle multiclass classification (softmax vs one-vs-rest vs one-vs-one)?▼mediumAmazonGoogleMeta1 replies◆ premiumSome models are multiclass out of the box; others need a wrapper to extend a binary classifier to K classes. What shows depth is knowing the three strategies and exactly when each one wins. Here is the answer.Open full answer →
76How do you calibrate a model's probabilities (Platt scaling, isotonic, temperature)?▼mediumGoogleAmazonMeta2 replies◆ premiumA model can rank perfectly yet lie about its probabilities; its 0.9 may hold only 70% of the time. What shows depth is knowing the three fixes, the data size each requires, and how to measure the gap. Here is the answer.Open full answer →
77Two of your features are highly correlated. Does it hurt the model, and what do you do about it?▼mediumMetaAmazonDatabricks1 replies◆ premiumThe textbook reflex ('drop one') is usually the wrong instinct, and whether collinearity matters at all depends on your model and what you want from it. This is the answer that tells rote apart from real understanding.Open full answer →
78What assumptions does linear regression make, and how do you check and handle violations?▼mediumAmazonMetaDatabricks1 replies◆ premiumAnyone can recite 'linearity and normality.' Few can say which assumption matters for predictions versus inference, how to catch a violation in a residual plot, and what to actually do about it. Here is that answer.Open full answer →
81Your training loss is oscillating, plateauing, or diverging. How do you debug it?▼mediumGoogleMetaNVIDIA1 replies◆ premium'The model won't train' comes down to a short list of usual suspects, each with a distinctive loss-curve signature. The shape of the curve names the bug before you touch a single hyperparameter. Here is how to read it.Open full answer →
83Your classifier outputs probabilities, but you need a decision. How do you pick the threshold (it's rarely 0.5)?▼mediumAmazonStripeMeta1 replies◆ premiumDefaulting to 0.5 leaves money or safety on the table. The right cutoff comes from the cost of each error and the operating constraint, not the model. Here is how to set it deliberately.Open full answer →
84Stakeholders ask which features drive your model. Why is feature importance misleading, and what do you use instead?▼mediumDatabricksMetaAmazon2 replies◆ premiumThe built-in importance scores from XGBoost can rank a random ID above a vital feature, and stakeholders will base decisions on that bar chart. Here is why default importance misleads and what a careful answer reports instead.Open full answer →
85Two models have nearly identical accuracy. How do you decide which one to ship?▼mediumAmazonMetaDatabricks1 replies◆ premiumTwo models landing at the same accuracy is common, and accuracy was rarely the deciding factor to begin with. The real tiebreakers are the ones a junior candidate leaves out. This is the checklist a staff engineer works through before shipping either one.Open full answer →
89What is curriculum learning, and when does training on easy-to-hard examples actually help?▼mediumGoogle DeepMindMetaNVIDIA1 replies◆ premiumThe notion that models, like students, learn better starting from easy examples is intuitive, and it sometimes works and sometimes does nothing. Knowing when it pays off is the real signal. Here is the honest answer.Open full answer →
94Walk through an end-to-end computer vision pipeline from raw images to a deployed model.▼mediumGoogleAmazonNVIDIA1 replies◆ premiumMost CV systems break at the seams: a preprocessing mismatch between training and serving, not the model itself. The signal is naming every stage from ingestion through serving and the single consistency invariant that trips teams up. Here is the answer.Open full answer →
95How do you choose loss functions for computer vision tasks (classification, detection, segmentation)?▼mediumGoogleMetaNVIDIA1 replies◆ premiumCross-entropy is where you start, not where you finish. The signal is fitting the loss to the task structure: focal for detection's background flood, the IoU family for box overlap, Dice for imbalanced masks. Here is how to reason about it.Open full answer →
97For a dataset with a million points, would you use a deep network or KNN, and why?▼mediumAmazonGoogleMicrosoft1 replies◆ premiumA million rows does not automatically call for deep learning. The signal is reasoning from dimensionality, data type, inference latency, and label budget, then noting where KNN quietly lives on as approximate nearest neighbor. Here is the answer.Open full answer →
101What actually makes a random forest work, beyond 'it averages a bunch of trees'?▼mediumAmazonMicrosoftGoogle2 replies◆ premiumAnyone can say 'ensemble of trees'. The real answer concerns decorrelating those trees and why that, not averaging alone, is what drops variance. Here is what makes the forest more than the sum of its trees.Open full answer →
104Why does Naive Bayes work so well despite an assumption that is almost always false?▼mediumAmazonMicrosoftGoogle2 replies◆ premiumThe 'naive' independence assumption is wrong on real data, yet the classifier remains a strong baseline for text. The interesting answer explains why classification survives a broken assumption, plus smoothing and the variants. Here it is.Open full answer →
105What are the real tradeoffs of k-NN, and what breaks it at scale and in high dimensions?▼mediumAmazonGoogleApple1 replies◆ premiumk-NN looks trivial until you ask about picking k, why distances lose meaning in high dimensions, and how to keep prediction fast on millions of points. Here is the tradeoff-aware answer.Open full answer →
106When does DBSCAN beat k-means, and how do you evaluate clusters with no labels?▼mediumAmazonGoogleMicrosoft1 replies◆ premiumk-means assumes round, equal-size blobs and a known k. DBSCAN uncovers arbitrary shapes and outliers but brings its own knobs. The tricky part is judging clusters without labels. Here is the comparison and the evaluation toolkit.Open full answer →
107Compare filter, wrapper, and embedded feature selection, and when does each fail?▼mediumAmazonMicrosoftGoogle2 replies◆ premiumUnivariate ranking is the trap everyone falls into: it retains redundant features and discards ones that only matter in combination. Here is the filter/wrapper/embedded breakdown plus mRMR and Boruta, and where each one falls short.Open full answer →
108Why does Elastic Net exist if you already have Lasso and Ridge?▼mediumAmazonMicrosoftGoogle1 replies◆ premiumLasso delivers sparsity, Ridge copes with correlated features, and each stumbles where the other excels. Elastic Net combines them for a specific, common failure. Here is when it earns its two hyperparameters.Open full answer →
117How does Prophet (and decomposable forecasting) work, and when does it beat or lose to ARIMA and gradient boosting?▼mediumMetaUberStripe2 replies◆ premiumProphet treats forecasting as curve-fitting trend plus seasonality plus holidays, rather than as a stochastic process. The signal is knowing why that design wins on business data and where it quietly fails. Here is the answer.Open full answer →
120Compare SHAP and LIME for explaining model predictions. What does SHAP guarantee that LIME does not?▼mediumGoogleMicrosoftAmazon2 replies◆ premiumBoth explain one prediction by crediting features, but only one is backed by a uniqueness theorem. What interviewers reward is knowing SHAP's game-theory guarantees, LIME's instability, and when each fits. Here is the answer.Open full answer →
122How do you run a human evaluation you can actually trust?▼mediumOpenAIAnthropicScale AI◆ premiumMost teams run human eval as a vibe check with ten examples and a 1-5 slider. The signal is treating it as a designed experiment: pairwise, blinded, powered, and agreement-measured. Here is the protocol that survives scrutiny.Open full answer →
123Why can't you evaluate an LLM application the way you evaluate a classifier?▼mediumOpenAIAnthropicDatabricks◆ premiumAccuracy against a held-out label is the wrong instrument for a system with no single right answer, an open failure space, and a metric that is itself a model. Here is what breaks, what survives, and what replaces it.Open full answer →
125What is visual question answering, and why is it harder than the benchmarks suggest?▼mediumGoogleMetaMicrosoft◆ premiumA model that never looks at the image can score respectably on VQA, which tells you most of what you need to know about the benchmark. Here is what the scores hide, and the one-line ablation that exposes it.Open full answer →
126How do you evaluate a multimodal system?▼mediumGoogle DeepMindMetaOpenAI◆ premiumAn eval suite that never varies the image will happily pass a model that has stopped looking at it. Start with the modality ablation, then pick metrics by what the system actually produces. Here is the full stack.Open full answer →
01Implement Slowly Changing Dimension Type 2 history tracking in a Delta lakehouse.▼mediumDatabricksSnowflakeMicrosoft3 repliesunlockedSCD2 tells apart engineers who have actually run pipelines from those who have only read about them. The answer rests on a single atomic MERGE that closes the prior row while opening the new one, and holds up when the job retries.Open full answer →
02Group a stream of user events into sessions in SQL (30-minute inactivity gap) using window functions.▼mediumMetaDatabricksSnowflake1 repliesunlockedSessionization tells apart candidates who reach for a self-join from those who know LAG plus a running sum. Below is the two-pass pattern that holds up across billions of events, along with the edge cases interviewers press on.Open full answer →
05Find the top-N records per group and a running total per group in SQL.▼medium★ EssentialMetaSnowflakeDatabricks1 repliesunlockedTop-N-per-group is the window-function question every data round asks, and the trap is RANK vs ROW_NUMBER vs DENSE_RANK. What interviewers want is picking the right ranking function for ties and understanding window frames. Here is the pattern and the tie nuance.Open full answer →
07When do you choose batch vs streaming, and what are the Lambda and Kappa architectures?▼medium★ EssentialDatabricksGoogleMeta1 repliesunlockedA pipeline-design question that rewards fitting the architecture to the freshness requirement rather than chasing real-time for its own sake. What interviewers want is the latency-vs-complexity tradeoff and an understanding of why Kappa arose to kill Lambda's dual codebase. Here is the decision.Open full answer →
08Explain dimensional modeling: star vs snowflake schema, facts vs dimensions, and normalize vs denormalize for analytics.▼medium★ EssentialSnowflakeDatabricksMeta2 repliesunlockedA data-warehouse fundamentals question that tells apart people who model for analytics from those who only know OLTP normalization. What interviewers listen for is facts vs dimensions, the star schema, and why analytics denormalizes where transactional systems normalize.Open full answer →
09How do partitioning, file formats (Parquet), and file layout affect query performance in a lakehouse?▼mediumDatabricksSnowflakeGoogle1 repliesunlockedWhat separates a query that scans a terabyte from one that scans a gigabyte is usually layout, not the engine. Interviewers listen for partition pruning, columnar formats, and the small-files problem.Open full answer →
10How do you keep an analytics warehouse in sync with a source database using change data capture?▼medium★ EssentialDatabricksSnowflakeGoogle2 repliesunlockedKeeping a warehouse in sync with a live OLTP database is a CDC problem, and the naive 'full reload nightly' or 'query by updated_at' answers leave real gaps. The signal is log-based CDC and idempotent merges.Open full answer →
11What data-quality checks do you put on a pipeline, and how do you catch bad data before it spreads?▼mediumDatabricksSnowflakeMeta1 replies○ sign inBad data quietly corrupts everything downstream (dashboards, models, decisions), and 'it ran without error' is not the same as 'it's correct.' The signal is the categories of checks and failing loud at the boundary.Open full answer →
12A SQL query is slow. How do you diagnose and optimize it?▼medium★ EssentialSnowflakeDatabricksMeta1 replies○ sign inQuery tuning is a core data-engineering skill, and what interviewers watch for is reading the execution plan before you change anything, then applying the right fix. Here is the diagnostic method that tells guessers apart from engineers.Open full answer →
13How do you find and remove duplicate rows in SQL, including 'fuzzy' near-duplicates?▼medium★ EssentialMetaSnowflakeDatabricks1 replies○ sign inDedup is a daily data-engineering task and a frequent screen. The signal is ROW_NUMBER to keep the right record (not just DISTINCT), pinning down what 'duplicate' actually means, and handling near-duplicates at scale.Open full answer →
14How do you query hierarchical data (org charts, category trees) in SQL with a recursive CTE?▼mediumSnowflakeDatabricksMicrosoft2 replies○ sign inHierarchies (org charts, bill-of-materials, category trees) call for recursion, and a self-join reaches only one level down. The signal is the recursive CTE with its anchor plus recursive members, and understanding how it terminates.Open full answer →
15How do you pivot rows into columns in SQL (conditional aggregation)?▼mediumMetaAmazonSnowflake1 replies○ sign inPivoting (rows to columns) shows up constantly in analytics and reporting, and the portable trick is conditional aggregation, not a vendor PIVOT clause. The signal is the CASE-inside-aggregate pattern and knowing its one real limit.Open full answer →
17Explain SQL join types (inner, left/right/full outer, semi, anti, cross) and when to use each.▼medium★ EssentialMetaAmazonSnowflake2 replies○ sign inJoins are the core of SQL, and the real signal is precise semantics: semi/anti joins (EXISTS / NOT EXISTS), the NOT IN null trap, and the fan-out bug that quietly doubles your sums.Open full answer →
18Compute a 7-day moving average and other rolling aggregates with SQL window frames.▼mediumMetaAmazonSnowflake2 replies○ sign inThe subtle part of rolling aggregates is the window frame clause, especially ROWS vs RANGE. The signal is the right frame for a moving window and the tied-rows gotcha that corrupts running totals.Open full answer →
19How do you compute percentiles, medians, and quantile buckets in SQL?▼mediumMetaAmazonSnowflake2 replies○ sign inMeans mislead on skewed data like latency and spend, and SQL ships dedicated functions for the truth. The signal is PERCENTILE_CONT/DISC for exact quantiles, NTILE for bucketing, and why p50/p99 beat the average.Open full answer →
20How do you handle schema evolution in a data pipeline or lakehouse without breaking consumers?▼mediumDatabricksSnowflakeGoogle2 replies○ sign inA new column is safe; a rename quietly corrupts every dashboard downstream. The signal is knowing which changes stay compatible, enforcing data contracts in CI, and running expand-contract migrations for the breaking ones.Open full answer →
22Explain SQL set operations (UNION/INTERSECT/EXCEPT) and NULL handling pitfalls.▼mediumMetaAmazonSnowflake2 replies◆ premiumSet operations and NULL semantics catch out even senior engineers. The signal is UNION vs UNION ALL and its dedup cost, plus three-valued logic where NULL matches nothing, not even itself.Open full answer →
24What are materialized views, and when do you use them vs regular views?▼mediumSnowflakeDatabricksAmazon1 replies◆ premiumMaterialized views swap storage and freshness for query speed by precomputing results. The signal is grasping the view-vs-materialized-view tradeoff and the refresh/staleness question.Open full answer →
25How do you handle date/time analysis in SQL (truncation, intervals, time zones)?▼mediumMetaAmazonSnowflake1 replies◆ premiumTime-based analysis runs through all of analytics, and time zones and bucketing are the usual traps. The signal is DATE_TRUNC for bucketing, interval math, and storing UTC.Open full answer →
26What is a correlated subquery, and why can it be a performance trap?▼mediumAmazonMetaSnowflake1 replies◆ premiumCorrelated subqueries read naturally but may run once per row (O(n squared)), a classic slow-query cause. The signal is spotting them and rewriting as joins or window functions.Open full answer →
27How do you compute multiple aggregation levels at once (GROUPING SETS, ROLLUP, CUBE)?▼mediumAmazonMetaSnowflake2 replies◆ premiumReporting frequently needs subtotals and grand totals across several dimensions, and stitching that together with many UNIONs wastes work. The signal is GROUPING SETS, ROLLUP, and CUBE in one pass.Open full answer →
28How do you count distinct values at scale (HyperLogLog and approximate aggregation)?▼mediumSnowflakeGoogleMeta1 replies◆ premiumExact COUNT(DISTINCT) over billions of rows has to track every unique value, so it turns slow and expensive. The signal is knowing when a sketch like HyperLogLog buys huge memory and speed wins for a sub-percent error budget.Open full answer →
30How do you query semi-structured data (JSON) in SQL, and when should you flatten vs keep it nested?▼mediumSnowflakeDatabricksAmazon2 replies◆ premiumModern warehouses store JSON natively, and querying it well sets strong data engineers apart from the rest. The signal is path access plus unnesting, and a clear call on when to flatten hot fields versus keep the schema-on-read flexibility.Open full answer →
31What is the QUALIFY clause, and how does it simplify filtering on window functions?▼mediumSnowflakeDatabricksGoogle1 replies◆ premiumWHERE cannot reference a window function, so people resort to wrapping queries in subqueries. QUALIFY filters on window output directly. The signal is explaining why WHERE fails and writing top-N-per-group cleanly.Open full answer →
32What is a MERGE (upsert), and how do you use it for incremental loads and SCDs?▼mediumSnowflakeDatabricksAmazon1 replies◆ premiumMERGE does insert, update, or delete in a single statement, the foundation of incremental loads and slowly-changing dimensions. The signal is the matched/not-matched logic and what keeps a retry safe.Open full answer →
33What is time travel (querying historical table versions) in a lakehouse/warehouse?▼mediumDatabricksSnowflakeAmazon1 replies◆ premiumModern table formats can query a table as of an earlier version or timestamp, the foundation of reproducibility, audits, and recovery. The signal is the versioned-snapshot mechanism and where it falls apart.Open full answer →
37Do vector similarity search inside SQL (pgvector / warehouse). When is this the right call?▼mediumDatabricksSnowflakeSupabase1 replies◆ premiumA dedicated vector database is not always required. When embeddings sit beside your relational data, nearest-neighbor in SQL makes filters and joins easy. Here is how, and the scale where it breaks down.Open full answer →
38Pull a random sample, and a stratified sample, for an ML training set in SQL.▼mediumMetaAmazonDatabricks1 replies◆ premiumBuilding a training set from a billion-row table means sampling, and the naive 'ORDER BY random() LIMIT n' sorts the whole table. Stratified sampling takes even more care. Here are both, done efficiently.Open full answer →
40Bin a continuous feature into quantile and fixed-width buckets in SQL. When do you use each?▼mediumAmazonMetaCapital One1 replies◆ premiumBucketing converts a skewed continuous feature into something a model (or a report) handles well, and the choice between equal-width and equal-count bins changes everything on skewed data. Here is both in SQL.Open full answer →
42Your time-series has missing days, breaking moving averages and forecasts. Fill the gaps with a date spine.▼mediumAmazonNetflixAirbnb1 replies◆ premiumDays with zero events simply don't show up in an event table, so a 7-day average quietly averages the wrong 7 rows. A date spine makes the missing days explicit. Here is the pattern.Open full answer →
43Extract and clean a usable dataset from a messy real-world database using SQL plus Python (dedupe, types, nulls, joins, validation).▼mediumAnthropicDatabricksSnowflake1 replies◆ premiumThe applied data-wrangling screen: here is a grubby database, turn out a clean analysis-ready table. The signal is profiling before transforming, doing set-based cleaning in SQL and row-level fixes in Python, joining without fanning out rows, and validating the output rather than trusting it.Open full answer →
45You have a wide table with one column per month. How do you unpivot it into tidy (key, month, value) rows?▼mediumSnowflakeDatabricksMicrosoft1 replies◆ premiumWide tables with a column per period are easy to read and hard to query. The signal is unpivoting to long format with UNPIVOT or a UNION/cross-join trick, and knowing how NULLs and types bite you.Open full answer →
51What is a data contract, and how does it fit into a data quality framework?▼mediumDatabricksSnowflakeStripe2 replies◆ premiumDownstream pipelines shatter when an upstream team renames a column at 2am. The signal is a data contract: a versioned, enforced agreement on schema and semantics, verified at the producer before bad data spreads.Open full answer →
52What is data lineage, and how do you capture it across a pipeline at table and column level?▼mediumDatabricksSnowflakeLinkedIn1 replies◆ premiumWhen a metric looks off, lineage points you to the upstream table at fault. The signal is separating table from column lineage and knowing the three capture methods: SQL parsing, runtime hooks, and metadata APIs.Open full answer →
56How do you query deeply nested JSON with arrays in SQL, and when do you flatten vs keep it nested?▼mediumSnowflakeDatabricksGoogle1 replies◆ premiumPulling a scalar by path is easy; an array of objects three levels deep is where people freeze. The signal is LATERAL FLATTEN / UNNEST to explode arrays into rows plus a clear rule for when to flatten versus query in place.Open full answer →
51Explain matrix factorization for recommendation, and how it compares to modern approaches.▼mediumNetflixAmazonSpotify2 replies◆ premiumMatrix factorization is the classic collaborative-filtering method and the conceptual seed of modern embedding-based recsys. What matters is the latent-factor idea and how it leads to two-tower/neural models.Open full answer →
53Design a large-scale text classification system (e.g. news categorization or topic tagging).▼mediumGoogleMetaAmazon2 replies◆ premiumTagging articles at scale is bread-and-butter ML, but the naive version fails three ways: it is multi-label, the taxonomy is hierarchical and keeps growing, and rare classes hide behind aggregate accuracy. What matters is the model choice plus how you handle all three.Open full answer →
57Design a document summarization service at scale.▼mediumGoogleMicrosoftAmazon2 replies◆ premiumTwo forces shape this design: documents longer than the context window, and summaries that must not lie. The strong answer pairs hierarchical map-reduce with claim-level grounding, then serves it cheaply at scale.Open full answer →
58Design a customer churn prediction system.▼mediumAmazonNetflixMicrosoft1 replies◆ premiumA high-AUC churn model that changes no behavior is worthless. The strong answer nails the label definition, chooses classification vs survival deliberately, and is judged on retention uplift, not accuracy.Open full answer →
59Design a lead scoring system (rank sales leads by conversion likelihood).▼mediumSalesforceMicrosoftAmazon1 replies◆ premiumReps only have so many hours, so the model exists to steer them toward the leads worth calling. Interviewers listen for value-weighted prioritization, carefully built conversion labels, and evidence of revenue uplift measured against a holdout.Open full answer →
66Design a prompt management platform so teams can version, test, and deploy prompts without redeploying code.▼mediumOpenAISierraSalesforce1 replies◆ premiumWhen prompts live inside source code, every wording tweak becomes a full deploy and nobody knows which prompt is running. The fix is to treat prompts as managed, versioned configuration. Here is the platform.Open full answer →
70Design a cost-control and quota system for an internal LLM platform serving many teams.▼mediumMicrosoftAWSDatabricks1 replies◆ premiumHand every team an LLM API key and your bill turns into a mystery capped by a six-figure surprise at month end. Attributing, capping, and optimizing spend is a platform feature. Here is how to build it.Open full answer →
77Design a URL shortener like TinyURL or bit.ly.▼medium★ EssentialAmazonGoogleMicrosoft2 replies◆ premiumA deceptively rich warm-up. The interesting calls are how you mint short, collision-free, unguessable keys at scale, and how a read-heavy 100:1 workload shapes storage and caching. Here is the clean design with capacity math.Open full answer →
84Design a language detection system.▼mediumGoogleMicrosoftAmazon1 replies◆ premiumDetecting the language of a string seems trivial until the input is three words, blends two languages, or is half code. A strong answer chooses the model by latency budget, handles short text and code-switching, and returns calibrated confidence rather than a brittle single guess.Open full answer →
85Design an audio denoising / speech enhancement system.▼mediumGoogleMicrosoftApple1 replies◆ premiumCleaning noise out of speech is a tradeoff between how good it sounds and how fast it runs. A strong answer weighs spectrogram masking against waveform models under a real-time budget, names PESQ and STOI as the metrics, and stays honest about the artifacts each approach brings.Open full answer →
92Design an AI writing assistant (Grammarly/Notion-style) for rewriting, grammar, and tone.▼mediumMicrosoftGoogleAdobe1 replies◆ premiumA writing assistant has to feel instant as the cursor moves through a live document. Learn how to separate fast deterministic checks from LLM rewrites, stream suggestions, and keep edits stable so the text does not flicker while the user types.Open full answer →
105Design a real-time leaderboard that ranks millions of players and updates scores instantly.▼mediumAmazonNetflixMeta1 replies◆ premiumShowing the top 10 is easy. Showing a player their global rank among 50M others, updated live, is the real challenge. The answer turns on the right data structure, sharding, and approximate ranks for the long tail. Here is how leaderboards scale.Open full answer →
106Design a geo-proximity service that finds the nearest places to a user, like Yelp or store locators.▼mediumGoogleUberAirbnb2 replies◆ premiumFind the 20 nearest restaurants within 5km, fast, for millions of users. A naive distance scan over every place is hopeless. The design centers on spatial indexing, geohash or quadtree partitioning, and coping with dense cities versus empty regions. Here is how proximity search works.Open full answer →
110How does token streaming work end to end, and what breaks when you put an output guardrail in front of it?▼mediumOpenAIAnthropicVercel◆ premiumSSE versus WebSocket is the easy half. The half that separates candidates: a buffer-everything output filter throws away the time-to-first-token you paid a GPU to deliver, and you cannot send an HTTP error after the 200 has already flushed.Open full answer →
114How do you design for the latency versus quality tradeoff in an AI system?▼mediumOpenAIAnthropicGoogle◆ premiumEvery AI system spends quality to buy speed, whether or not the team admits it. What scores is knowing the exchange rate for each knob, taking the free wins first, and having already decided what you will sell when the system saturates.Open full answer →
115Your model provider is down. How do you keep the product usable instead of showing an error?▼mediumMicrosoftDatabricksIntercom◆ premiumA provider outage should cost you quality, not the feature. The answer that scores is a pre-decided fallback ladder, a timeout policy that treats slow as down, and the discipline to test the path you hope never runs.Open full answer →
118Users do not trust your AI feature. How do you design for trust?▼mediumGoogleMicrosoftGitHub◆ premiumTrust is an interface and reliability problem, not a messaging one, and the goal is not maximum trust. Here is the mechanism list that actually moves it, the recovery path after a public failure, and the metric most teams optimize in the wrong direction.Open full answer →
01How do you decide when to retrain a production model: on a schedule, or triggered by drift?▼medium★ EssentialDatabricksAmazonMicrosoft1 repliesunlockedThe rookie reply is 'retrain weekly.' The experienced call is a hybrid: drift-triggered retraining backed by a max-staleness fallback, plus a gate requiring any new model to beat the incumbent. Here is how to think it through.Open full answer →
02What is a feature store, and how does it prevent training-serving skew?▼mediumDatabricksMicrosoftAmazon2 repliesunlockedA feature store is simple to define and simple to botch. The signal is naming the precise bug it prevents (training-serving skew) and the point-in-time correctness that blocks label leakage. Here is the full picture.Open full answer →
03Your model's p99 inference latency is too high. How do you bring it down without retraining?▼mediumNVIDIAMicrosoftAmazon1 repliesunlockedThe trap is leaping straight to 'add more GPUs.' The signal is profiling first, then reaching for the cheap, no-retrain levers in the correct sequence. Here is the diagnose-then-optimize playbook for p99.Open full answer →
04What does a CI/CD pipeline for ML add over a standard software CI/CD pipeline?▼medium★ EssentialMicrosoftDatabricksGoogle2 repliesunlockedThe trap is describing ordinary software CI/CD. The signal is the three additions ML brings: data validation, a model-quality gate against a baseline, and versioning data plus model plus code as a unit. Here is what truly differs.Open full answer →
06How do you make ML experiments reproducible and manage models from experiment to production?▼mediumDatabricksMicrosoftGoogle2 repliesunlockedReproducibility is what divides an ML platform from a heap of notebooks. The signal is capturing the full provenance (data, code, config, metrics) and a registry that governs promotion. Here is what to track and why each piece counts.Open full answer →
07Compare shadow, canary, and blue-green deployment for ML models, and how you roll back safely.▼medium★ EssentialMicrosoftAmazonDatabricks1 repliesunlockedDeploying a model is more than flipping a switch. The signal is knowing what each rollout strategy validates, why shadow is uniquely useful for ML, and keeping rollback a single step away. Here is the comparison and when each fits.Open full answer →
08How do you run hyperparameter optimization efficiently across a cluster of GPUs?▼mediumGoogleNVIDIADatabricks1 repliesunlockedGrid search is the wrong answer at scale. The signal is knowing why random beats grid, how Bayesian optimization and early-stopping schemes (Hyperband/ASHA) spend compute wisely, and how to parallelize without stragglers.Open full answer →
09How do you optimize the cost of large-scale ML training and inference?▼mediumAmazonMicrosoftDatabricks2 repliesunlockedGPU spend is typically the largest line item in an AI org, and this question tests whether you reason in utilization rather than just capacity. The signal is wringing out per-unit cost (utilization, right-sizing, spot, quantization) before scaling out.Open full answer →
10How do you catch a broken upstream data change before it silently degrades your model?▼medium★ EssentialDatabricksMicrosoftAmazon2 repliesunlockedThe most common ML production failure is not a code bug but a quiet upstream data change. The signal is validating at ingestion (schema plus distribution), data contracts with producers, and failing loud rather than training on garbage.Open full answer →
11How do you build observability for an LLM application, and how does it differ from traditional monitoring?▼mediumMicrosoftDatabricksOpenAI2 replies○ sign inYou cannot improve an LLM app you cannot see into, and LLM observability is not service monitoring. What counts is tracing multi-step chains, capturing inputs/outputs/tokens/cost, and online quality signals, not just latency and errors.Open full answer →
12How do prompt caching and semantic caching cut LLM cost and latency, and what are the risks?▼mediumAnthropicOpenAIMicrosoft2 replies○ sign inCaching is one of the biggest LLM cost levers, but 'cache the response' is naive for a non-deterministic system. What counts is telling prompt (prefix) caching apart from semantic caching and knowing when each is safe.Open full answer →
13How does LLMOps differ from traditional MLOps, and how do you version and manage prompts in production?▼medium★ EssentialMicrosoftDatabricksGoogle1 replies○ sign inLLMOps is not MLOps with bigger models. What counts is the genuinely new surfaces (prompts as deployable artifacts, eval-driven development, often no training step) and treating prompts with the same version discipline as code.Open full answer →
14What is LLM routing (model cascades / semantic routing), and how do you implement it?▼mediumMicrosoftDatabricksCohere1 replies○ sign inRouting each request to the right model is one of the biggest LLM cost/latency levers in production. What counts is matching query difficulty to model capability and knowing when the cascade pattern beats a classifier.Open full answer →
15How do you detect data drift and concept drift in production, concretely?▼medium★ EssentialDatabricksMicrosoftAmazon2 replies○ sign inModels decay silently as the world shifts, and 'monitor for drift' is too vague. What counts is the actual statistical methods and separating data drift you can detect without labels from concept drift you often cannot.Open full answer →
16How do you test an ML system (beyond accuracy), including data, model, and behavioral tests?▼medium★ EssentialGoogleMicrosoftDatabricks3 replies○ sign inA high accuracy number hides slice failures, brittleness, and silent data bugs. What counts is naming the test layers that catch what the headline metric can't. Here is the framework that gets scored highest.Open full answer →
18How do you ensure end-to-end lineage and reproducibility for a production model (for debugging and audit)?▼mediumDatabricksMicrosoftGoogle1 replies○ sign inWhen a model regresses or an auditor asks 'how was this built,' guessing is a failing answer. What matters is tracking the entire chain so any model can be reproduced and any past decision explained. Here is the chain.Open full answer →
19When do you use batch, real-time (online), streaming, or async inference?▼mediumAmazonMicrosoftDatabricks2 replies○ sign inNot every prediction needs a low-latency endpoint, and reaching for one by default wastes money. What matters is matching the serving pattern to the latency and freshness requirement. Here is the decision and when you'd reverse it.Open full answer →
20How do you ensure label/annotation quality in a data pipeline?▼mediumGoogleAmazonScale AI2 replies○ sign inModels can only be as good as their labels, and noisy annotation quietly caps performance. What interviewers want is a measured quality process, not a bigger collection effort. Here is the answer.Open full answer →
21How do you decide when to roll back a deployed model, and how do you do it safely?▼mediumAmazonMicrosoftGoogle1 replies◆ premiumA bad model in production needs a fast, safe rollback, but ML rollback is harder than code: the model is data and the truth signal lags. What matters is pre-defined criteria plus a previous version kept warm. Here is the answer.Open full answer →
22How do you track and attribute the cost of ML/LLM systems, and control it?▼mediumMicrosoftAmazonDatabricks1 replies◆ premiumAI systems get expensive fast, and 'the GPU bill is huge' means nothing you can act on without attribution. What matters is breaking spend down by model, feature, team, and request, then naming the levers. Here is the answer.Open full answer →
23What is shadow deployment, and how does it differ from canary and A/B testing?▼mediumAmazonMicrosoftGoogle1 replies◆ premiumShadow deployment validates a new model on real traffic without exposing users to it. What matters is knowing outputs run in parallel then get discarded, and how it complements canary and A/B. Here is the answer.Open full answer →
24How do you orchestrate ML pipelines (Airflow, Kubeflow, etc.), and what makes ML pipelines special?▼mediumDatabricksGoogleAmazon1 replies◆ premiumML workflows are multi-step DAGs (ingest, feature, train, eval, deploy), and orchestrators run them reliably. What matters is the DAG/scheduling model plus what's genuinely ML-specific: data deps, versioned artifacts, drift triggers, eval gates.Open full answer →
26What is the champion-challenger pattern for models in production?▼mediumAmazonMicrosoftNetflix2 replies◆ premiumChampion-challenger is how you improve a production model without betting the business on a hunch: the live model versus candidates competing on real metrics. What matters is the ongoing-competition framing and disciplined, pre-committed promotion.Open full answer →
27What should you monitor for an ML model in production (beyond uptime)?▼mediumAmazonMicrosoftGoogle2 replies◆ premiumMonitoring an ML system goes past CPU and latency; the model can silently rot while the dashboard stays green. What matters is the four-layer taxonomy (operational, data, prediction, outcome) and using inputs as leading indicators because labels lag.Open full answer →
29How do you manage model versions and promote a model from staging to production safely?▼medium★ EssentialDatabricksAWSMicrosoft1 replies◆ premium'Which model is in prod right now, and how did it get there?' should be a one-second lookup with an audit trail. If it isn't, you already have a rollback and compliance problem. Here is the promotion pipeline.Open full answer →
34How do you change or remove a feature without breaking the models that depend on it?▼mediumUberMetaDatabricks1 replies◆ premiumA data engineer renames a column and three production models quietly begin scoring on garbage. Features form a shared contract, and altering them demands the same care as a breaking API change. Here is the discipline it takes.Open full answer →
35Your ML monitoring is either too noisy to read or too quiet to trust. How do you design good alerts?▼mediumMetaGoogleStripe1 replies◆ premiumAn alert that fires nonstop gets muted, and a model that fails with no alert is worse still. Good ML alerting is a design problem sharing SRE's principles, with ML-specific twists on top. Here is how to get it right.Open full answer →
36Your model runs on the data scientist's laptop but breaks in production. How do you package it for reproducible deployment?▼mediumAWSDatabricksMicrosoft1 replies◆ premium'Works on my machine' is a dependency and environment problem, and for ML it drags in CUDA versions and exact library pins that shift numerical results. Here is how to bring the production environment in line with training.Open full answer →
42How do you version large datasets in practice, and when do you reach for DVC versus lakeFS?▼mediumDatabricksSnowflakeScale AI1 replies◆ premiumYou cannot put a 2 TB dataset in git, and copying it per experiment bankrupts you. What matters is knowing how content-addressed versioning works and when file-level (DVC) versus branch-level (lakeFS) fits. Here is the decision.Open full answer →
43What DAG design patterns make an ML orchestration pipeline reliable in Airflow or Dagster?▼mediumAirbnbDatabricksSnowflake1 replies◆ premiumAnyone can wire tasks into a DAG. What matters is the patterns that keep it correct under retries and backfills: idempotency, data-aware triggering, and the asset model. Here is what separates a flaky pipeline from a trustworthy one.Open full answer →
48Walk me through concept drift, data drift, and label drift. Which one actually forces a retrain?▼mediumGoogleAmazonDatabricks1 replies◆ premiumThree drifts get casually lumped together, but they differ in detectability and in their fixes. What interviewers want is knowing which you can catch without labels and which one genuinely demands a new model.Open full answer →
50Labels arrive weeks late. How do you monitor a model from its predictions and outputs alone?▼mediumStripeAmazonMeta2 replies◆ premiumYou cannot wait for ground truth to tell you the model broke. Prediction-side monitoring catches failures in minutes, not weeks, provided you know which output signals actually move first.Open full answer →
52A model shipped bad predictions to production for six hours. Walk me through the incident response.▼mediumGoogleMetaStripe2 replies◆ premiumML incidents are trickier than service outages: nothing crashed, the model was just wrong. The strong answer covers detection, mitigation, and a blameless postmortem that fixes the system, not the person.Open full answer →
54How do you build a data flywheel from production feedback, and what makes feedback loops go wrong?▼mediumOpenAIMetaNetflix1 replies◆ premiumProduction usage can become your best source of training data, or a self-reinforcing trap. What matters is knowing how to capture clean feedback and how to break the loops that quietly corrupt the model.Open full answer →
55Walk me through deploying and scaling model inference on Kubernetes.▼mediumNVIDIAUberSpotify◆ premiumA Deployment and a Service will serve a model, but GPUs upend every Kubernetes default: scheduling, probes, autoscaling signals, and rollouts. Here is the setup that survives production, and when KServe earns its complexity.Open full answer →
57What role do feature flags and kill switches play in shipping AI safely?▼mediumNetflixStripeLinkedIn◆ premiumAI ships behavior, not just code, and behavior is what you need to be able to switch off. The cheapest safety control you will ever build is a toggle that takes effect in seconds, and most teams discover theirs is broken during the incident.Open full answer →
58Your LLM app aces the eval set and is brittle in the wild. How do you test robustness to input variation?▼mediumOpenAIAnthropicScale AI◆ premiumYour eval set is clean, well-punctuated, and phrased the way you think about the problem. Your users are not. The move that turns this from a vibe check into an engineering artifact is measuring invariance rather than accuracy, and gating on the number it produces.Open full answer →
59Your model was fair at launch and biased six months later. How do you monitor fairness continuously?▼mediumLinkedInStripeMeta◆ premiumFairness is a property of the model and the data it meets, so it drifts even when the weights never change. Treating it as a monitoring problem exposes three things a one-off audit never has to solve: noisy small slices, multiple comparisons, and labels that arrive months late.Open full answer →
09How do you choose an inference-serving stack (vLLM, TGI, Triton, TorchServe) and configure it for throughput?▼medium★ EssentialNVIDIAMicrosoftDatabricks1 repliesunlockedKnowing the algorithms is only half the job. The rest is the serving stack that actually delivers throughput within a latency budget. What they grade is whether you match the server to the workload and name the four knobs that move the needle.Open full answer →
10Explain knowledge distillation: how it works, when to use it, and how it compares to quantization and pruning.▼mediumNVIDIAGoogleMicrosoft2 repliesunlockedDistillation gives you a small fast model that retains most of a big model's quality. The signal is explaining why soft targets transfer more than hard labels, and knowing when to distill versus quantize versus prune. Here is the model-compression answer.Open full answer →
12How does continuous (in-flight) batching improve LLM serving throughput vs static batching?▼medium★ EssentialNVIDIAOpenAIAnthropic1 replies○ sign inContinuous batching is the biggest single throughput lever in modern LLM serving. The signal is explaining why static batching leaves the GPU idle on variable-length generation, and why PagedAttention is what makes the fix practical.Open full answer →
13How do you run LLMs on edge/on-device, and what is GGUF's role?▼mediumAppleNVIDIAMicrosoft1 replies○ sign inOn-device AI is a genuine product surface (privacy, offline, latency), and it imposes hard constraints. The signal is the quantization plus format plus runtime stack and the tradeoffs you accept under tight memory and battery budgets.Open full answer →
14How do you select GPUs for LLM training and inference, and what specs actually matter?▼mediumNVIDIAOpenAIxAI1 replies○ sign inPicking GPUs is a genuine applied decision, and 'get the biggest one' misses the point. The signal is knowing which spec binds your workload (VRAM, bandwidth, interconnect) and the train-versus-serve difference that flips the answer.Open full answer →
15How do you autoscale AI/LLM inference workloads, and why is it harder than autoscaling web services?▼mediumMicrosoftNVIDIADatabricks2 replies○ sign inAutoscaling GPUs is nothing like autoscaling web servers: GPUs are scarce and expensive, model loading is slow, and the right signal is not CPU. The signal is scaling on queue and GPU metrics, taming cold starts, and the scale-to-zero economics.Open full answer →
16How do you implement request queuing and priority scheduling for a shared AI inference service?▼mediumNVIDIAMicrosoftDatabricks1 replies○ sign inUnder load, a shared inference service has to decide whose request runs now. The signal is queuing with priorities, backpressure, and fairness wired into batching, not first-come-first-served until the service falls over.Open full answer →
19What is gradient (activation) checkpointing, and what does it trade off?▼mediumNVIDIAOpenAIGoogle1 replies○ sign inActivations, not just weights, can dominate training memory, and gradient checkpointing is the standard remedy. The signal is the precise trade: recompute activations in the backward pass rather than storing them. Here is the answer.Open full answer →
21How do you profile and diagnose LLM inference performance (TTFT, inter-token latency, GPU utilization)?▼medium★ EssentialNVIDIAMicrosoftOpenAI1 replies◆ premiumLLM serving has its own metrics, and a single latency number hides the real bottleneck. The signal is separating prefill from decode and treating GPU utilization as a clue, not a verdict. Here is the diagnostic toolkit.Open full answer →
22What are ONNX, TensorRT, and model compilation, and why export/compile a model for serving?▼mediumNVIDIAMicrosoftGoogle1 replies◆ premiumA PyTorch model in eager mode is not the fastest form for inference. The signal is knowing that ONNX buys portability while TensorRT-style compilers buy hardware-tuned speed, and precisely which optimizations get you there. Here is the answer.Open full answer →
24What do Ray, Horovod, Spark, and Dask do, and when do you use each for distributed ML?▼mediumDatabricksAmazonNVIDIA1 replies◆ premiumThese four get confused constantly, but they sit at different layers: data processing, distributed training, and general orchestration. The signal is fitting the tool to the workload instead of reaching for the one you know. Here is the answer.Open full answer →
25How does batch size affect training (speed, memory, generalization), and how do you scale it?▼mediumNVIDIAGoogleMeta1 replies◆ premiumBatch size is a training knob whose effects on speed, memory, and generalization are non-obvious. The signal is the large-batch tradeoffs and the learning-rate-scaling and gradient-accumulation tricks that make scaling actually work.Open full answer →
26What do model-serving frameworks (Triton, TorchServe, vLLM, TGI) provide, and how do you choose?▼mediumNVIDIAMicrosoftAmazon1 replies◆ premiumAlmost nobody builds a serving stack by hand. What interviewers watch for is whether you know what frameworks give you (batching, multi-model, GPU scheduling) and why LLM-specific servers even exist when general ones batch already.Open full answer →
31What is model cold-start / warmup in serving, and how do you handle it for autoscaling?▼mediumAmazonMicrosoftGoogle1 replies◆ premiumA newly booted replica is sluggish on its opening requests while weights load and kernels compile, which fights with reactive autoscaling. The signal is identifying where cold start comes from plus the warmup and provisioning remedies.Open full answer →
32What is model pruning (and sparsity), and how does it compare to quantization and distillation?▼mediumNVIDIAGoogleMeta1 replies◆ premiumPruning strips redundant weights to make a model smaller and sometimes faster. The signal is the structured-versus-unstructured divide and why only structured pruning dependably cuts latency on commodity hardware.Open full answer →
45How do you load-test and capacity-plan an LLM inference service before launch?▼mediumAWSNVIDIAOpenAI2 replies◆ premiumLaunching an LLM service on a guessed GPU count is how you get paged on day one. Capacity planning for LLMs differs from web services because tokens, not requests, are the unit. Here is how to size it.Open full answer →
49Compare static, dynamic, and continuous batching for LLM serving and state the tradeoffs.▼mediumNVIDIAOpenAIAWS1 replies◆ premiumThree batching strategies, three very different latency profiles. Choosing wrong leaves throughput or tail latency on the floor. Here is what each one costs and when to use it.Open full answer →
66Your model training is burning a lot of energy. How do you measure and cut the carbon footprint?▼mediumGoogleHugging FaceNVIDIA◆ premiumMost answers optimize the training run. For any model that gets used, inference dominates lifetime energy, and the biggest carbon lever is the serving stack. Measure first, then cut the thing that is actually large.Open full answer →
67Compare LLM inference engines: vLLM, SGLang, TensorRT-LLM, TGI, and llama.cpp. What actually differs?▼mediumNVIDIADatabricksTogether AI◆ premiumAnyone can list the engines. The signal is naming the one mechanism that distinguishes each (paged KV blocks, a radix prefix tree, ahead-of-time kernel compilation, quantized CPU inference) and picking from your traffic shape rather than a leaderboard.Open full answer →
69What actually drives cost and latency when you serve a multimodal model?▼mediumOpenAIAnthropicNVIDIA◆ premiumAn image is not one input, it is a large prompt. Once you internalize that image tokens dominate prefill, the cost levers stop being model choices and start being resolution, tiling, and cache placement.Open full answer →
70Your diffusion model takes too long per image. How do you speed up sampling?▼mediumStability AIAdobeNVIDIA◆ premiumSampling cost factors cleanly into steps, forward passes per step, and cost per step, and each factor has a different lever. Two of the biggest wins are free, and most teams take neither.Open full answer →
05What are adversarial examples, why are they a security concern, and how do you defend against them?▼mediumGoogleMicrosoftAnthropic1 repliesunlockedA classic ML-security question that trips up people who only know clean-data accuracy. What lands is grasping why models are brittle, the realistic threat model, and the fact that no single defense holds. Here is the honest answer.Open full answer →
06How do you protect an LLM API from abuse and runaway cost (rate limits, quotas, abuse detection)?▼mediumOpenAIMicrosoftAnthropic2 repliesunlockedLLM endpoints are unusually exposed: every call can spend real money and consume scarce GPU capacity, so abuse is a security and a financial problem at once. What lands is layered controls on tokens and cost, not just request count. Here is the defense.Open full answer →
10What does an AI governance and compliance program look like (model cards, audit, EU AI Act risk tiers)?▼medium★ EssentialMicrosoftGoogleIBM1 repliesunlockedEnterprise AI deals turn on governance, and engineers who can speak it stand out. What lands is treating it as documentation, accountability, and risk-tiered controls across the lifecycle rather than a legal afterthought.Open full answer →
11What is the difference between explainability and interpretability, and how do you explain a model's decision?▼mediumGoogleMicrosoftIBM2 replies○ sign inRegulators and enterprises increasingly require explanations for AI decisions, and the two terms get thrown around loosely. What lands is separating inherently interpretable models from post-hoc explanations and picking the right technique for the stakes.Open full answer →
12What is red teaming for an LLM application, and how do you structure it before launch?▼medium★ EssentialAnthropicOpenAIGoogle2 replies○ sign inRed teaming is how you uncover an AI system's failures before users or attackers do. What lands is a structured program covering the real attack surface (jailbreaks, harmful content, leakage, bias) and routing every finding back into defenses.Open full answer →
13What is the NIST AI Risk Management Framework, and how do you operationalize it?▼mediumMicrosoftGoogleIBM1 replies○ sign inThe NIST AI RMF is the most-cited voluntary framework for managing AI risk, and enterprises ask about it. What lands is treating it as a continuous process built on four functions rather than a compliance checklist. Here is the answer.Open full answer →
14How do you handle copyright and IP risk with generative AI (training data and outputs)?▼mediumOpenAIGoogleMicrosoft1 replies○ sign inCopyright is among the largest unresolved risks in generative AI, on both the training and output side. What lands is naming both exposures and the engineering mitigations for each rather than offering a legal opinion. Here is the engineer's framing.Open full answer →
16How do you watermark AI-generated content and establish provenance (e.g. against deepfakes)?▼mediumGoogleOpenAIAdobe1 replies○ sign inAs generated output grows indistinguishable from real, knowing what is AI-made matters for trust, misinformation, and regulation. What lands is the split between in-content watermarks and attached provenance metadata, plus the fact that detection is an arms race. Here is the answer.Open full answer →
17How would you design an AI incident response plan, and run a blameless post-mortem for an AI failure?▼mediumGoogleMicrosoftAmazon2 replies○ sign inAI fails in ways traditional software does not: bias, hallucination, harmful output, silent quality regression. The strong answer is a concrete playbook (detect, contain, communicate) plus a blameless post-mortem that ships systemic fixes. Here is the answer.Open full answer →
18How do you detect and redact PII in text at scale (for LLM inputs, logs, and training data)?▼mediumMicrosoftGoogleAmazon2 replies○ sign inBecause detection never catches everything, the strong answer works in layers: checksummed regex for structured PII, ML/NER for the unstructured PII regex misses, and an honest explanation of why redaction alone is never enough. Here is the answer.Open full answer →
19What goes in a model card and a datasheet, and why do they matter?▼mediumGoogleMicrosoftIBM1 replies○ sign inModel cards and datasheets are the standard responsible-AI documentation artifacts, and regulators and buyers increasingly demand them. The strong answer knows what each one covers and grasps that the whole purpose is honest disclosure of limitations, not marketing. Here is the answer.Open full answer →
20How do you actually implement input and output guardrails for an LLM application?▼medium★ EssentialMicrosoftOpenAIAnthropic1 replies○ sign in'Add guardrails' says nothing concrete. The strong answer names the specific input and output checks, the mechanisms that enforce them, the fail-safe behavior when one trips, and the honest admission that they are imperfect. Here is the implementation answer.Open full answer →
22How do you detect out-of-distribution inputs, and why does it matter for safe deployment?▼mediumGoogleAmazonMicrosoft2 replies◆ premiumModels return confident answers on inputs unlike anything in their training set, which is how silent production failures start. The signal is knowing why raw softmax confidence misleads and which detectors genuinely separate in- from out-of-distribution.Open full answer →
23What is system-prompt leaking / prompt extraction, and how do you defend against it?▼mediumOpenAIAnthropicMicrosoft2 replies◆ premiumAttackers coax models into spilling the hidden system prompt, exposing IP, business logic, or worse, embedded secrets. The signal is treating the prompt as non-secret and defending in layers, rather than betting on 'never reveal your instructions.'Open full answer →
24How do you build content moderation / toxicity classification, and what makes it hard?▼mediumGoogleMetaMicrosoft1 replies◆ premiumToxicity detection looks like plain text classification but is nothing of the sort: context flips labels, adversaries evolve weekly, and naive models tag dialects as hate. The signal is naming those failure modes and building the human-in-the-loop system around them.Open full answer →
25What does the EU AI Act require, and how does its risk-based tiering affect what you build?▼mediumMicrosoftGoogleIBM1 replies◆ premiumThe EU AI Act sorts obligations by risk, making that classification a first-order design decision rather than a legal footnote. The signal is knowing the four tiers and what high-risk systems must prove before they ship.Open full answer →
26What should you log and audit in a production AI system, and why?▼mediumMicrosoftAmazonGoogle1 replies◆ premiumAudit logging is the backbone of AI accountability, yet logging everything blindly turns your logs into the biggest privacy liability you own. The signal is what to log so any decision can be replayed, and how to do it without hoarding PII.Open full answer →
29How do you evaluate the safety of an LLM (safety benchmarks and beyond)?▼mediumAnthropicOpenAIGoogle2 replies◆ premiumSafety is not a single number. The candidates who pass name the axes, run benchmarks as a gate, and then explain why benchmarks by themselves certify nothing. Here is the framing interviewers score highest.Open full answer →
32What are the supply-chain risks in AI (models, data, dependencies), and how do you manage them?▼mediumGoogleMicrosoftAnthropic1 replies◆ premiumEvery third-party model, dataset, and library widens the attack surface: backdoors, poisoning, arbitrary code on load, license landmines. The signal is treating models and data as supply-chain artifacts that need provenance and vetting. Here is the answer.Open full answer →
34How do you keep secrets and credentials out of LLM prompts, logs, and training data?▼mediumMicrosoftAWSSalesforce1 replies◆ premiumLLM apps bleed secrets in three quiet places: the prompt, the logs, and the next training set. Each demands a different control. Here is how to close all three.Open full answer →
37How do you defend an LLM service against resource-exhaustion and denial-of-service attacks?▼mediumCloudflareOpenAIAWS1 replies◆ premiumAn attacker doesn't have to breach your LLM to hurt you, only make it do expensive work. A few crafted prompts can pin your GPUs and run up the bill. The defense is not a bigger rate limit.Open full answer →
52How does C2PA establish content provenance, and what are its limits against a determined forger?▼mediumAdobeMicrosoftGoogle1 replies◆ premiumC2PA cryptographically signs where media originated, but a signature you can peel off is not the same as a watermark you cannot. The signal is knowing what provenance proves, what it does not, and why you pair it with watermarking. Here is the answer.Open full answer →
53What is ISO/IEC 42001, and how does it differ from the NIST AI RMF and the EU AI Act?▼mediumMicrosoftIBMGoogle2 replies◆ premiumISO 42001 is the certifiable AI management-system standard, the AI counterpart to ISO 27001. The signal is knowing it is an auditable management system, not a technical control list, and how it sits alongside NIST and the EU AI Act. Here is the answer.Open full answer →
55How do you design consent and data-retention policy for data that feeds ML training?▼mediumGoogleMicrosoftMeta2 replies◆ premiumConsent and retention decide whether you can lawfully train on data and how long you may hold it. The signal is purpose limitation, granular consent, enforceable TTLs, and a plan for deleting data already baked into a model. Here is the answer.Open full answer →
56How do you assess the risk of a third-party model or AI vendor before you adopt it?▼mediumMicrosoftAWSSalesforce2 replies◆ premiumAdopting a vendor model pulls their data practices, security, and failure modes into your product. The signal is a structured assessment spanning data handling, security, performance, and contractual terms, not just a demo that looked good. Here is the answer.Open full answer →
62You removed names and IDs, and researchers still re-identified your users. How did that happen?▼mediumAppleGoogleMeta◆ premiumStripping direct identifiers protects nobody, because the identifying information was never in the name column. Here is how a linkage attack actually works, why k-anonymity and its patches keep failing, and the one defense that makes a promise it can keep.Open full answer →
63Your AI denied a user and they have no way to fight it. How do you design contestability?▼mediumStripeCapital OneGoogle◆ premiumMost teams stop their governance work at 'we can explain the decision.' The obligation, and the interview signal, is what happens after the user reads the explanation and says it is wrong.Open full answer →
64Users are abusing your AI product, not just your quota. How do you build trust-and-safety enforcement?▼mediumOpenAIAnthropicMeta◆ premiumRate limits stop a user who costs you too much. They do nothing about a user doing something you forbid. The enforcement system is a different design, and interviewers can tell within a minute whether you have built one.Open full answer →
67You want to distill a frontier API model into your own smaller model. What stops you?▼mediumOpenAIAnthropicGoogle◆ premiumThe technique works and everybody knows it works. The interview is not testing whether you can generate the training set; it is testing whether you know what you are agreeing to when you do.Open full answer →
01Tell me about a time a model you shipped failed in production. What happened and what did you do?▼mediumOpenAIAnthropicAmazon3 repliesunlockedThe point is not whether you failed; everyone has. Panels are probing for ownership, debugging discipline, and candor under stress. Here is the frame that turns a failure story into a hire signal, plus the pitfalls that turn it into a flag.Open full answer →
02Tell me about a time you disagreed with a teammate or manager on technical direction.▼medium★ EssentialAmazonMetaGoogle2 repliesunlockedEvery loop includes this question, and most answers slip one of two ways: too combative or too much of a doormat. The signal is evidence-based persuasion plus real disagree-and-commit. Here is the arc that connects and the traps that sink it.Open full answer →
03Explain a complex model or ML tradeoff to a non-technical stakeholder. How do you do it?▼medium★ EssentialGoogleMicrosoftAmazon2 repliesunlockedApplied AI is half translation. Panels ask this to gauge whether you can shed the jargon, cast tradeoffs in business terms, and win trust from the people who own the roadmap. Here is how to demonstrate that skill inside the answer itself.Open full answer →
04Walk me through a project you're most proud of, in depth.▼medium★ EssentialOpenAIAmazonAnthropic2 repliesunlockedThis is an entire interview round (OpenAI's project deep dive, Amazon's Tech Talk), not small talk. It is where they check whether you genuinely understand the work you claim. The signal is depth, your specific contribution, and the tradeoffs you can defend. Here is how to prepare and deliver it.Open full answer →
05Tell me about a time you had to make progress on an ambiguous, underspecified problem.▼medium★ EssentialMetaAnthropicAmazon2 repliesunlockedApplied AI work is ambiguous by nature, and panels (Meta's 'embracing ambiguity,' Anthropic's deliberately under-specified problems) check whether you freeze or drive. The signal is structured progress under uncertainty. Here is the arc that connects.Open full answer →
06Tell me about a time you drove a decision or change across teams without having authority over them.▼mediumGoogleAmazonMeta1 repliesunlockedSenior applied-AI work runs mostly on influence, not command: you need other teams to prioritize your dependency, take up your approach, or change a plan you do not own. The signal is persuading with evidence and shared goals. Here is the arc that demonstrates it.Open full answer →
07Tell me about a time you had to learn a new technology or domain quickly, and how you keep up with AI.▼mediumNVIDIAOpenAIGoogle1 repliesunlockedAI moves fast enough that learning speed is itself a core competency, and several companies ask about it directly. The signal is a concrete method for ramping fast plus a real, recent example of putting something new to use. Here is how to show learning agility rather than merely claim it.Open full answer →
08Tell me about a time you had to make a decision with incomplete data under time pressure.▼mediumAmazonMetaNVIDIA1 repliesunlockedApplied AI rarely waits for certainty, and companies (Amazon's Bias for Action, NVIDIA's speed) check whether you can act decisively without freezing or turning reckless. The signal is a reversible, well-reasoned call paired with a plan to validate. Here is the arc that connects.Open full answer →
09Tell me about a time you received critical feedback or made a mistake. How did you handle it?▼medium★ EssentialAmazonGoogleMicrosoft2 repliesunlockedThis question screens for ego and growth, not perfection. The interviewer wants to watch you take hard feedback without getting defensive, own a real mistake in first person, and change as a result. The signal is humility plus a durable, concrete change.Open full answer →
10Why applied AI, and why this company? (Mission and motivation)▼mediumOpenAIAnthropicGoogle2 repliesunlockedAt the frontier labs this is a genuine gate, not a pleasantry. They turn away strong engineers who cannot articulate real motivation. The signal is specific, honest alignment between what you want to build and what this company actually does.Open full answer →
11Tell me about a time you mentored or developed someone. How did you measure your impact?▼mediumGoogleAmazonMicrosoft1 replies○ sign inMentoring questions check whether you scale past your own output, a senior and leadership signal. The interviewer wants a real example with a tailored approach and a measurable outcome, not 'I helped a junior.'Open full answer →
12How do you decide whether a problem actually needs AI/ML, or whether traditional software is better?▼mediumGoogleAmazonMicrosoft2 replies○ sign inStrong applied-AI engineers are the ones who refuse to reach for ML when they shouldn't. The signal is judgment: ML earns its complexity only under specific conditions, and otherwise rules and heuristics win.Open full answer →
13How do you measure the ROI of an AI feature, and how do you decide it's worth building or keeping?▼mediumAmazonMicrosoftGoogle2 replies○ sign inApplied AI engineers who reason in business value, not just model metrics, stand out. The signal is tying the feature to a business metric, modeling total cost, and being willing to kill it. Here is the framework.Open full answer →
14Tell me about an experiment or project that failed, or a time you changed your mind based on data.▼mediumNetflixMetaGoogle2 replies○ sign inThis question rewards intellectual honesty and a data-driven mindset over a polished win. The signal is running a real experiment, accepting a result you did not want, and acting on it. Here is the arc that connects at experiment-heavy cultures.Open full answer →
15Tell me about a time you had to deliver under a tight deadline. How did you ensure quality?▼mediumAmazonMetaGoogle2 replies○ sign inThis question checks whether you can deliver under pressure without missing the date or shipping something broken. The signal is ruthless scoping and guarding quality where it matters, not all-nighter heroics. Here is the arc that connects.Open full answer →
16Tell me about a time you took ownership of something beyond your defined role.▼mediumAmazonGoogleMeta1 replies○ sign inOwnership is a top leadership signal: taking responsibility for an outcome no one assigned you. The signal is spotting a gap, owning it end to end including the unglamorous parts, and driving measurable impact. Here is the arc that connects.Open full answer →
17Tell me about a time you used data to convince a skeptical stakeholder or change a decision.▼mediumAmazonMetaGoogle2 replies○ sign inApplied AI is persuasion backed by evidence, and this checks whether you can move a skeptic with data rather than rank or opinion. The signal is understanding their concern, bringing the exact evidence that addresses it, and speaking in their terms.Open full answer →
18Tell me about a time you simplified a complex system or process.▼mediumAmazonGoogleMeta2 replies○ sign inSimplification is a senior signal: anyone can add complexity, but removing it safely takes judgment. The interviewer wants a real case where you cut complexity, told essential apart from accidental, and it paid off measurably.Open full answer →
19Tell me about a conflict with a coworker and how you resolved it.▼mediumAmazonGoogleMeta1 replies○ sign inThis probes whether you handle interpersonal friction with maturity, not who turned out right. The signal is seeking to understand the other side, anchoring on the shared goal, and keeping the relationship intact through the disagreement.Open full answer →
20Tell me about a time you went above and beyond for a customer (or user).▼mediumAmazonGoogleMicrosoft2 replies○ sign inCustomer obsession is Amazon's first Leadership Principle and a universal product signal. The interviewer wants evidence that you begin from the user's real need, not the technology, and push for the harder right solution over the easy one.Open full answer →
21What's the hardest technical problem you've solved?▼mediumGoogleMetaAmazon2 replies◆ premiumA depth probe dressed up as a story. They want to watch you reason through genuine difficulty and keep going when pushed three levels down. The signal is a real hard problem, a systematic attack, and a root cause you own cold.Open full answer →
23Tell me about a time you took a calculated risk or acted without complete approval.▼mediumAmazonMetaGoogle2 replies◆ premiumThis probes whether you can move quickly under uncertainty without being reckless. The signal is a calculated, reversible risk taken with judgment. Here is the arc that lands, especially at Amazon.Open full answer →
24Tell me about a time you had to deliver bad news (a slip, a failure, a problem) to stakeholders.▼mediumAmazonGoogleMeta1 replies◆ premiumThe way you deliver bad news reveals maturity and trustworthiness. The signal is communicating early, honestly, and with a plan, rather than hiding or sugarcoating it. Here is the arc that lands.Open full answer →
25Tell me about a time you persevered through a long or difficult challenge.▼mediumAmazonGoogleMeta2 replies◆ premiumThis probes resilience: can you push through sustained difficulty without quitting or burning out? The signal is staying the course through setbacks with adaptation, not stubbornness. Here is the arc that lands.Open full answer →
26Looking back at a project, what would you do differently?▼mediumAmazonGoogleMeta1 replies◆ premiumThis tests self-awareness and growth: can you critique your own work honestly and pull out lessons? The signal is a genuine, specific improvement you'd make, owned without defensiveness. Here is the arc.Open full answer →
27Tell me about a time you collaborated across teams or functions (e.g. with product, engineering, or business).▼mediumAmazonGoogleMeta1 replies◆ premiumAI, ML, and GenAI engineering is cross-functional: you deliver alongside PMs, engineers, and domain experts. This question checks whether you work well across those boundaries. The signal is connecting different goals and vocabularies toward one shared outcome. Here is the arc.Open full answer →
29Tell me about a time you gave difficult feedback to a peer or report.▼mediumAmazonGoogleMeta1 replies◆ premiumHandling hard feedback well is a marker of maturity and leadership. Interviewers look for candor delivered with care that genuinely shifted behavior, not avoidance and not bluntness. Here is the arc that lands.Open full answer →
30Tell me about a time you had to manage competing priorities or multiple stakeholders' demands.▼mediumAmazonGoogleMeta1 replies◆ premiumReal work brings more demands than time, often from stakeholders who each assume theirs comes first. This question tests how you prioritize and communicate. The signal is ordering by impact out in the open, not simply working harder.Open full answer →
31Tell me about a time you had to adapt to a significant change (new tech, shifting requirements, a pivot).▼mediumAnthropicGoogleMeta2 replies◆ premiumThe field advances quickly, requirements move, and tooling turns over month to month. The question tests adaptability. What scores is welcoming the change, ramping fast, and steering course productively rather than pushing back. Particularly relevant for applied AI.Open full answer →
32Tell me about a time you pushed back on a request or said no to a stakeholder.▼mediumAmazonGoogleMeta1 replies◆ premiumSaying no skillfully is a senior marker: guarding quality, scope, or users while keeping the relationship intact. What scores is principled pushback backed by reasoning and an alternative, not a bare refusal. Here is the arc.Open full answer →
33Tell me about a time you defined success metrics for an ambiguous project.▼mediumAmazonGoogleMeta2 replies◆ premiumChoosing the right metric takes real judgment, and in AI the offline number and true impact regularly diverge. What scores is a metric anchored to outcomes and protected against gaming. Here is the arc.Open full answer →
34How do you communicate an AI system's reliability and limitations to a non-technical stakeholder or customer?▼mediumOpenAIAnthropicGoogle2 replies◆ premiumAI features are probabilistic, yet stakeholders hear 'it works.' Setting honest expectations without draining enthusiasm is a core applied-AI skill. Here is how to frame reliability so trust holds through the first mistake.Open full answer →
35A customer expects the AI to be flawless and magical. How do you manage unrealistic expectations?▼medium★ EssentialSalesforceSierraDecagon1 replies◆ premiumHype primes customers to expect a system that reads minds and never fails. Resetting that without losing the deal is an applied-AI skill interviewers probe head-on. Here is the move.Open full answer →
36Tell me about a time you argued that AI/ML was the wrong tool for a problem.▼mediumAnthropicGoogleDatabricks2 replies◆ premiumAt an AI company, arguing against AI is a strong signal: it shows judgment ahead of hype. Interviewers use it to spot engineers who solve problems instead of reaching for a favorite hammer. Here is how to tell it.Open full answer →
37Your AI system made a visible mistake that affected a customer. How did you handle it and rebuild trust?▼mediumSierraDecagonSalesforce2 replies◆ premiumAI features break in public, sometimes embarrassingly. How you respond to the customer, not only the bug, is what this question actually tests. Here is the recovery that rebuilds trust.Open full answer →
38Tell me about a time you balanced shipping an AI feature fast against safety or responsibility concerns.▼mediumAnthropicOpenAIGoogle DeepMind2 replies◆ premiumEvery AI team feels the tug between velocity and doing it responsibly. How you work through that tension, with judgment rather than dogma in either direction, is what this question screens. Here is the answer.Open full answer →
39How do you scope and run a successful AI proof-of-concept or pilot with a customer?▼mediumPalantirDatabricksScale AI1 replies◆ premiumMost AI pilots fail on scoping rather than the model: fuzzy success criteria, the wrong use case, or data that was never ready. For customer-facing and applied AI roles, running a pilot well is the job itself. Here is the playbook.Open full answer →
40The field moves weekly. How do you decide whether a new AI technique or model is worth adopting (hype vs substance)?▼mediumOpenAIAnthropicDatabricks2 replies◆ premiumChasing every new model is as harmful as ignoring them all. Interviewers want a repeatable filter for signal versus hype, plus the discipline to test on your own problem. Here is that filter.Open full answer →
41A customer's team is nervous about adopting your AI feature. How do you build trust and drive adoption?▼mediumSalesforceGleanPalantir2 replies◆ premiumThe model can be excellent and still fail if the people who must use it do not trust it. Adoption is change management, not a slicker demo. Here is how forward-deployed engineers actually earn it.Open full answer →
42Tell me about a time you handled a difficult or angry customer. How did you turn it around?▼mediumPalantirSierraDecagon1 replies◆ premiumAn angry customer tests composure and ownership, not empathy alone. Interviewers want to watch you de-escalate, fix the real problem, and rebuild trust. Here is the arc that scores.Open full answer →
43A customer keeps expanding the scope mid-project. How do you handle scope creep?▼mediumPalantirScale AIDatabricks1 replies◆ premiumScope creep quietly sinks deployments and erodes trust on both sides. Interviewers want to see you defend the timeline without turning into the team that says no to everything. Here is the move.Open full answer →
45Tell me about working with a distributed team across timezones and cultures. How did you make it work?▼mediumPalantirAWSMicrosoft1 replies◆ premiumDistributed, cross-cultural work is the norm for customer-facing AI roles. Interviewers want to see deliberate async habits and cultural awareness, not heroics. Here is what scores.Open full answer →
46How do you communicate technical progress and risk to a customer's executives?▼mediumPalantirC3 AISalesforce2 replies◆ premiumExecutives buy outcomes and care about risk, not your architecture. Interviewers want to see you open with the decision, quantify in their terms, and raise risk honestly. Here is the pattern.Open full answer →
47Two customers are escalating for the same scarce time. How do you prioritize under conflicting asks?▼mediumPalantirScale AISalesforce1 replies◆ premiumWhen everything is urgent, the skill is a defensible triage plus honest communication to whoever loses out. Interviewers want a framework and the nerve to say no clearly. Here is the move.Open full answer →
48Tell me about a time you led a postmortem after an incident. How did you keep it blameless and useful?▼mediumGoogleAWSMicrosoft2 replies◆ premiumA good postmortem repairs systems, not people. Interviewers look for you to distinguish human error from system failure and deliver real prevention. Here is how to lead one that scores.Open full answer →
49A customer hands you a vague ask like 'use AI to improve our operations.' How do you find the real requirements?▼mediumPalantirC3 AIScale AI1 replies◆ premiumVague asks are standard in customer-facing AI work. Interviewers look for structured discovery that surfaces the real problem and a measurable first win, not a rush to build. Here is the method.Open full answer →
51How do you drive adoption of a tool or platform across an organization that is not asking for it?▼mediumDatabricksSnowflakePalantir1 replies◆ premiumBuilding it is not the same as adopting it. Interviewers look for you to win a beachhead, prove value, and let advocates spread it, not mandate usage from the top. Here is the playbook.Open full answer →
53How do you onboard a customer's team so they can own the system after you leave?▼mediumPalantirDatabricksSnowflake1 replies◆ premiumAn embedded customer engagement works only if the customer can run it without you. Interviewers look for enablement and a real handoff plan, not a dependency. Here is how to build self-sufficiency.Open full answer →
54A customer's security team raises objections that block your deployment. How do you handle it?▼mediumPalantirAWSMicrosoft2 replies◆ premiumSecurity and compliance teams are gatekeepers, not adversaries. Interviewers look for you to bring them in early, satisfy real requirements, and turn a blocker into an ally. Here is the approach.Open full answer →
55How do you tell a customer no without damaging the relationship?▼mediumSalesforcePalantirSierra1 replies◆ premiumTelling a customer no is a relationship skill: shield them from a bad outcome while keeping their trust. Interviewers look for the reason, the alternative, and the framing. Here is the move.Open full answer →
56How do you use AI tools in your own workflow, and how do you verify their output?▼mediumShopifyMetaAnthropic◆ premiumThe 2025-2026 AI-fluency screen. Interviewers look for a concrete daily workflow, a real verification discipline, and a story where the AI was wrong. Vague enthusiasm fails; here is what passes.Open full answer →
58Your PM wants to ship an AI feature with a 15% hallucination rate on edge cases. How do you communicate the risk?▼mediumGoogleMicrosoftNotion◆ premiumBoth of the obvious moves cost you credibility: block the launch on principle, or ship quietly and hope. The answer that scores turns a scary percentage into a number of bad outputs per week and then changes what the argument is about.Open full answer →
59A complex agent scores 15% better on your benchmark than a simple RAG pipeline. Which do you ship?▼mediumAnthropicOpenAIGlean◆ premiumThe number is bait. Interviewers use this to see whether you treat a benchmark delta as a decision or as a claim to be audited, and whether you can price latency, cost, and on-call burden against accuracy. Here is the answer that scores.Open full answer →
61How do you balance moving fast on new AI capability against keeping the system reliable?▼mediumOpenAIAnthropicStripe◆ premiumMost candidates answer this with a speech about tradeoffs. The ones who get hired describe a mechanism: the teams that ship fastest in AI are not the ones with fewer guardrails, they are the ones whose guardrails make a mistake cheap.Open full answer →
62Walk me through how you take an AI feature from an idea to production.▼mediumOpenAIAnthropicDatabricks◆ premiumThe ordering is the answer, and one move separates the people who have shipped from the people who have prototyped: where evaluation sits in the sequence. Most candidates put it in the wrong place and lose the question in the first sentence.Open full answer →