ML Engineer Interview Questions

100 real questions from Google, Meta, NVIDIA & Netflix. Model answers. What they're actually scoring.

6 free answers — click any question to read the model answer + what they’re actually scoring
deep-learning-fundamentals1 free ↓
01
You're training a deep network and notice the loss is NaN after a few iterations. Walk me through your debugging process.
Tests whether the candidate has a systematic, engineering-disciplined approach to training instability rather than guessing at causes.
My first move is to add gradient norm logging immediately before the NaN appears, because NaN in the loss usually traces back to either an exploding...
Read answer →
free
My first move is to add gradient norm logging immediately before the NaN appears, because NaN in the loss usually traces back to either an exploding gradient or a numerical issue in the forward pass, and gradient norms tell me which direction to look. If the gradient norm spikes to infinity in the backward pass, I know the issue is exploding gradients and I add gradient clipping as a short-term fix while investigating the root cause. If the loss is NaN from the first iteration, I look at the forward pass: check for log of zero in cross-entropy, division by zero in normalization layers, or large activations from poor initialization. I'll reduce batch size to 1 and inspect activations layer by layer to find where the NaN first appears. Common culprits I've seen in production: mixed-precision training with FP16 where activations overflow, a log function applied to a softmax that's exactly zero, or a learning rate that's two orders of magnitude too high. The systematic approach is to binary search: if batch 100 is NaN, check batch 50, then narrow down. I also check that the input data itself doesn't contain NaNs, which sounds obvious but has burned me before.
Insider read
Really testing: Whether the candidate has a systematic debugging methodology, not just a list of possible causes.
The tell: Juniors list possible causes; seniors describe a systematic localization process: gradient norm logging, layer-by-layer activation inspection, and binary search over iterations.
Follow-up: How does mixed-precision (FP16) training increase the risk of NaN gradients, and what is gradient scaling?
Say this"The fastest path to root cause is gradient norm logging: if norms spike before the NaN, it's a training dynamics issue; if activations are NaN from the first forward pass, it's a data or initialization issue."
02
What causes vanishing gradients in deep networks, and what are the three most effective solutions engineers actually use?
Tests whether the candidate knows the root cause (repeated multiplication of small values) and can distinguish architectural fixes from training-time fixes.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
03
Why did GELU replace ReLU in transformers? What does GELU do that ReLU doesn't?
Tests whether the candidate knows the practical reason (stochastic regularization interpretation, smooth gradient) versus just 'BERT used it so everyone copied it'.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
04
When would you use focal loss instead of cross-entropy, and how does focal loss actually work mechanically?
Tests whether the candidate understands class imbalance at the loss level and can explain the modulating factor, not just name-drop 'focal loss for imbalance'.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
05
Explain batch normalization. What problem does it solve, and what are its failure modes?
Tests whether the candidate knows both the covariate shift rationale and the real failure modes: small batch sizes, sequence models, and inference behavior.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
06
What is the difference between layer normalization and group normalization, and when would you choose each?
Tests whether the candidate understands that the normalization axis is the core distinguishing factor and can reason about batch size sensitivity.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
07
How does a convolutional layer work? Walk me through receptive fields and why they matter for what a network can learn.
Tests whether the candidate can connect the local receptive field concept to the architectural implications for long-range feature detection.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
08
What problem did LSTMs solve that vanilla RNNs couldn't, and given that we now have transformers, are LSTMs obsolete?
Tests whether the candidate understands the gating mechanism as a solution to the vanishing gradient problem in sequences, and can give a nuanced answer on LSTM's current relevance.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
09
Explain weight initialization. Why does it matter, and what's the difference between Xavier and Kaiming initialization?
Tests whether the candidate knows that initialization affects the variance of activations through layers and can explain why the choice of activation function changes the right init strategy.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
10
Why do residual connections work? What does the gradient look like at a skip connection, and what does ResNet actually enable that wasn't possible before?
Tests whether the candidate can derive the gradient identity argument for residuals and explain what the 'residual' is actually learning.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
11
How does dropout work, and why does it sometimes hurt more than help in modern architectures?
Tests whether the candidate knows the ensemble interpretation of dropout and understands why it conflicts with batch normalization and is rarely used in the transformer residual stream.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
12
Walk me through transfer learning: when do you freeze layers, and what's the difference between feature extraction and fine-tuning?
Tests whether the candidate understands the tradeoffs between data size, domain similarity, and compute budget that determine how much of the pretrained model to update.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
13
Describe three data augmentation strategies for vision and two for NLP. What's the risk of augmentation being too aggressive?
Tests whether the candidate understands that augmentation encodes inductive bias about invariances, and that incorrectly applied augmentation can destroy label-relevant signal.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
14
How does early stopping work, and what are the subtle ways engineers get it wrong in practice?
Tests whether the candidate knows the correct validation set protocol and the common mistakes around patience, metric choice, and final model selection.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
15
What are sinusoidal positional encodings in transformers, and why might you prefer learned positional encodings instead?
Tests whether the candidate understands why transformers need positional information at all and can articulate the generalization versus expressivity tradeoff between fixed and learned encodings.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
16
Explain word2vec. What is the skip-gram objective, and how does the learned embedding space get its geometric properties?
Tests whether the candidate can explain the self-supervised prediction task that produces the embeddings, not just that 'similar words are close together'.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
17
What is contrastive loss? Describe a scenario where you'd use it over cross-entropy.
Tests whether the candidate understands the representation learning objective of contrastive loss and can articulate when metric learning is the right framing versus classification.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
18
What is multi-task learning, and what are the failure modes when tasks conflict?
Tests whether the candidate understands gradient interference between tasks and knows techniques to detect and mitigate task conflict beyond just 'adding more loss terms'.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
19
Walk me through backpropagation. How does the chain rule make it work, and what actually gets updated?
Tests whether you have a mechanistic understanding of gradient computation and activation caching, not just the intuition that gradients flow backward.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
20
What is the dying ReLU problem, and what activation functions were designed to address it?
Tests whether the candidate understands why ReLU neurons permanently die and can explain the specific mechanism by which Leaky ReLU, ELU, and GELU mitigate this.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
transformers-attention1 free ↓
21
Walk me through how self-attention works. What are Q, K, and V, and why do we scale by the square root of d_k?
Tests whether you understand the mathematical motivation for the design choices, not just the sequence of operations.
Self-attention computes a weighted combination of values, where the weights reflect how much each position should attend to every other position. We start by projecting each token into three vectors...
⌄ Read full answer & insider read
free
Self-attention computes a weighted combination of values, where the weights reflect how much each position should attend to every other position. We start by projecting each token into three vectors: a query (what this token is looking for), a key (what this token offers to others), and a value (the content it contributes if selected). We compute attention scores as the dot product of each query with all keys, then softmax-normalize them to get weights, and finally take a weighted sum of the values. The scaling by sqrt(d_k) is critical: without it, dot products in high dimensions grow large, pushing softmax into regions where gradients vanish, which kills learning. Scaling keeps the variance of the dot product roughly at 1 regardless of dimension.
Insider read
Really testing: Whether you understand the mathematical motivation for the design choices, not just the sequence of operations.
The tell: A junior says 'we scale to prevent large values'; a senior explains it in terms of variance preservation and the softmax saturation problem.
Follow-up: What happens computationally when two tokens attend to each other in both directions simultaneously?
Say this"The scaling factor isn't a hyperparameter choice, it's a variance correction that keeps gradients alive during training."
22
Why does multi-head attention outperform single-head attention? What do the different heads actually learn?
Tests whether you understand the representational advantage of multi-head attention beyond the surface-level 'multiple perspectives' answer.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
23
Compare sinusoidal positional encodings, learned positional embeddings, RoPE, and ALiBi. When would you choose each?
Tests familiarity with the evolution of positional encoding schemes and the practical tradeoffs each makes on generalization and length extrapolation.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
24
What are the architectural differences between a transformer encoder and a transformer decoder? Why does it matter which you use?
Tests whether you understand the functional purpose of each component and can connect architecture to task requirements.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
25
What is the KV cache, why is it critical for LLM inference, and what is its memory cost?
Tests whether you understand the inference-time computational graph and can quantify the memory tradeoffs in production deployments.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
26
Attention is O(n^2) in sequence length. What are the main approaches to making it more efficient, and what tradeoffs do they make?
Tests familiarity with the landscape of efficient attention methods and whether you can articulate what each gives up.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
27
Compare BERT and GPT architectures. How do their pretraining objectives differ and when would you use each?
Tests whether you understand the architectural and training objective choices and can map them to downstream task suitability.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
28
Compare full fine-tuning, LoRA, prefix tuning, and prompt tuning. How do you decide which to use?
Tests practical knowledge of parameter-efficient fine-tuning methods and the ability to reason about tradeoffs across compute, memory, and quality.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
29
Explain RLHF: the reward model, PPO training, and why it improves alignment. What are the known failure modes?
Tests depth of understanding on the alignment training pipeline and whether you can reason critically about where it can go wrong.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
30
How does Mixture of Experts work in transformer models? What is the routing problem and how do you handle load imbalance?
Tests understanding of sparse computation in modern large language models and the practical engineering challenges that come with it.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
31
When would you use RAG versus fine-tuning an LLM? What are the key tradeoffs?
Tests whether you can reason practically about knowledge injection strategies and the engineering and quality tradeoffs each entails.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
32
How do you extend the context length of a pretrained LLM? What is RoPE scaling and positional interpolation?
Tests practical knowledge of context extension techniques and the quality tradeoffs they introduce.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
33
Explain quantization for LLM inference. Compare INT8, INT4, GPTQ, and AWQ. What are the quality tradeoffs?
Tests practical knowledge of inference optimization techniques and whether you understand where quantization error concentrates in transformers.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
34
What is in-context learning and why does it work? How does chain-of-thought prompting improve reasoning?
Tests whether you have a mental model for why few-shot prompting works mechanically and what chain-of-thought actually does to the computation.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
35
What causes hallucination in LLMs and what are the most effective mitigation strategies?
Tests whether you can reason about the root causes of hallucination at a mechanistic level and evaluate mitigation strategies critically.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
36
Explain temperature, top-p, and top-k sampling. How do they interact and what does repetition penalty do?
Tests whether you understand the decoding probability mechanics and can reason about how parameter choices affect output quality and diversity.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
37
How do you evaluate LLMs? Walk me through benchmarks, human evaluation, and LLM-as-judge approaches and their limitations.
Tests whether you can critically evaluate the tradeoffs of different evaluation methodologies rather than just listing benchmark names.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
38
A decoder-only LLM is generating text slowly. Walk me through your systematic approach to diagnose and fix the latency.
Tests whether you can apply your theoretical knowledge of transformer inference to a practical debugging and optimization problem.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
model-serving-mlops1 free ↓
39
How do you decide between REST and gRPC for model serving?
Tests whether you can match protocol choice to real constraints rather than cargo-culting a preference.
My default is REST for most deployments because it is universally supported, easy to debug with curl, and works across every client stack...
⌄ Read full answer & insider read
free
My default is REST for most deployments because it is universally supported, easy to debug with curl, and works across every client stack. I switch to gRPC when I need low-latency, high-throughput inference, specifically because it uses HTTP/2 multiplexing and protobuf serialization which can cut payload size by 50-80% compared to JSON. The tradeoff is operational overhead: gRPC requires proto schema management and not all load balancers handle it well. In practice I have used gRPC internally between microservices, like from an API gateway to a TensorFlow Serving backend, while keeping a REST facade for external clients.
Insider read
Really testing: Whether the candidate can match protocol choice to real constraints rather than cargo-culting a preference.
The tell: A junior says 'gRPC is faster'; a senior quantifies the latency gain, names the client compatibility cost, and describes a hybrid architecture.
Follow-up: How would you handle streaming inference outputs, for example token-by-token LLM generation, with each protocol?
Say this"I keep REST at the edge for debuggability and use gRPC internally where I actually feel the latency."
40
Walk me through how you would set up online batching for a model endpoint to balance latency and throughput.
Tests whether the candidate understands dynamic batching mechanics and can reason about the latency-throughput tradeoff quantitatively.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
41
What is data drift versus concept drift, and how do you detect each in production?
Tests whether the candidate can distinguish input distribution changes from label relationship changes and knows concrete detection methods for both.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
42
Explain the difference between an online feature store and an offline feature store, and why training-serving skew is dangerous.
Tests whether the candidate understands the architecture of modern feature stores and the root cause of one of the most insidious production ML bugs.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
43
How do you implement CI/CD for a machine learning model, including versioning and reproducibility?
Tests whether the candidate can translate software CI/CD principles into the ML context where the artifact is a trained model, not just code.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
44
Describe shadow mode and canary deployment for rolling out a new model. When would you use each?
Tests whether the candidate understands the risk profiles of different deployment strategies and can match them to business contexts.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
45
How do you containerize and orchestrate a GPU-based model inference service using Docker and Kubernetes?
Tests whether the candidate understands the specific challenges of running GPU workloads in containers, beyond basic Kubernetes knowledge.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
46
Compare knowledge distillation, pruning, and quantization. When would you reach for each?
Tests whether the candidate can articulate the mechanism, cost, and appropriate use case for each compression technique rather than treating them as interchangeable.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
47
How does ONNX fit into an inference optimization workflow, and what are its limitations?
Tests whether the candidate understands ONNX as an interoperability layer, not a silver bullet, and knows where it breaks down.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
48
How do you design a training pipeline with Airflow or Kubeflow, and what are the key failure modes you guard against?
Tests whether the candidate has hands-on experience orchestrating ML pipelines and can reason about reliability and idempotency.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
49
When would you use batch data processing with Spark versus streaming with Kafka for an ML feature pipeline?
Tests whether the candidate can match data processing architecture to latency and freshness requirements rather than defaulting to one paradigm.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
50
How do you implement data versioning and lineage tracking for an ML system?
Tests whether the candidate understands why data versioning is distinct from model versioning and can design for auditability.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
51
What goes into a model card, and why does it matter for production ML?
Tests whether the candidate treats model documentation as an engineering artifact with operational value, not just a compliance checkbox.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
52
A model in production starts returning bad predictions. Walk me through your incident response and rollback strategy.
Tests whether the candidate has a structured, time-boxed incident response process and knows when to roll back versus when to patch.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
53
How do you optimize inference costs in production, including strategies for spot instances and right-sizing?
Tests whether the candidate thinks about ML infrastructure costs as an engineering discipline, not just a billing concern.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
54
How do you implement observability for an ML serving system: what do you log, trace, and measure?
Tests whether the candidate understands that ML observability requires domain-specific signals beyond standard application monitoring.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
55
How do you approach feature engineering at scale for a model that needs to process billions of events per day?
Tests whether the candidate can design a feature engineering architecture that is correct, scalable, and maintainable simultaneously.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
distributed-training1 free ↓
56
Walk me through the differences between data parallelism, model parallelism, tensor parallelism, and pipeline parallelism. When would you choose each?
Tests whether you can reason about memory, communication bandwidth, and compute utilization simultaneously — not just name the strategies.
In data parallelism, every GPU holds a full model copy and processes a different shard of the batch, then gradients are averaged across workers...
⌄ Read full answer & insider read
free
In data parallelism, every GPU holds a full model copy and processes a different shard of the batch, then gradients are averaged across workers. It scales well when the model fits on one GPU. Model parallelism splits layers across GPUs sequentially, which helps when a single layer sequence is too large but introduces pipeline bubbles. Tensor parallelism, as used in Megatron-LM, splits individual weight matrices across GPUs so that each device handles a slice of every matrix multiply, reducing activation memory and allowing wider models. Pipeline parallelism splits the model into stages and streams micro-batches through them to overlap compute, but you have to tune the number of micro-batches carefully to minimize the idle bubble. In practice I combine all four: data parallel across nodes, tensor parallel within a node for intra-GPU bandwidth, and pipeline parallel across nodes when the model is deep enough to fill the pipeline.
Insider read
Really testing: Whether the candidate can reason about memory, communication bandwidth, and compute utilization simultaneously rather than treating parallelism strategies as interchangeable.
The tell: A junior says 'data parallelism is for big data, model parallelism is for big models'; a senior explains why NVLink bandwidth makes tensor parallelism feasible within a node but not across nodes, and how to tune pipeline micro-batches to manage bubble fraction.
Follow-up: How does the communication pattern differ between tensor parallelism and data parallelism, and what hardware constraint drives that difference?
Say this"The right parallelism strategy is always a function of your model shape, your network topology, and your memory budget simultaneously."
57
Explain gradient accumulation. How does it simulate a larger batch size, and what are its limitations?
Tests whether the candidate understands the relationship between batch size, gradient statistics, and memory, and can identify the real-world gaps between accumulation and a true large batch.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
58
Why did BF16 largely replace FP16 for large language model training? What problem does it solve, and what does loss scaling have to do with it?
Tests whether the candidate understands floating-point number formats at a practical level and can explain why numerical stability, not raw precision, is the bottleneck in LLM training.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
59
What is gradient checkpointing, and how does it trade compute for memory? When would you enable it and when would you not?
Tests whether the candidate understands the activation memory problem in deep networks and can reason quantitatively about the compute overhead gradient checkpointing introduces.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
60
Compare random search, grid search, and Bayesian optimization for hyperparameter tuning. When does each strategy win?
Tests whether the candidate understands the statistical and computational efficiency arguments behind each HPO strategy rather than just knowing their definitions.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
61
Describe the role of learning rate warmup, cosine annealing, and cyclical learning rates. Why is warmup especially important for transformer training?
Tests whether the candidate can connect learning rate schedule design to the optimization landscape and model-specific failure modes rather than treating schedules as arbitrary convention.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
62
Compare Adam, AdamW, SGD, and Lion optimizers. When would you choose each, and what problem does AdamW actually fix?
Tests whether the candidate understands the weight decay regularization distinction between L2 and decoupled weight decay and can make principled optimizer choices for different model families.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
63
What is the generalization gap in large-batch training, and what techniques help close it?
Tests whether the candidate understands why large-batch training often degrades test accuracy and can describe the sharpness-flatness tradeoff in loss landscape geometry.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
64
Explain the ZeRO optimizer and its three stages. How does DeepSpeed use it to train models that do not fit on a single GPU?
Tests whether the candidate understands how ZeRO partitions optimizer state, gradients, and parameters across data-parallel workers to achieve near-linear memory scaling.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
65
How does tensor parallelism work in Megatron-LM style training? Walk through how a matrix multiply is split across GPUs.
Tests whether the candidate can reason at the linear algebra level about how weight matrices are partitioned and how partial results are recombined, not just name-drop Megatron-LM.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
66
What are your strategies for saving and resuming checkpoints for a 70B+ parameter model? What failure modes do you account for?
Tests whether the candidate has thought through the operational reliability challenges of large-scale training beyond just calling save_pretrained, including mid-checkpoint corruption and storage cost.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
67
How do you profile a distributed training job to identify whether the bottleneck is compute, I/O, or communication?
Tests whether the candidate has a systematic methodology for diagnosing training throughput issues rather than guessing or applying generic advice.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
68
Explain GPU memory management during training. What techniques beyond gradient checkpointing can you use to fit a larger model or batch without buying more hardware?
Tests whether the candidate has a comprehensive mental model of where GPU memory goes during training and knows a portfolio of techniques to reduce each component.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
coding-implementation1 free ↓
69
Implement a neural network forward pass in NumPy for a two-layer fully connected network with ReLU activation.
Tests whether you understand shape alignment, caching intermediates, and why the forward pass sets up backprop — not just the math.
I would start by initializing weight matrices W1 and W2 and bias vectors b1 and b2. The forward pass is two sequential steps...
⌄ Read full answer & insider read
free
I would start by initializing weight matrices W1 and W2 and bias vectors b1 and b2. The forward pass is two sequential steps: first I compute the hidden layer pre-activation as the matrix product of the input X and W1 transposed, add b1, then apply ReLU element-wise by clamping negatives to zero. Then I compute the output as the matrix product of the hidden activations and W2 transposed, plus b2. The key thing I watch is shape alignment: if X is shape (batch, input_dim) and W1 is (hidden_dim, input_dim), then X at-sign W1.T gives (batch, hidden_dim), which is what we want. I also cache the intermediate values like the pre-activation and the ReLU mask, because backprop will need them.
Insider read
Really testing: Whether you understand matrix shape conventions, broadcasting, and why caching intermediates is necessary for the backward pass.
The tell: A junior writes the math but gets shapes wrong or forgets to cache; a senior explicitly narrates the shape at each step and anticipates the backward pass before being asked.
Follow-up: Now walk me through what you would cache and why, and sketch how the backward pass uses those cached values.
Say this"I always annotate shapes as comments because a shape mismatch is the most common silent bug in NumPy-based networks."
70
Implement backpropagation for that same two-layer network using only NumPy.
Tests whether you can apply the chain rule systematically and translate it into correct vectorized gradient expressions.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
71
Implement scaled dot-product attention from scratch using NumPy.
Tests whether you understand the mechanics of the attention operation, including why scaling is necessary and how the softmax interacts with masking.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
72
Write a k-means clustering algorithm from scratch without using sklearn.
Tests whether you know the EM-style update loop of k-means and can identify its convergence criteria and failure modes.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
73
Implement a sliding window over a variable-length sequence for tasks like chunking text or processing time-series data.
Tests whether you can write clean, boundary-safe windowing logic and reason about stride, overlap, and edge handling.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
74
What is the time and space complexity of a matrix multiply between an (m x k) matrix and a (k x n) matrix, and what is the complexity of computing softmax over a vector of length n?
Tests whether you can reason about the cost of fundamental ML operations and connect those costs to architectural choices like attention complexity.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
75
How are hash maps used in ML systems, and can you walk through how feature hashing works and why it is useful?
Tests whether you understand the practical role of hash-based structures in feature engineering and embedding tables at scale.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
76
Explain how sorting and top-k selection appear in ML contexts, and describe how you would implement top-k sampling for a language model.
Tests whether you understand the difference between full sort and partial sort and can connect these algorithms to decoding strategies in generative models.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
77
What graph algorithms are relevant to ML, and how does message passing in a graph neural network relate to classical graph traversal?
Tests whether you can bridge classical graph algorithm knowledge to the architectural design of graph neural networks.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
78
Explain the Viterbi algorithm and how dynamic programming applies to sequence decoding in models like HMMs or CRFs.
Tests whether you understand how DP avoids exponential search over sequence labelings and can articulate the optimal substructure property in an ML context.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
79
Walk me through how you would write clean, testable ML code, including the use of type hints and unit tests for a training loop component.
Tests whether you treat ML code as production software subject to engineering discipline, not as exploratory notebook code.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
80
Describe a debugging process for a silent bug in ML training code: the model trains without errors but the loss does not decrease. What are the first things you check?
Tests whether you have a systematic mental model for diagnosing ML failures that go beyond crashes or obvious exceptions.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
81
Rewrite a nested Python loop that computes pairwise distances between two sets of vectors as a vectorized NumPy operation.
Tests whether you can recognize the broadcasting pattern behind pairwise distance computation and explain why vectorization matters at ML scale.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
82
When would you use multiprocessing versus threading for a data loading pipeline in Python, and how does this connect to the GIL?
Tests whether you understand Python's concurrency model and can make the right architectural choice for CPU-bound versus I/O-bound data loading workloads.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
system-design-behavioral1 free ↓
83
Design a recommendation system at scale for a platform like YouTube or Netflix.
Tests whether you understand the retrieval-then-rank funnel, can reason about latency and scale tradeoffs at each stage, and know how to handle feedback loops and bias in training data.
I would break this into three stages: candidate generation, ranking, and re-ranking. Candidate generation uses approximate nearest neighbor search over user and item embeddings...
⌄ Read full answer & insider read
free
I would break this into three stages: candidate generation, ranking, and re-ranking. Candidate generation uses approximate nearest neighbor search over user and item embeddings trained with two-tower models, narrowing billions of items down to a few thousand candidates in milliseconds. The ranking stage runs a deeper model, often a neural network with cross-features like watch history, session context, and item freshness, to score those candidates. Re-ranking applies business rules like diversity, novelty, and policy filters before serving. I store user embeddings in a low-latency key-value store like Redis and update them asynchronously using streaming pipelines so they reflect recent behavior without blocking the serving path. For training, I use logged feedback with careful treatment of position bias and use a mixture of implicit signals like watch time and explicit signals like ratings.
Insider read
Really testing: Whether you understand the retrieval-then-rank funnel, can reason about latency and scale tradeoffs at each stage, and know how to handle feedback loops and bias in training data.
The tell: A junior candidate describes a single model; a senior candidate describes the full multi-stage pipeline and explains why each stage exists and how they are trained and updated independently.
Follow-up: How would you handle the cold-start problem for new users and new items?
Say this"The two-tower retrieval model gets you to candidates fast; the ranking model is where you spend your compute budget wisely."
84
Design a real-time fraud detection system for a payment platform processing millions of transactions per day.
Tests whether you can build a low-latency ML system with strict SLA requirements while handling severe class imbalance, adversarial behavior, and the operational cost of false positives.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
85
Design a search ranking system for a large-scale platform like Google or LinkedIn.
Tests whether you can design a multi-stage relevance pipeline that combines query understanding, retrieval, and learning-to-rank while handling diverse query intents and freshness requirements.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
86
Design a content moderation system using ML for a social platform with billions of posts per day.
Tests whether you can architect a human-in-the-loop system that balances recall on harmful content against false positive rates, handles multimodal content, and operates at internet scale.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
87
Design an image classification pipeline at scale for a platform that ingests millions of images per day.
Tests whether you can design an end-to-end ML pipeline that handles data ingestion, model serving, monitoring, and retraining at high throughput with low latency.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
88
Design a real-time translation system that needs to handle dozens of language pairs at low latency.
Tests whether you can reason about the tradeoffs between model quality, language coverage, and latency in a system where both accuracy and speed are user-facing requirements.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
89
Design a personalized ad ranking system for a platform serving billions of ad impressions per day.
Tests whether you understand the full ads stack including auction mechanics, click-through rate prediction, and the interplay between relevance and revenue objectives.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
90
Design an LLM serving infrastructure that needs to handle millions of users with varying request sizes and latency requirements.
Tests whether you understand the systems-level challenges of LLM inference including memory management, batching strategies, and the cost tradeoffs between throughput and latency.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
91
How would you build a spam filter for an email or messaging platform?
Tests whether you can build an adversarially robust classifier that evolves with attacker behavior while keeping false positive rates low enough that users trust the system.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
92
Design a document similarity and deduplication system at scale for a corpus of hundreds of millions of documents.
Tests whether you know efficient approximate similarity algorithms and can reason about the tradeoffs between exactness, speed, and storage at very large scale.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
93
Tell me about the most complex ML system you built end-to-end.
Tests whether you have genuine depth across the full ML stack, from problem framing through production monitoring, and whether you can articulate the hardest technical challenges you solved.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
94
Tell me about a time your model underperformed in production. What did you do?
Tests whether you have experience debugging production ML failures, can distinguish between data, model, and infrastructure root causes, and take ownership under pressure.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
95
How do you explain a complex model or architecture decision to a non-ML team like product, legal, or finance?
Tests whether you can translate technical decisions into business terms and communicate uncertainty and tradeoffs to stakeholders who need to make decisions but do not have ML backgrounds.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
96
Tell me about a time you had to make a tradeoff between model accuracy and latency.
Tests whether you have real experience navigating the accuracy-latency tradeoff and whether you involve stakeholders in threshold decisions rather than making them unilaterally.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
97
How do you stay current with ML research while shipping production work?
Tests whether you have a sustainable, selective system for tracking research rather than either ignoring new work or being overwhelmed by it, and whether you can evaluate research relevance quickly.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
98
Tell me about a time you caught a data quality issue before it caused a production problem.
Tests whether you build proactive data validation into your pipelines and can describe a specific incident where rigorous data hygiene prevented downstream harm.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
99
How have you handled disagreement with a colleague about a model architecture choice?
Tests whether you can navigate technical disagreements constructively, make decisions based on evidence rather than seniority, and maintain team relationships under technical conflict.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
100
What is the biggest ML mistake you have made, and what did you learn from it?
Tests whether you have genuine self-awareness, can take ownership of mistakes without deflecting, and show that you have systemically improved your process as a result.
This answer + insider read are in the full set — 100 questions, one-time $19.Get all 100 answers · $19
// complete set

All 100 questions. Every model answer. Every insider read.

Walk in knowing what a senior answer sounds like, and what they are actually scoring.

$19
// one-time · instant access · lifetime · no subscription
// interview bootcamp: $5,000+ · 1:1 coach: $200/hour · this playbook: $19
Unlock all 100 for $19
14-day money-back guarantee. No questions asked.
what happens next
01Pay once. $19, no subscription, no upsells.
02Instant link. Your private guide opens the moment payment clears.
03Permanent access. Bookmark it. Use it before every interview, on any device.
VisaMastercardAmexApple PayGoogle PayPayPal
// payment handled by Lemon Squeezy, our merchant of record. We never see your card details. Support: support@howto-playbooks.com
Why not just ask ChatGPT?+
ChatGPT gives you a plausible answer. It does not tell you whether that answer makes an interviewer want to hire you. The whole product is the insider read: what they are really testing, how a junior answer sounds versus a senior one, and the follow-up they will throw next.
Are these real interview questions?+
Yes. These are the questions that actually come up in ML engineer interviews at Google, Meta, NVIDIA, Netflix, and similar companies, grouped the way a real loop runs: deep learning, transformers, serving and MLOps, distributed training, coding, and system design.
What is different from free question lists?+
Free lists give you questions. This gives you the model answer plus what the interviewer is actually scoring. That is the difference between recalling an answer and handling the follow-up.
What if it does not help?+
14-day, no-questions-asked refund. Email support@howto-playbooks.com with your order number and we refund in full.
What format is it?+
A single web page, bookmarkable, works on any device. All 100 questions expandable with answers and insider reads. Lifetime access.
How do I get access after paying?+
Instantly. The moment payment clears, your private link opens with all 100 questions and answers. Your receipt email contains the same permanent link, so you can come back anytime, on any device. If you ever lose it, email support@howto-playbooks.com and we resend it.
Is the payment secure?+
Yes. Checkout is handled by Lemon Squeezy, our merchant of record, with payments processed by Stripe, the same infrastructure used by Amazon and Shopify. Card, Apple Pay, Google Pay and PayPal are supported. Your card details never touch our servers.
// more playbooks: 100 questions each
$19 one-time
// 100 questions · insider reads · 14-day refund
Unlock all 100