02When do you choose prompting vs RAG vs fine-tuning for a customer problem?▼medium★ EssentialOpenAIAnthropicCohere2 repliesunlockedThe single most-asked applied GenAI question, and the one most candidates answer as a definition dump. The interviewer wants a decision framework with a default and the conditions that flip it. Here is the call that scores.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 clean fundamentals question that catches people who only know GPT. The signal is matching the architecture to the task by its attention pattern, and explaining why the field consolidated on decoder-only even for non-generation tasks. 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 asks how to stop the model making things up. The weak answer is 'better prompts.' The signal is knowing why models hallucinate and layering 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 looks like plumbing until it explains your bill, your latency, and why the model fumbles numbers and rare languages. The signal is knowing how subword tokenizers work and the consequences that fall out of them.Open full answer →
09Explain temperature, top-k, and top-p (nucleus) sampling. When do you use greedy vs sampling?▼medium★ EssentialOpenAICohereAnthropic1 repliesunlockedThese are the knobs every LLM product tunes, and the interviewer wants to know what each does to the probability distribution and which setting fits which task. Including why factual and creative tasks want opposite settings.Open full answer →
11What are word embeddings (Word2Vec, GloVe), and how do they capture meaning?▼medium★ EssentialGoogleCohereMeta1 replies○ sign inEmbeddings are the substrate of modern NLP and retrieval. This checks whether you understand the distributional idea behind them, not just 'words become vectors.' The signal is how training on context produces 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. The signal is knowing it is just exponentiated cross-entropy, what it intuitively measures, and why a 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 made prompting a paradigm; chain-of-thought is its most useful trick. The signal 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 buy accuracy with extra compute. The signal is knowing how each explores the reasoning space, that they trade tokens and latency for reliability, and how to decide 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. The signal is why interleaving reasoning with actions (and observing results) beats reasoning alone or acting alone. Here is the answer that connects 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. The signal 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 inThe difference between a demo prompt and a production prompt is structure, versioning, and defense. The signal 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 plugs into code cleanly. The signal is decomposing into chained steps and parsing each output. Here is the answer that connects 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 routing a model around its own safety training. The signal 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 is what turns a raw next-token predictor into something that follows instructions. The signal is placing it correctly in the pretrain to SFT to alignment pipeline and knowing exactly what it does and does not fix.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 match each to its task and name the blind spot they all share. The candidates who pass say why none of them is the final word on quality.Open full answer →
26What are MMLU, HumanEval, and GSM8K, and how do you interpret LLM benchmark scores?▼mediumOpenAIGoogleAnthropic1 replies◆ premiumEveryone quotes benchmark scores; few read them honestly. The signal is naming what each probes and why leaderboard numbers run ahead of real-world ability. The follow-up the interviewer is holding back is how you would detect 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 is mostly a data problem, not a hyperparameter one. The signal is naming what makes a good set (quality, diversity, format, dedup) and arguing why a few thousand clean examples beat 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 formalized it. The signal is naming the biases that make raw judge scores untrustworthy and showing 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 tell you what actually happened with users. The signal is knowing why offline wins routinely fail to hold 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. The signal is knowing exactly where the queries vs 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◆ premiumEveryone fixates on attention, but the feed-forward layers hold most of a transformer's weights and do much of the per-token 'knowledge' work. The signal 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 numbers; they fall out of attention's quadratic cost, KV-cache memory, and how the model was trained. The signal 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. The signal is weighing capability, cost, privacy, control, and operational burden, then making 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 knowing the model executes nothing: it emits a structured request your code runs, then you feed the result back. Here is the loop and the details that decide 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 get better, and Chinchilla changed how we allocate compute. The signal is the model-size-vs-data tradeoff and 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. The signal is knowing the deterministic vs sampling methods and when 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 split on one decision made before a single weight is trained: what does each token get to see? That choice cascades 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 unsamplable. The signal is knowing exactly where in the loop the constraint bites. 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 only name the obvious cause. The differentiator is the tokenizer: the same sentence can cost a non-English user several times the 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 that almost everyone misses: 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 don't 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 advertising a million-token window may not use it. The signal is knowing needle-in-a-haystack, where it breaks, and how to test real multi-fact reasoning across the full 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 matching the method to what is actually missing instead of defaulting to your favorite. Knowledge, behavior, or actions each point at 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◆ premiumOne trained embedding you can truncate to any length and still use. The signal is the nested-prefix training objective and the coarse-to-fine retrieval win it unlocks 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 just style. 'Be concise' barely works, and max_tokens just truncates mid-sentence. Here is how to actually 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 move 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 pull 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 stop somewhere, and the wrong stop rule either truncates answers or burns 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 only do 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 is better, pointwise asks how good. 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 score 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 is the format behind most local LLM runs, and its quant names look cryptic. The signal is decoding what Q4_K_M means and why mixed-precision k-quants beat naive uniform quantization.Open full answer →
100What are instruction-tuned embeddings, and why do query and passage prefixes matter?▼mediumCohereHugging FaceMicrosoft1 replies◆ premiumModern embedding models want a task instruction prepended to the text, and getting the prefix wrong quietly wrecks retrieval. The signal is why instructions help and the asymmetric query/passage convention.Open full answer →
03How do you choose chunk size and decide between dense, sparse (BM25), and hybrid retrieval?▼mediumCohereGleanDatabricks2 repliesunlockedThe two knobs that make or break a RAG system, and the ones candidates hand-wave. The signal is tuning chunking against recall and knowing exactly what dense retrieval misses that BM25 catches. 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 live or die on the model returning valid, schema-conforming output. The signal is layering constrained decoding, schema validation, and retries, not hoping a prompt is enough. 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 to know you understand the recall/latency/memory tradeoff, not just 'use a vector DB.' The signal is why exact search does not scale and how HNSW and IVF make 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 plug into tools and data, but tool design is what makes or breaks 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 where an agent critiques and revises its own work. The signal is knowing when it genuinely helps (external feedback grounds the critique) versus when self-critique alone is theater.Open full answer →
16Compare chunking strategies (fixed-size, recursive, semantic, parent-child). How do you pick?▼medium★ EssentialGleanCohereDatabricks1 replies○ sign inChunking quietly sets the ceiling on 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 decouples 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 verifiable, and they are a real engineering problem. The signal is grounding each claim to a specific passage and verifying the attribution, not appending a bag of links at 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 dominant agent control patterns. The signal is knowing the upfront-plan vs step-by-step tradeoff, why one is cheaper, and why most production agents end 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 distinguishing the memory types 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 replaced 'prompt engineering' for serious agent work. The signal is understanding that what you put in the context window (and what you leave out) drives 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 foundation of retrieval, and swapping it is deceptively dangerous. The signal is choosing on domain-relevant retrieval quality (not 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 fail. The strongest answer treats the tool spec as the only thing the model sees, then fixes 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 vs sparse is the core retrieval tradeoff, and 'just use embeddings' silently 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 giant, 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 live or die 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 destroys 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◆ premiumThe same model performs wildly differently depending on the harness around it. The signal is knowing that the scaffolding often decides agent quality more than the base model. 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 get expensive and slow fast: retrieval plus reranking plus big-model calls, multiplied across agent steps. The signal is naming the dominant cost first, then the levers that actually 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: retrieve broadly, then reorder 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 misses exact terms; pure keyword search misses meaning. The signal is knowing why each fails alone 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 silently degrades answers. The signal is an incremental pipeline with deletes, updates, and recency signals, not 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◆ premiumForcing every query through the same pipeline burns 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 keep 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 live in different neighborhoods of embedding space. HyDE closes that gap by embedding a fake answer instead of the question. The signal is knowing 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 have context but match badly. Parent-child retrieval refuses to pick. The signal is decoupling 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, not query time.Open full answer →
44What is semantic chunking, and how does it compare to fixed-size chunking?▼mediumCohereMicrosoftGlean1 replies◆ premiumFixed-size chunking splits 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 grades 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 only measure the final answer. The signal is scoring retrieval on its own (recall@k, precision@k, MRR/nDCG) to isolate 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 pure similarity often hands the model five paraphrases of the same paragraph, starving it of the other facts the question needs. The fix is ranking for relevance and novelty at once. 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 returns noise. Here is how strong systems disambiguate before they ever hit 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 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 deliver 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 conflates 'agent' with anything that calls an LLM. The useful distinction 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 between classic DSA and modern RAG. The signal is building a working inverted index and a correct BM25 score by hand, reasoning about its complexity, and then knowing exactly when you would reach for 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 can't represent a question with three independent parts. The signal is knowing 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 and still unfaithful, stating 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◆ premiumCranking up top-k raises recall but drowns the answer in noise, and a tight reranker raises precision but can drop 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 gives up. 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 works, 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 turning the agent into 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 cut the bill.Open full answer →
01Implement a thread-safe token-bucket rate limiter for concurrent API and tool-calling traffic.▼mediumAnthropicOpenAIMicrosoft2 repliesunlockedA favorite practical screen at the labs, because it tests concurrency, time handling, and judgment in 20 lines. The trap is the background thread that wastes CPU. Here is the lazy-refill version interviewers want, plus the follow-ups.Open full answer →
02Implement k-means from scratch, including k-means++ initialization and a convergence check.▼mediumScale AIDatabricksNVIDIA2 repliesunlockedA staple ML-coding screen. Writing the loop is easy; the signal is k-means++ init, a real convergence criterion, and knowing the failure modes. Here is the tight implementation plus the follow-ups interviewers always ask.Open full answer →
03Implement a numerically stable softmax and cross-entropy loss from scratch.▼medium★ EssentialNVIDIAGoogleMeta2 repliesunlockedA deceptively simple ML-coding ask. Anyone can write exp/sum; the signal is the max-subtraction trick and the log-sum-exp form that keep it from overflowing. Here is the stable implementation and why the naive one breaks.Open full answer →
04Implement an LRU cache with O(1) get and put, then make it thread-safe with TTL.▼mediumOpenAIGoogleMeta2 repliesunlockedThe most-asked design-coding question, and a frequent warm-up at the labs before the ML follow-ups. The signal is the hashmap-plus-doubly-linked-list for true 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 rewards the two-heap insight. A sorted list gives O(n) inserts; 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 checks whether you actually know the math you use. The signal is the clean gradient (it simplifies 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 tests whether you reach for the right structure instead of scanning a word list. The signal is O(prefix) lookup, the DFS to collect 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 under every embedding/RAG retrieval, asked as a coding exercise. The signal is vectorizing the similarity, normalizing correctly, and using a partial selection (argpartition) instead of 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 tests 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 changes 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 recognizing when a window collapses an O(n squared) scan into one linear pass, and maintaining 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 underpins a huge class of interview problems. The signal is knowing the BFS-vs-DFS tradeoff (shortest path vs memory shape) and applying it cleanly, then handling the directed-vs-undirected cycle gotcha most candidates miss.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 verifies 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 silently 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 inInterval merging is a classic that tests the sort-then-sweep insight. The signal is sorting by start, then merging in one pass, O(n log n). Here is the pattern and the family of problems it unlocks.Open full answer →
19Implement k-nearest-neighbors classification from scratch, and make prediction efficient.▼mediumAmazonGoogleMeta1 replies○ sign ink-NN is simple to write and a good test of vectorization and the lazy-learner tradeoff. The signal is a clean vectorized distance computation and knowing why naive prediction is O(n) and how to speed it. Here is the implementation.Open full answer →
21Implement Layer Normalization (and RMSNorm) from scratch.▼mediumNVIDIAGoogleMeta1 replies◆ premiumLayerNorm sits in every transformer, and implementing it checks that you know what it normalizes over and why. The signal is normalizing across the feature dimension per token, the learnable scale/shift, and the RMSNorm simplification modern LLMs adopted.Open full answer →
23Implement binary search and its variants (first/last occurrence, search in rotated array).▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumBinary search is easy to describe and famously easy to get wrong (off-by-one, infinite loops). The signal is a correct template plus the variants (boundaries, rotated arrays) that come up constantly. Here is the answer.Open full answer →
24Explain backtracking and use it to generate all permutations / subsets / combinations.▼mediumGoogleMetaAmazon2 replies◆ premiumBacktracking is the pattern behind permutations, subsets, N-queens, and constraint problems. The signal is the choose/explore/un-choose template plus pruning, and knowing exactly which knob separates permutations from combinations.Open full answer →
26Merge k sorted lists (or streams) efficiently.▼mediumGoogleMetaAmazon2 replies◆ premiumMerging k sorted sources is the canonical min-heap problem and a real data-engineering pattern (merging sorted shards/streams). The signal is the heap of k heads giving O(N log k). Here is the answer.Open full answer →
28Implement batch normalization (forward pass, train and inference) from scratch.▼mediumNVIDIAGoogleMeta2 replies◆ premiumImplementing BatchNorm checks that you know the train/inference difference, the part everyone forgets. The signal is normalizing over the batch with running stats maintained for inference. Here is the implementation.Open full answer →
30Topological sort: order tasks with dependencies (and detect cycles).▼mediumGoogleMetaAmazon1 replies◆ premiumTopological sort orders a DAG so dependencies come first, the backbone of build systems, schedulers, and ML/data pipeline DAGs. The signal is Kahn's algorithm (or DFS) plus cycle detection. Here is the answer.Open full answer →
31Union-Find (Disjoint Set Union): connectivity and grouping.▼mediumGoogleMetaAmazon1 replies◆ premiumUnion-Find answers 'are these in the same group?' near-instantly and powers connected-components, cycle detection, and clustering. The signal is path compression plus union by rank for near-O(1) operations. Here is the answer.Open full answer →
32Number of Islands: connected components on a grid (flood fill).▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumA grid-traversal classic that tests BFS/DFS flood fill and the visited-marking discipline. The signal is treating the grid as a graph and counting connected components. Here is the answer.Open full answer →
34Reservoir sampling: pick k random items from a stream of unknown length.▼mediumGoogleMetaAmazon2 replies◆ premiumSampling uniformly from a stream you cannot fit in memory (or whose length you never learn) is a real data-engineering problem. The signal is the replace-with-decreasing-probability trick and a proof that telescopes. 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 classic that tests how you propagate information up from subtrees in a single pass. The signal is 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 gateway 1D DP problem, and Kadane's is the O(n) one-liner. The signal is the 'extend or restart' decision at each element and the all-negative edge case most people botch. 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 trips people who reach for greedy or naive recursion. The signal is 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 tests index manipulation and the transpose-then-reverse trick. The signal is decomposing the rotation into two simple passes rather than 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 comfort 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 on instinct. Here is the toolkit.Open full answer →
42Find the k-th largest element (Quickselect).▼mediumGoogleMetaAmazon2 replies◆ premiumK-th largest has three textbook solutions, and the signal 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 actually 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 fast check of whether you actually understand term-frequency times inverse-document-frequency, or just recite it. The signal is 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 exposes why greedy quietly breaks on non-standard denominations, and how one bottom-up table fixes it. The signal interviewers want is 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. The signal is reconstructing the match/mismatch recurrence cold and not confusing subsequence (gaps allowed) with substring (contiguous). Here is the answer.Open full answer →
46Gas Station: the greedy circuit problem.▼mediumGoogleAmazonMeta1 replies◆ premiumGas Station rewards 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 inside it.Open full answer →
47Jump Game: can you reach the end of the array (greedy)?▼mediumGoogleMetaAmazon2 replies◆ premiumJump Game rewards spotting that a greedy reachability scan beats DP. The signal is tracking the farthest reachable index in one pass, and detecting the exact moment you fall behind it.Open full answer →
50House Robber: the pick-or-skip 1D DP.▼mediumGoogleAmazonMeta2 replies◆ premiumHouse Robber is the cleanest choose-with-a-constraint 1D DP, and it collapses to O(1) space. The signal is 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 tests the 'compute a canonical key and bucket by it' pattern. The signal is choosing a key that anagrams share without comparing every pair. Here is the answer.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 proves you understand thresholds and the precision/recall tradeoff. The real signal is sweeping the threshold in one sorted pass and integrating the area. Here is the implementation.Open full answer →
53Product of Array Except Self (no division).▼mediumGoogleMetaAmazon1 replies◆ premiumThis problem bans the obvious division trick, forcing the prefix/suffix-product insight. The signal is computing left and right products in two passes with O(1) extra space. Here is the answer.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 tests the three-pointer partition (Dutch National Flag). The signal is the low/mid/high invariant and knowing when not to advance mid. Here is the answer.Open full answer →
55Spiral Matrix traversal (boundary simulation).▼mediumGoogleMetaAmazon1 replies◆ premiumSpiral traversal tests careful boundary management more than algorithmic insight. The signal is shrinking four boundaries layer by layer without double-visiting a row or column. Here is the answer.Open full answer →
56Maximal Square: the 2D dynamic programming pattern on a grid.▼mediumGoogleMetaAmazon1 replies◆ premiumThe canonical grid DP where each cell depends on three neighbors at once. The signal interviewers want is the min-of-three recurrence, and the reason it has to be min. Here is the answer.Open full answer →
58Decode Ways: count the decodings of a digit string (1D DP).▼mediumGoogleMetaAmazon1 replies◆ premiumDecode Ways is a 1D DP whose difficulty lives entirely in the edge cases: zeros and the valid 1-26 range. The signal is the take-one-digit-or-two recurrence plus disciplined validity checks. Here is the answer.Open full answer →
59Longest Palindromic Substring (expand around center).▼mediumGoogleMetaAmazon2 replies◆ premiumThis classic has a clean O(n^2) expand-around-center solution that beats the naive O(n^3). The signal is expanding from every center and handling odd and even lengths separately. Here is the answer.Open full answer →
60Implement the Adam optimizer from scratch.▼mediumNVIDIAGoogleMeta1 replies◆ premiumImplementing Adam proves you understand what's happening under .step(): momentum plus per-parameter adaptive rates with bias correction. The signal is the two moments and the bias-correction step.Open full answer →
63Meeting Rooms II: minimum rooms for overlapping intervals.▼mediumGoogleMetaAmazon1 replies◆ premiumThe minimum number of meeting rooms equals the peak number of meetings running at once. The reframing is the whole interview; two O(n log n) solutions fall out of it, and the tie-handling trips up the careless.Open full answer →
64Kth Smallest Element in a BST (in-order traversal).▼mediumGoogleMetaAmazon1 replies◆ premiumThis problem rewards knowing that an in-order traversal of a BST yields sorted order. The signal is stopping early at the kth element rather than traversing the whole tree.Open full answer →
65Search a sorted 2D matrix (staircase search).▼mediumGoogleMetaAmazon2 replies◆ premiumA row- and column-sorted matrix rewards one observation: start from a corner and kill an entire row or column each step. That turns an O(m*n) scan into O(m+n), and the choice of corner is not arbitrary.Open full answer →
66Implement a dropout layer (train and inference) from scratch.▼mediumNVIDIAGoogleMeta1 replies◆ premiumDropout is five lines, yet most candidates botch two of them: disabling it at inference and scaling the survivors so the expected activation stays 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 separates candidates who reach for O(n log n) from those who see the hash-set trick. The signal is one loop invariant that kills redundant work. Here is the answer.Open full answer →
68Validate a Binary Search Tree.▼medium★ EssentialGoogleMetaAmazon2 replies◆ premiumValidating a BST catches people who only check parent-child pairs and miss violations buried deep in a subtree. The signal is propagating min/max bounds or using 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 reduces to one question: is the prerequisite graph a DAG? The signal is spotting the graph framing and using 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 are a few lines of logit surgery. Implementing them shows you understand decoding, not just call 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 wrong split quietly 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 keep a shadow copy of the weights that's a moving average of the trajectory, and serve that instead of the final step. It's a few lines and a real accuracy boost. Here it is.Open full answer →
75Implement a learning-rate scheduler with linear warmup and cosine decay.▼mediumGoogleMetaOpenAI1 replies◆ premiumAlmost every modern training run uses warmup-then-cosine, and getting it wrong destabilizes early training or wastes 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◆ premiumBefore transformers, this was the language model, and it is still the cleanest way to show you understand what perplexity actually measures. Smoothing is the part people get wrong. 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 loses catastrophic precision on streaming data and cannot update incrementally. Welford's one-pass update is the standard 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?' using a few bits per item instead of storing the key, trading a rare false positive for a huge memory win. 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 detects a cycle in O(1) space, but the part that separates strong candidates is the second phase: a short distance argument that pinpoints exactly where the loop begins. 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 must intersect at a single node, but matching their lengths without counting is the elegant move interviewers want. Here is the two-pointer trick that makes the lengths cancel 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 wants a single pass: a gap of N between two pointers, plus a dummy head that makes deleting the real head fall 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 need not pass through the root. The clean solution computes 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 splits the rest into left and right subtrees. Doing it naively 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 is O(n squared) nested scans. A monotonic stack does it in one O(n) pass by keeping only the candidates that can still be 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 is 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 gateway to the whole interval family. The trick is sorting by start so overlaps land 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 is O(2^(2n)) and wasteful. Backtracking with two counters builds only valid strings by enforcing 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◆ premiumChecking every subarray is O(n squared). Prefix sums plus a remainder-frequency map does it in one O(n) pass: two prefixes with the same remainder mod k bracket a divisible subarray. The trap 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: turn a stream of sampled call stacks into a flame tree, then report self-time vs total-time per function. The trap is conflating 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: find files with identical content across a tree. The naive all-pairs hash is wasteful. The signal is the size prefilter and a cheap-hash gate before the full hash. Here is the layered approach.Open full answer →
100Simulate 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 spreads outward one step per tick across a grid, and the spec gains rules each round. The signal is multi-source BFS by layers, not per-cell loops. Here is the design that absorbs each new test case.Open full answer →
102Build 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 deliberately vague and changes mid-interview. The signal isn't the algorithm, it's whether you clarify before coding, structure for change, and keep tests green while the requirements move. Here is how to run that loop.Open full answer →
103Fenwick tree (Binary Indexed Tree): point updates and prefix sums in O(log n).▼mediumGoogleMetaAmazon2 replies◆ premiumA Fenwick tree answers prefix-sum queries and point updates in O(log n) with a single flat array and one bit trick. The signal is the lowbit operation and why it beats a plain prefix array under updates. Here is the answer.Open full answer →
105Dijkstra's algorithm: shortest paths from a source in a weighted graph.▼mediumGoogleAmazonUber2 replies◆ premiumDijkstra finds 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 needs non-negative weights and how lazy deletion keeps the heap simple. Here is the answer.Open full answer →
106Bellman-Ford: shortest paths with negative edges and negative-cycle detection.▼mediumGoogleAmazonMicrosoft1 replies◆ premiumBellman-Ford handles negative edge weights that break Dijkstra and detects negative cycles, the basis of currency-arbitrage problems. The signal is the V-1 relaxation rounds and the extra Vth round that flags a negative cycle. Here is the answer.Open full answer →
107Floyd-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 tight three-line triple loop. The signal is the intermediate-node DP order and why k must be the outer loop. Here is the answer.Open full answer →
108Kruskal'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 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 →
110Rabin-Karp: substring search and multi-pattern matching with a rolling hash.▼mediumGoogleAmazonMeta1 replies◆ premiumRabin-Karp slides a fixed-width hash over the text so each window costs O(1) to update, making 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 →
111Binary search on the answer: turn an optimization into a monotonic feasibility check.▼mediumGoogleAmazonUber1 replies◆ premiumBinary search on the answer solves minimize-the-maximum and capacity problems by guessing the result and checking feasibility in a monotone predicate. The signal is spotting monotonicity and writing a clean feasibility function. Here is the answer.Open full answer →
112Number 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 power 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 →
114Design 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 records 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 →
115Build a decision tree classifier from scratch: pick splits by Gini or entropy, then predict.▼mediumAmazonGoogleMeta2 replies◆ premiumA from-scratch classic that tests recursion plus the split criterion math. The signal is computing impurity correctly, choosing the best threshold by information gain, and knowing the stopping rules. Here is a clean recursive implementation.Open full answer →
116Implement Gaussian Naive Bayes from scratch: fit per-class statistics and classify in log space.▼mediumAmazonGoogleMicrosoft1 replies◆ premiumA from-scratch staple that checks whether you understand 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 →
117Implement PCA from scratch via SVD: center the data, project onto top components, report variance.▼mediumGoogleMetaNVIDIA2 replies◆ premiumA from-scratch favorite that tests 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 →
119Solve linear regression with the normal equations: derive the closed form and implement it stably.▼mediumAmazonGoogleMicrosoft1 replies◆ premiumA from-scratch test of the least-squares closed form and the numerical traps in it. The signal is deriving the normal equations, knowing why you never explicitly invert, and reaching for lstsq or the SVD instead. Here is the implementation.Open full answer →
122Implement the AdamW optimizer from scratch and explain how decoupled weight decay differs from Adam.▼mediumOpenAIGoogle DeepMindMeta1 replies◆ premiumA from-scratch test of modern optimizers. The signal is the moment estimates, bias correction, and the one change that matters: AdamW decouples weight decay from the gradient instead of folding it into the loss. Here is the implementation and why it wins.Open full answer →
125Implement a WordPiece tokenizer from scratch: greedy longest-match-first subword segmentation.▼mediumGoogleHugging FaceOpenAI1 replies◆ premiumA from-scratch test of subword tokenization. The signal is greedy longest-match encoding against a fixed vocabulary, the continuation-prefix convention, and how WordPiece differs from BPE. Here is the implementation.Open full answer →
126Build a mini data loader with sharding for distributed training: split data across workers without overlap.▼mediumMetaNVIDIAGoogle2 replies◆ premiumA from-scratch test of distributed input pipelines. The signal 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. Here is the implementation.Open full answer →
128Write an async batch caller for an LLM API: N requests, a concurrency cap, timeouts, and retries with backoff.▼mediumNewOpenAIAnthropicScale AI◆ premiumThe most job-shaped coding screen in Applied AI: fan out N LLM calls without melting the rate limit or losing the batch to one bad request. The signal is in the retry policy, not the async syntax. Here is the version that passes.Open full answer →
129Implement a minimal RAG pipeline end to end: embed and index a corpus, retrieve for a query, answer with citations.▼mediumNewAnthropicGleanPerplexity◆ premiumThe coding round version of the RAG question every candidate can describe in prose. Embed, index, retrieve, generate, cite. What separates a pass from a fail is the branch you write for when retrieval comes back with nothing worth quoting.Open full answer →
02Explain the bias-variance tradeoff, and how you diagnose and fix high bias vs high variance.▼medium★ EssentialAmazonGoogleMeta2 repliesunlockedThe most common ML fundamentals question, and a quiet seniority test: anyone recites the definition, but can you decompose the error and turn 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 is testing whether you pick metrics for the problem or recite definitions. The real signal is knowing when accuracy and even AUC lie, and tying 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 shows up in fraud, churn, and abuse, and the naive answer (oversample, done) leaks data and inflates offline metrics. The signal is preferring cost-sensitive learning, fixing the metric, and resampling correctly. Here is the full toolkit with tradeoffs.Open full answer →
06Explain MLE vs MAP and apply Bayes' theorem to a medical-test (base-rate) problem.▼mediumAmazonGoogleMeta1 repliesunlockedA staple stats question that doubles as a numeracy check. The signal is connecting MLE/MAP to regularization and nailing the base-rate calculation that surprises most people. Here is the intuition plus the worked numbers.Open full answer →
07Compare SGD, momentum, RMSProp, Adam, and AdamW. Why does AdamW decouple weight decay?▼mediumNVIDIAGoogleMeta2 repliesunlockedOptimizer questions test whether you understand what each one adapts and the subtle AdamW fix that the whole field now uses. The signal is the per-parameter adaptivity story plus why coupling 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 handle the practical traps: target leakage in encodings, missingness that is informative, 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 match approach to data availability and have 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 real 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 say 'L1 is lasso, L2 is ridge'; the signal is the gradient-and-geometry reason L1 drives weights to exactly zero and when you'd pick 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 checks whether you know 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 separate the candidates who memorized 'maximize the margin' from the ones who can explain why a kernel gives you 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 atom of the ensembles that dominate tabular ML, so interviewers check you can explain how a split is chosen and how a single 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 test linear-algebra intuition and practical judgment at once. The signal is what PCA actually does (project onto max-variance directions), why high dimensions hurt, and the honest catch: it is unsupervised, so it can throw away 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.' The signal 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. The signal 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 ties together why deep nets were hard to train and the cluster of tricks that fixed it. The signal 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 are foundational even as transformers rise, and this checks whether you understand why convolution suits images. The signal 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 emit meaningless probabilities. The signal is knowing exactly 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 understanding 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 makes or breaks 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 are foundational and still asked, especially the gating that fixed RNNs and why attention won. The signal is connecting the vanishing-gradient story to the parallelism argument 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 why you rarely train from scratch, and the real question is how much of the pretrained model to reuse versus adapt. The signal is a crisp decision grid over data size and task similarity, plus knowing when a low LR saves you from 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 still appear in interviews because they test whether you understand assumptions and tradeoffs, not just sklearn calls. The signal is k-NN's laziness and curse of dimensionality versus 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 test whether you can match a data-generating process to the right model. The signal is knowing what each distribution describes and 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 underlies every experiment, and the signal is interpreting 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 expensive bottleneck in ML, and these two techniques attack it from different angles. The signal is knowing active learning chooses what to label while semi-supervised uses 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 quietly leaks the future and inflates your score. The signal 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 power most production tabular models. The signal 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 shows up in data cleaning, fraud, and monitoring, and there is no single right method. The signal is matching 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, several objectives, one shared backbone. The signal is knowing exactly why sharing helps (regularization, data efficiency) and the failure mode that sinks 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 one hyperparameter that can NaN your run on step 50 or stall it forever. Modern training schedules it instead of fixing it. The signal is knowing exactly what warmup and decay each buy 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 tool. The signal 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 checks whether you know why ReLU dethroned sigmoid and how to match the output activation to the loss. The signal is the vanishing-gradient story told 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 choice and momentum are the real interview content. The signal is the noise-vs-cost tradeoff across batch/SGD/mini-batch and why momentum earns its keep.Open full answer →
46How do you choose a loss function (MSE, MAE, Huber, cross-entropy, focal, contrastive)?▼medium★ EssentialGoogleMetaAmazon1 replies◆ premiumThe loss defines what the model optimizes, and picking the wrong one quietly dooms it. The signal is matching the loss to the task and data (outliers, imbalance), not defaulting to MSE or cross-entropy on reflex.Open full answer →
48What cross-validation strategy do you use, and how do you avoid leakage in CV?▼medium★ EssentialAmazonGoogleMeta2 replies◆ premiumCross-validation gives a reliable performance estimate, but the wrong scheme leaks data and lies. The signal 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 conflated, but they answer different questions: one is a preprocessing tool, two are eyeballing tools. The candidates who pass know exactly which structure each preserves and which it quietly throws away.Open full answer →
50Compare clustering methods: k-means, hierarchical, DBSCAN, and GMM.▼medium★ EssentialAmazonGoogleMeta1 replies◆ premiumk-means is the reflex answer, but it quietly assumes round, equal-size clusters and demands you know k upfront. The signal is positioning each alternative by the exact assumption it removes, and knowing when to reach for 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. The signal is knowing that LDA spends the labels to maximize class separation while PCA only chases variance, plus the C minus 1 dimension cap that catches most candidates off guard.Open full answer →
52Explain entropy, cross-entropy, KL divergence, and mutual information.▼mediumGoogleMetaAmazon2 replies◆ premiumThese four quantities underlie cross-entropy loss, decision-tree splits, distillation, and the KL penalty in RLHF. The signal is deriving them from one another and pointing to exactly where each shows 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 is model-dependent. The signal is knowing when scaling matters 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. The signal 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. The signal 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 cuts noise, overfitting, and serving cost, but the three method families pull in different directions. The signal 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. The signal 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 the signal 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 generates labels programmatically instead, and the signal 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 underpins RLHF, robotics, and recommendation, and interviewers want the core framing. The signal 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. The signal 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 natively multiclass; others need a wrapper to stretch a binary classifier to K classes. The signal 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 and still lie about its probabilities; its 0.9 may be right 70% of the time. The signal is knowing the three fixes, which data size each needs, 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 hinges on your model and what you need from it. This is the answer that separates rote from understanding.Open full answer →
78What assumptions does linear regression make, and how do you check and handle violations?▼mediumAmazonMetaDatabricks1 replies◆ premiumEveryone can recite 'linearity and normality.' Few can say which assumption matters for predictions versus inference, how to spot 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' has 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 is leaving 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 make decisions on that bar chart. Here is why default importance lies 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◆ premiumAccuracy ties are common, and accuracy is rarely the deciding factor anyway. The real tiebreakers are the ones a junior candidate forgets to mention. Here is the checklist a staff engineer runs 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 idea that models, like students, learn better from easy examples first is intuitive, and sometimes it works and sometimes it 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 fail at the seams: a preprocessing mismatch between training and serving, not the model. The signal is naming every stage from ingestion to serving and the one consistency invariant that breaks teams. 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 the start, not the answer. The signal is matching the loss to the task structure: focal for detection's background flood, 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 mean deep learning. The signal is reasoning from dimensionality, data type, inference latency, and label budget, then noting where KNN quietly survives 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 is about decorrelating those trees and why that, not just averaging, 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 is 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 choosing k, why distances stop meaning anything in high dimensions, and how to make 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 finds arbitrary shapes and outliers but has its own knobs. The hard 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 keeps redundant features and drops ones that only matter in combination. Here is the filter/wrapper/embedded breakdown plus mRMR and Boruta, and where each one bites.Open full answer →
108Why does Elastic Net exist if you already have Lasso and Ridge?▼mediumAmazonMicrosoftGoogle1 replies◆ premiumLasso gives sparsity, Ridge handles correlated features, and each fails where the other shines. Elastic Net blends 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, not 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 a single prediction by attributing it to features, but only one rests on a uniqueness theorem. The signal is knowing SHAP's game-theory guarantees, LIME's instability, and when each is the right tool. Here is the answer.Open full answer →
01Implement Slowly Changing Dimension Type 2 history tracking in a Delta lakehouse.▼mediumDatabricksSnowflakeMicrosoft3 repliesunlockedSCD2 separates people who have run pipelines from people who have read about them. The whole answer hinges on one atomic MERGE that closes the old row and opens the new one, and stays correct 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 separates people who reach for a self-join from people who know LAG plus a running sum. Here is the two-pass pattern that scales to billions of events, plus the edge cases interviewers push 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. The signal is choosing the right ranking function for ties and knowing 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 matching the architecture to the freshness requirement, not chasing real-time for its own sake. The signal is the latency-vs-complexity tradeoff and knowing why Kappa emerged 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 separates people who model for analytics from people who only know OLTP normalization. The signal 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 repliesunlockedThe difference between a query that scans a terabyte and one that scans a gigabyte is usually layout, not the engine. The signal is 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 repliesunlockedSyncing a warehouse with a live OLTP database is a CDC problem, and the naive 'full reload nightly' or 'query by updated_at' answers have real holes. 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 silently poisons everything downstream (dashboards, models, decisions), and 'it ran without error' is not '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 the signal is reading the execution plan before changing anything, then applying the right fix. Here is the diagnostic method that separates guessers 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 common screen. The signal is ROW_NUMBER to keep the right record (not just DISTINCT), defining 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) need recursion, and a self-join only goes one level deep. The signal is the recursive CTE with its anchor plus recursive members, and knowing how it terminates.Open full answer →
15How do you pivot rows into columns in SQL (conditional aggregation)?▼mediumMetaAmazonSnowflake1 replies○ sign inPivoting (rows to columns) is constant 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 heart 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 silently doubles your sums.Open full answer →
18Compute a 7-day moving average and other rolling aggregates with SQL window frames.▼mediumMetaAmazonSnowflake2 replies○ sign inThe subtlety in rolling aggregates is the window frame clause, especially ROWS vs RANGE. The signal is the correct 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 lie on skewed data like latency and spend, and SQL has 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 silently corrupts every dashboard downstream. The signal is knowing which changes are 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 trip up even senior engineers. The signal is UNION vs UNION ALL and its dedup cost, plus three-valued logic where NULL equals nothing, not even itself.Open full answer →
24What are materialized views, and when do you use them vs regular views?▼mediumSnowflakeDatabricksAmazon1 replies◆ premiumMaterialized views trade storage and freshness for query speed by precomputing results. The signal is knowing 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 is everywhere in analytics, and time zones and bucketing are the common 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 can execute per row (O(n squared)), a classic slow-query cause. The signal is recognizing 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 often needs subtotals and grand totals across several dimensions, and stitching that with many UNIONs is wasteful. 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 tracks every unique value, so it gets 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 separates strong data engineers 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◆ premiumYou cannot filter on a window function in WHERE, so people wrap queries in subqueries. QUALIFY filters window results directly. The signal is knowing why WHERE cannot do it 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 handles insert-or-update-or-delete in one statement, the backbone of incremental loads and slowly-changing dimensions. The signal is the matched/not-matched logic and what makes a retry safe.Open full answer →
33What is time travel (querying historical table versions) in a lakehouse/warehouse?▼mediumDatabricksSnowflakeAmazon1 replies◆ premiumModern table formats let you query a table as of a past version or timestamp, the backbone of reproducibility, audits, and recovery. The signal is the versioned-snapshot mechanism and where it breaks.Open full answer →
37Do vector similarity search inside SQL (pgvector / warehouse). When is this the right call?▼mediumDatabricksSnowflakeSupabase1 replies◆ premiumYou don't always need a dedicated vector database. When embeddings live next to your relational data, nearest-neighbor in SQL makes filters and joins trivial. Here is how, and the scale where it breaks.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 needs more care still. 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 turns 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 appear in an event table, so a 7-day average silently 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, produce 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 instead of 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 painless to read and painful 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 break when an upstream team renames a column at 2am. The signal is a data contract: an enforced, versioned agreement on schema and semantics, checked 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 wrong, lineage tells you which upstream table to blame. The signal is distinguishing table vs column lineage and knowing the three ways to capture it: 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◆ premiumA flat path extract is easy; an array of objects three levels deep is where people freeze. The signal is LATERAL FLATTEN / UNNEST to explode arrays into rows and a clear rule for when to flatten vs 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 root of modern embedding-based recsys. The signal 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 easy version fails three ways: it is multi-label, the taxonomy is hierarchical and keeps growing, and rare classes hide behind aggregate accuracy. The signal is the model choice plus how you handle all three.Open full answer →
57Design a document summarization service at scale.▼mediumGoogleMicrosoftAmazon2 replies◆ premiumTwo forces decide 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, picks 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◆ premiumSales has finite rep-hours, so the model's job is to point them at the leads worth a call. The signal interviewers want is value-weighted prioritization, careful conversion labels, and proof of revenue uplift over a holdout.Open full answer →
66Design a prompt management platform so teams can version, test, and deploy prompts without redeploying code.▼mediumOpenAISierraSalesforce1 replies◆ premiumPrompts buried in source code mean every wording tweak is a full deploy, and nobody knows which prompt is live. Treating prompts as managed, versioned configuration is the fix. Here is the platform.Open full answer →
70Design a cost-control and quota system for an internal LLM platform serving many teams.▼mediumMicrosoftAWSDatabricks1 replies◆ premiumGive every team an LLM API key and your bill becomes a mystery with a six-figure surprise at month end. Attributing, limiting, 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 decisions are how you generate short, collision-free, unguessable keys at scale, and how a read-heavy 100:1 workload shapes the 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 sounds trivial until the input is three words, mixes two languages, or is half code. A strong answer picks the model by latency budget, handles short text and code-switching, and returns calibrated confidence instead of 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 picks spectrogram masking versus waveform models against a real-time budget, names PESQ and STOI as the metrics, and is honest about the artifacts each approach introduces.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 while a cursor moves through a live document. Learn how to split fast deterministic checks from LLM rewrites, stream suggestions, and keep edits stable so the text does not flicker as 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 hinges 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 is about spatial indexing, geohash or quadtree partitioning, and handling dense cities versus empty regions. Here is how proximity search works.Open full answer →
01How do you decide when to retrain a production model: on a schedule, or triggered by drift?▼medium★ EssentialDatabricksAmazonMicrosoft1 repliesunlockedThe naive answer is 'retrain weekly.' The senior answer is a hybrid: drift-triggered retraining with a max-staleness fallback, plus a gate that a fresh model must beat the incumbent. Here is how to reason about it.Open full answer →
02What is a feature store, and how does it prevent training-serving skew?▼mediumDatabricksMicrosoftAmazon2 repliesunlockedA feature store is easy to define and easy to get wrong. The signal is explaining the exact bug it prevents (training-serving skew) and the point-in-time correctness that stops 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 jumping straight to 'add more GPUs.' The signal is profiling first, then applying the cheap, no-retrain levers in the right order. Here is the diagnosis-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 plain software CI/CD. The signal is the three things ML adds: data validation, a model-quality gate against a baseline, and versioning data plus model plus code together. Here is what is genuinely different.Open full answer →
06How do you make ML experiments reproducible and manage models from experiment to production?▼mediumDatabricksMicrosoftGoogle2 repliesunlockedReproducibility is what separates an ML platform from a pile of notebooks. The signal is tracking the full provenance (data, code, config, metrics) and a registry that governs promotion. Here is what to track and why each piece matters.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 not flipping a switch. The signal is knowing what each rollout strategy validates, why shadow is uniquely useful for ML, and keeping rollback one step away. Here is the comparison and when to use each.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 smartly, 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 usually the biggest line item in an AI org, and this question checks whether you think in utilization, not just capacity. The signal is squeezing 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, it is a quiet upstream data change. The signal is validating at ingestion (schema plus distribution), data contracts with producers, and failing loud instead of 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. The signal 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. The signal is distinguishing prompt (prefix) caching 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. The signal 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. The signal 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. The signal is the actual statistical methods and distinguishing 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. The signal 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,' guesswork is a failing answer. The signal is tracking the whole chain so any model is reproducible and any past decision is explainable. 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 defaulting to one burns money. The signal 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 are only as good as their labels, and noisy annotation silently caps performance. The signal interviewers want is a measured quality process, not a louder 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 trickier than code: the model is data and the truth signal lags. The signal 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' is not actionable without attribution. The signal 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. The signal is knowing outputs are served in parallel then 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. The signal is the DAG/scheduling model plus what's actually 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. The signal 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 is more than CPU and latency; the model can silently rot while the dashboard stays green. The signal 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 have a rollback and compliance problem already. 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 silently start scoring on garbage. Features are a shared contract, and changing them needs the same care as a breaking API change. Here is the discipline.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 constantly gets muted, and a model that fails with no alert is worse. Good ML alerting is a design problem with the same principles as SRE, plus ML-specific twists. 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 includes CUDA versions and exact library pins that change numerical results. Here is how to make the production environment match 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. The signal 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. The signal 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 have different detectability and different fixes. The interview signal 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, if 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 slipperier 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. The signal 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.▼mediumNewNVIDIAUberSpotify◆ premiumA Deployment and a Service will serve a model, but GPUs break 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 →
09How do you choose an inference-serving stack (vLLM, TGI, Triton, TorchServe) and configure it for throughput?▼medium★ EssentialNVIDIAMicrosoftDatabricks1 repliesunlockedKnowing the algorithms is half the job. The other half is the serving stack that actually delivers throughput inside a latency budget. The signal is matching the server to the workload and naming 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 buys you a small fast model that keeps 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 single biggest throughput lever in modern LLM serving. The signal is explaining why static batching idles the GPU 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 real product surface (privacy, offline, latency), and it forces 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 real 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 not 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 must 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 fix. The signal is the precise trade: recompute activations in the backward pass instead of 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 one latency number hides the real bottleneck. The signal is splitting prefill from decode and reading 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 and TensorRT-style compilers buy hardware-tuned speed, and exactly 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 conflated constantly, but they live at different layers: data processing, distributed training, and general orchestration. The signal is matching 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 with non-obvious effects on speed, memory, and generalization. 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◆ premiumYou rarely write a serving stack from scratch. The signal is knowing what frameworks hand you (batching, multi-model, GPU scheduling) and why LLM-specific servers exist at all when general ones already batch.Open full answer →
31What is model cold-start / warmup in serving, and how do you handle it for autoscaling?▼mediumAmazonMicrosoftGoogle1 replies◆ premiumA freshly started replica is slow on its first requests while it loads weights and compiles kernels, and that clashes with reactive autoscaling. The signal is naming the cold-start sources and the warmup and provisioning fixes.Open full answer →
32What is model pruning (and sparsity), and how does it compare to quantization and distillation?▼mediumNVIDIAGoogleMeta1 replies◆ premiumPruning removes redundant weights to shrink and sometimes speed up a model. The signal is the structured-versus-unstructured split and why only structured pruning reliably wins 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 vibes-based 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. Picking wrong leaves throughput or tail latency on the floor. Here is what each one costs and when to use it.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 catches people who only know clean-data accuracy. The signal is understanding why models are brittle, the realistic threat model, and 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 uniquely exposed: each call can cost real money and burn scarce GPU capacity, and abuse is both a security and a financial problem. The signal is layered controls on tokens and cost, not just requests. 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 repliesunlockedGovernance is where enterprise AI deals are won or lost, and engineers who can speak it stand out. The signal is treating it as documentation, accountability, and risk-tiered controls across the lifecycle, not 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 demand explanations for AI decisions, and the two terms get used loosely. The signal is separating inherently interpretable models from post-hoc explanations and naming 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 find an AI system's failures before users or attackers do. The signal is a structured program covering the real attack surface (jailbreaks, harmful content, leakage, bias) and feeding 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-referenced voluntary framework for managing AI risk, and enterprises ask about it. The signal is treating it as a continuous process built on four functions, not 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 one of the biggest unresolved risks in generative AI, on both the training and output side. The signal is naming both exposures and the engineering mitigations for each, not 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 generation gets indistinguishable from real, knowing what is AI-made matters for trust, misinformation, and regulation. The signal is the split between in-content watermarks and attached provenance metadata, and 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 real 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 inDetection is imperfect, so the strong answer is layered: regex with checksums for structured PII, ML/NER for the unstructured PII regex cannot see, and a frank account of why you never rely on redaction alone. 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, increasingly required by regulation and buyers. The strong answer knows what each documents and that honest disclosure of limitations, not marketing, is the entire point. 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' is hand-wavy. The strong answer names the concrete input and output checks, the mechanisms that enforce them, and the fail-safe behavior when one trips, plus the honesty 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 hand back confident answers on inputs unlike anything they trained on, which is how silent production failures happen. The signal is knowing why raw softmax confidence lies and which detectors actually 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 dumping 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, not 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 vanilla text classification and is anything but: context flips labels, adversaries evolve weekly, and naive models flag dialects as hate. The signal is naming those failure modes and designing 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 tiers obligations by risk, and that classification is a first-order design decision, not 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, but logging everything naively turns your logs into the biggest privacy liability you own. The signal is what to log to replay any decision, 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 one number. The candidates who pass name the axes, run benchmarks as a gate, and then explain why benchmarks alone 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 is an 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 leak secrets in three quiet places: the prompt, the logs, and the next training set. Each needs 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 need to breach your LLM to hurt you, just make it do expensive work. A handful of 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 came from, but a signature you can strip 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 analogue of ISO 27001. The signal is knowing it is an auditable management system, not a technical control list, and how it sits next to 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 legally train on data and how long you keep it. The signal is purpose limitation, granular consent, enforceable TTLs, and a story 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 imports their data practices, security, and failure modes into your product. The signal is a structured assessment covering data handling, security, performance, and contractual terms, not just a demo that looked good. Here is the answer.Open full answer →
01Tell me about a time a model you shipped failed in production. What happened and what did you do?▼mediumOpenAIAnthropicAmazon3 repliesunlockedThis question is not about whether you failed; everyone has. It is a test of ownership, debugging rigor, and honesty under pressure. Here is the structure that turns a failure story into a hire signal, and the traps 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 has this question and most answers fail in one of two ways: too combative or too much of a pushover. The signal is data-driven persuasion plus genuine disagree-and-commit. Here is the arc that lands 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. Interviewers ask this to see whether you can drop the jargon, frame tradeoffs in business terms, and earn trust with people who control the roadmap. Here is how to show that skill in the answer itself.Open full answer →
04Walk me through a project you're most proud of, in depth.▼medium★ EssentialOpenAIAmazonAnthropic2 repliesunlockedThis is a full interview round (OpenAI's project deep dive, Amazon's Tech Talk), not small talk. It is where they test whether you actually 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 interviewers (Meta's 'embracing ambiguity,' Anthropic's deliberately under-specified problems) test whether you freeze or drive. The signal is structured progress under uncertainty. Here is the arc that lands.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 is mostly influence, not command: you need other teams to prioritize your dependency, adopt 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 a core competency, and several companies ask it directly. The signal is a concrete method for ramping fast and a real, recent example of applying something new. Here is how to show learning agility, not just 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) test whether you can act decisively without freezing or being reckless. The signal is a reversible, well-reasoned call with a plan to validate. Here is the arc that lands.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 ego and growth, not perfection. The interviewer wants to see you absorb hard feedback without defending, own a real mistake in first person, and change because of it. 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 real gate, not a pleasantry. They reject strong engineers who cannot articulate genuine 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 test whether you scale beyond 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 known for NOT reaching for ML when they shouldn't. The signal is judgment: ML earns its complexity only under specific conditions, 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 think 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 prizes 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 lands 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 tests whether you can deliver under pressure without missing the date or shipping something broken. The signal is ruthless scoping and protecting quality where it matters, not all-nighter heroics. Here is the arc that lands.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 lands.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 tests 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, removing it safely takes judgment. The interviewer wants a real case where you cut complexity, separated essential 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 was right. The signal is seeking to understand the other side, anchoring on the shared goal, and preserving the relationship 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 you start from the user's real need, not the technology, and advocate 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 disguised 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 fast 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◆ premiumHow you deliver bad news reveals maturity and trustworthiness. The signal is communicating early, honestly, and with a plan, not 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 giving up 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 extract 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◆ premiumApplied AI work is cross-functional: you ship with PMs, engineers, and domain experts. This probes whether you collaborate effectively across boundaries. The signal is bridging different goals and languages toward a 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◆ premiumGiving hard feedback well is a maturity and leadership signal. Interviewers want candor delivered with care that actually changed 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 means more demands than time, often from stakeholders who each think theirs comes first. This probes how you prioritize and communicate. The signal is prioritizing by impact transparently, not just 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◆ premiumAI moves fast, requirements shift, and tools change monthly. This probes adaptability. The signal is embracing the change, learning quickly, and adjusting course productively, not resisting it. Especially 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 well is a senior signal: protecting quality, scope, or users without damaging the relationship. The signal is principled pushback with reasoning and an alternative, not just refusal. Here is the arc.Open full answer →
33Tell me about a time you defined success metrics for an ambiguous project.▼mediumAmazonGoogleMeta2 replies◆ premiumDefining the right metric is a high-judgment skill, and in AI the offline number and real impact routinely diverge. The signal is a metric tied to outcomes and guarded 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, and stakeholders hear 'it works.' Setting honest expectations without killing enthusiasm is a core applied-AI skill. Here is how to frame reliability so trust survives 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 sets customers up to expect a system that reads minds and never errs. Resetting that without losing the deal is an applied-AI skill interviewers probe directly. 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◆ premiumIn an AI company, recommending against AI is a strong signal: it shows judgment over hype. Interviewers use this to find engineers who solve problems rather than apply 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 fail in public, sometimes embarrassingly. How you respond to the customer, not just the bug, is what this question is really testing. 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 pull between velocity and doing it responsibly. How you navigate 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 not on the model but on scoping: vague success criteria, the wrong use case, or data that was never ready. For forward-deployed and applied roles, running a pilot well is the job. 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 bad as ignoring them all. Interviewers want a repeatable filter for signal versus hype, and the discipline to evaluate 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 don't trust it. Adoption is change management, not a better 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 is a test of composure and ownership, not just empathy. Interviewers want to see 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 kills deployments and burns trust on both sides. Interviewers want to see you protect the timeline without becoming 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 default for forward-deployed 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 lead with the decision, quantify in their terms, and surface 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 and honest communication to whoever loses. Interviewers want a framework and the courage 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 fixes systems, not people. Interviewers want to see you separate human error from system failure and produce 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 the norm in forward-deployed work. Interviewers want to see structured discovery that finds 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 adopting it. Interviewers want to see you 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◆ premiumA forward-deployed engagement succeeds only if the customer can run it without you. Interviewers want 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 want to see you engage them early, meet 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◆ premiumSaying no to a customer is a relationship skill: protect them from a bad outcome while keeping their trust. Interviewers want 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?▼mediumNewShopifyMetaAnthropic◆ premiumThe 2025-2026 AI-fluency screen. Interviewers want 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 →
57What is AI Engineering, and how is it different from Machine Learning Engineering?▼mediumNewOpenAIAnthropicSierra◆ premiumThe most common opener in an Applied AI loop, and the one candidates most often answer with a taxonomy lecture. The interviewer is screening for two things in ninety seconds, and neither of them is your definition of MLOps.Open full answer →