README 未说明
ai-engineering-interview-questions-company-wise
pallavi-shekharApache-2.0活跃维护按公司分类整理的 AI 工程面试题库,覆盖 LLM 推理等方向的问题与答案,适合面试前按目标公司集中刷题准备。
Your Cheat Sheet For AI Engineering Interviews at Top AI Companies - Questions and Answers.
按公司整理的 AI 工程面试真题库,覆盖 35 家顶级 AI 公司,帮你按目标公司定向复习
按公司分类整理的 AI 工程面试题库,覆盖 LLM 推理等方向的问题与答案,适合面试前按目标公司集中刷题准备。
核心能力
- 按公司分节收录 35 家公司的真实面试题
- 先汇总跨公司通用高频题,避免重复
- 按 LLM 内部结构、推理服务、RAG、Agent 等主题分组
- 部分题目下方直接链接到对应答案文章
- 覆盖 AI Engineer、LLM Engineer、MLOps 等岗位
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
AI Engineering Interview Questions Company Wise
AI Engineering Interview Questions Company Wise - Your Cheat Sheet For AI Engineering Interviews at Top AI Companies
Real interview questions asked in AI Engineering interviews at 35 companies, organized company by company, with answers linked wherever we have them.
These interview questions and answers are helpful for roles such as:
- AI Engineer
- Gen AI Engineer
- LLM Engineer
- Agentic AI Engineer
- AI Agent Engineer
- Machine Learning Engineer
- Research Engineer
- Applied Scientist
- Forward Deployed Engineer
- AI Solutions Architect
- AI Platform Engineer
- Applied AI Engineer
- LLM Inference and Performance Engineer
- MLOps Engineer
- LLMOps Engineer
Table of Contents
- How to use this
- Common Questions Asked Across Companies
- Frontier AI Labs
- Big Tech AI Organizations
- AI Infrastructure and Platform Companies
- AI-Native Product Companies
- Forward-Deployed and Enterprise AI
Prepared and maintained by Outcome School
AI and Machine Learning Program by Outcome School: AI and Machine Learning Program
Follow Outcome School
Note: We will keep updating this with new questions and answers.
For topic-wise questions and answers, see AI Engineering Interview Questions and Answers.
How to use this
- Questions are compiled from publicly reported interview experiences. Nothing here is confidential. Interview loops change constantly and vary by team, level, and region, so treat each company section as a map of what that company cares about, not a script of what you will be asked.
- Start with Common Questions Asked Across Companies. These are the questions that recur across many companies. Each one is listed once, with the companies that ask it, so nothing is repeated in the company sections.
- Then go to your target companies. Each company section has the roles it covers, the interview loop as publicly reported, and the company-specific questions grouped by topic.
- Wherever we have an answer, it is linked right below the question. We will keep adding answers.
Common Questions Asked Across Companies
These questions come up in AI Engineering interviews at many companies. Each question is listed once here, with the companies where it (or a company-specific version of it) is asked. Work through these first.
LLM Internals and Architecture
- Explain scaled dot-product attention and why the 1/sqrt(d_k) scaling factor matters.
- What is the KV cache, and what are its memory implications at scale? Derive the formula.
- Asked at: OpenAI, xAI, Mistral AI, Amazon, Apple, NVIDIA, Together AI, Character.AI
- Answer: What is KV Cache in LLMs? and KV Cache Compression
- What are Multi-Query Attention (MQA) and Grouped-Query Attention (GQA), and what do they trade away?
- Asked at: Meta, Mistral AI
- Answer: Grouped Query Attention
- What is Multi-head Latent Attention (MLA) and why did DeepSeek introduce it?
- Asked at: DeepSeek, Moonshot AI
- Answer: KV Cache Compression
- Explain FlashAttention. It does not reduce FLOPs, so why is it faster?
- Asked at: Together AI
- Answer: Decoding Flash Attention in LLMs
- How does Byte Pair Encoding work, and what are its failure modes (numbers, code, non-Latin scripts)?
- Asked at: Alibaba, Sarvam AI, Hugging Face
- Answer: Byte Pair Encoding and Tokenization in Large Language Models (LLMs) and Tokenization in LLMs
- What is positional encoding in transformers, and how has it evolved (sinusoidal → learned → RoPE → ALiBi)?
- Explain RoPE and how position interpolation / YaRN extend context beyond the trained length.
- Asked at: Meta, Moonshot AI, Alibaba
- Answer: Math Behind RoPE (Rotary Position Embedding)
- What do the Chinchilla scaling laws say, and how do they differ from earlier scaling intuitions?
- Asked at: Anthropic
- What is a mixture-of-experts architecture and how does it scale capacity without scaling FLOPs?
- Asked at: Mistral AI, Cohere, DeepSeek, Moonshot AI, Zhipu AI, Alibaba
- Answer: Mixture of Experts Explained
- Explain the difference between pre-training, supervised fine-tuning and preference optimisation.
- Asked at: Meta, Scale AI
- Answer: Decoding InstructGPT and Reinforcement Learning from Human Feedback (RLHF) and How does Pretraining work?
- Compare greedy, beam search, top-k, top-p and temperature sampling. When does each fail?
- Asked at: Google DeepMind, Apple, Perplexity
- Answer: How does Temperature control LLM output? and How do Top-k and Top-p Sampling work?
- What is the lost-in-the-middle problem in long contexts and how do you address it?
- Asked at: Moonshot AI
- Answer: The Lost in the Middle Problem in LLMs
- Why is LayerNorm placed pre-block in modern transformers, and what is RMSNorm?
- Explain SwiGLU and why gated activations replaced ReLU/GELU in modern LLM MLP blocks.
- Asked at: Meta
- Answer: Feed-Forward Networks in LLMs
- Walk me through what happens, tensor by tensor, in one forward pass of a decoder-only transformer.
- Asked at: Anthropic
- Answer: Decoding Transformer Architecture
Inference, Serving and GPU Performance
- Explain the prefill and decode phases. Why is prefill compute-bound and decode memory-bandwidth-bound?
- Asked at: Moonshot AI, NVIDIA, Together AI
- Answer: Prefill vs Decode: LLM Inference Optimization
- What is continuous (in-flight) batching and why did it replace static batching?
- Asked at: Anthropic, xAI, Mistral AI, NVIDIA, Together AI
- Answer: Continuous Batching in LLMs
- How does PagedAttention work, and what problem of KV-cache fragmentation does it solve?
- Asked at: NVIDIA, Together AI
- Answer: Paged Attention in LLMs and How does vLLM work?
- What is speculative decoding? Why is output quality preserved, and when does it not help?
- Asked at: NVIDIA, Together AI
- Answer: Speculative Decoding
- Explain prefix caching / prompt caching. When should you use it, and what invalidates a cached prefix?
- Asked at: Moonshot AI, Character.AI
- Answer: How does Prompt Caching work?
- Compare FP16, BF16, FP8, INT8, INT4 and FP4 for serving. What breaks at each step down?
- Asked at: Mistral AI, Apple, NVIDIA, Together AI, Character.AI
- Answer: How does Model Quantization work?
- Compare tensor, pipeline, data, sequence and expert parallelism. When do you combine them?
- Asked at: Google DeepMind, Meta, Amazon, NVIDIA
- Estimate the GPU memory needed to serve a 70B model: weights, KV cache, activations, fragmentation.
- Asked at: NVIDIA
- Answer: What is KV Cache in LLMs? and Paged Attention in LLMs
- What are TTFT, TPOT, ITL and throughput, and how do they trade against each other?
- Asked at: Microsoft, Apple, Perplexity
- Answer: Prefill vs Decode: LLM Inference Optimization and The First-Token Latency Problem in LLMs
- Do the roofline maths: how many tokens/sec can one H100 produce for a 70B model at batch size 1?
- Asked at: NVIDIA, Together AI
- Answer: Prefill vs Decode: LLM Inference Optimization
- When would you choose vLLM vs SGLang vs TensorRT-LLM vs a custom stack?
- Asked at: NVIDIA, Together AI
- Answer: How does vLLM work?, How does SGLang work? and How does TensorRT-LLM work?
- How would you cut LLM serving cost by 10x? Enumerate every lever and rank them.
- Asked at: Microsoft, Amazon, NVIDIA, Cursor
- Answer: Explained in this video: LLM Inference Optimization and LLM Inference Optimization
- Your p99 latency doubled after a deploy with no model change. Walk through the diagnosis.
- Asked at: OpenAI, Amazon, Databricks, Perplexity
- What is chunked prefill, and why does it improve tail latency under mixed traffic?
- Explain disaggregated prefill/decode serving and when it pays for itself.
- Asked at: Moonshot AI, Groq
- Answer: Prefill-Decode Disaggregation in LLM Inference
RAG and Retrieval
- What chunking strategy would you use for a large technical documentation corpus, and why?
- Asked at: Glean
- Answer: Chunking Strategies for RAG
- How do you choose between a sparse retriever (BM25) and a dense retriever? When do you need both?
- Asked at: Microsoft, Perplexity, Glean
- Answer: How does Hybrid Search work?
- What is a reranker, when should you use one, and what does a cross-encoder cost you?
- Asked at: Cohere, Microsoft, Perplexity
- Answer: How does a Reranker work?
- How would you evaluate the quality of a RAG pipeline: retrieval and generation separately?
- Asked at: Cohere
- Answer: LLM Evaluation
- What is HyDE (hypothetical document embeddings) and when does it outperform standard dense retrieval?
- Answer: How does HyDE work in RAG?
- How does agentic RAG differ from standard RAG, and when is the extra complexity justified?
- Answer: Agentic RAG
- What causes semantic drift in embedding search and how do you detect it?
- Asked at: Cohere
- Design permission-aware retrieval: users must never see content they can't access in the source system.
- Asked at: Microsoft, Databricks, Glean, Palantir
- Compare HNSW, IVF-PQ and flat indexes. How do you pick, and what does recall@k cost in latency?
- How do you handle tables, figures and multi-column PDFs in a retrieval pipeline?
- How do you keep an index fresh when the underlying corpus changes continuously?
- Asked at: Perplexity, Cursor
- How do you attribute every claim in a generated answer to a specific retrieved span?
- Asked at: Perplexity, Harvey, Abridge
Agents and Tool Use
- Explain the ReAct pattern and what it solves over chain-of-thought alone.
- How do you handle tool-call errors, timeouts and retries in an agentic loop?
- Asked at: OpenAI, Cognition
- Answer: AI Agent Loop
- What is the difference between structured output and function calling?
- Asked at: Mistral AI, Apple
- Answer: How does Function Calling work in LLMs?
- What is MCP (Model Context Protocol) and how does it differ from traditional function calling?
- Asked at: Microsoft
- Answer: Explained in this video: AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, Quantization and What is MCP (Model Context Protocol)?
- How many tools is too many? How do you design tool schemas an LLM can actually use correctly?
- Asked at: Anthropic, Cognition
- Answer: Explained in this video: AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, Quantization
- How does multi-agent orchestration work, and when does it break down?
- Asked at: Cognition
- Answer: Multi-Agent Systems and AI Orchestration
- Design memory for a long-running agent: what do you store, where, and how do you retrieve it?
- Asked at: Anthropic
- Answer: AI Agent Memory and How does ChatGPT remember you?
- How does an agent decide when to call a tool versus answer from its own knowledge?
- What makes an agent loop terminate correctly? How do you bound cost and steps?
- Answer: AI Agent Loop and Fix an infinite loop in an AI agent
- How do you make an agent's actions reversible, or at least auditable, in a production system?
- Asked at: Palantir
- Design human-in-the-loop approval for an agent that takes consequential actions.
- Your agent drifts after a long run and confidently works on the wrong thing. Diagnose it.
- Asked at: Cognition
Fine-Tuning, Post-Training and Alignment
- Walk me through RLHF end to end: reward model, policy optimisation, KL penalty.
- What is DPO and why did it displace PPO-based RLHF at many labs? When is online RL still better?
- Asked at: Hugging Face, Scale AI
- Answer: Direct Preference Optimization (DPO)
- Explain GRPO and why dropping the value network matters at scale.
- Asked at: DeepSeek
- Answer: Group Relative Policy Optimization (GRPO)
- Explain the LoRA decomposition mathematically. Why does it work, and how do you choose the rank r?
- How does QLoRA achieve its memory reduction, and what are the quantization trade-offs?
- Asked at: Hugging Face
- Answer: Explained in this video: AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, Quantization and How does Model Quantization work?
- Compare LoRA, prefix tuning, prompt tuning and full fine-tuning. When would you choose each?
- Asked at: Sarvam AI, Apple
- Answer: How does fine-tuning work? and How does Prefix Tuning work?
- What is catastrophic forgetting and how do you mitigate it during fine-tuning?
- Asked at: Mistral AI
- Answer: Continual Learning in LLMs
- Prompting, RAG or fine-tuning: give me your decision framework with cost and latency attached.
- Asked at: OpenAI, Mistral AI, Cohere, Microsoft, Databricks, Glean
- Answer: Explained in this video: AI Engineering Explained: LLM, RAG, MCP, Agent, Fine-Tuning, Quantization
- Do the GPU memory maths for full fine-tuning a 7B model in bf16 with Adam. Now with LoRA.
- Asked at: Mistral AI, Hugging Face
- What is RLVR (RL with verifiable rewards) and where does it beat a learned reward model?
- Asked at: Zhipu AI, Alibaba, Sarvam AI, Scale AI
- Answer: Group Relative Policy Optimization (GRPO)
- Explain reward hacking in RLHF and how labs address it.
- Asked at: Scale AI
- Answer: Reinforcement Learning from Human Feedback (RLHF)
- What is distillation, and how do you build a strong small model from a large one?
- Asked at: Alibaba
- Answer: How does Knowledge Distillation work?
Evaluation and Observability
- Design an LLM-as-judge evaluation. What are its known biases and how do you correct for them?
- Asked at: Perplexity
- Answer: LLM as a Judge
- How do you build an eval set when there is no labelled ground truth and experts are expensive?
- How do you detect and measure hallucinations in a production RAG system?
- Design the regression gate that decides whether a prompt or model change ships.
- Asked at: Anthropic
- Why do benchmark scores improve while users say the system got worse? Enumerate the reasons.
- Asked at: Cognition
- What is benchmark contamination and how do you guard against it?
- Asked at: Zhipu AI, Alibaba, Scale AI
- Answer: LLM Evaluation
- What observability does a production LLM system need: traces, spans, costs, feedback?
- Answer: AI Agent Observability
- How do you manage prompt versioning and rollbacks in production?
- Design online evaluation: what do you log, what do you sample, and what do you A/B?
- Asked at: Perplexity
- How would you evaluate an agent, as opposed to a single model response?
- Asked at: Moonshot AI, Zhipu AI, Scale AI, Cognition
- Answer: AI Agent Evaluation
Safety, Security and Responsible AI
- What is prompt injection (direct and indirect), and what is your layered defence?
- Asked at: Anthropic, OpenAI, Microsoft, Sierra
- Answer: Prompt Injection in LLMs
- Walk me through the OWASP Top 10 for LLM applications and which ones actually bite in practice.
- What is the difference between jailbreaking and adversarial prompting?
- Design guardrails for a consumer-facing assistant. Input filters, output filters, or both?
- Asked at: Sierra, Character.AI
- Answer: How do LLM guardrails work?
- What is Constitutional AI and how does it differ from RLHF? What is RLAIF?
- Asked at: Anthropic
- How do you prevent an agent with tool access from exfiltrating data via a malicious web page?
- Asked at: OpenAI
- Answer: Prompt Injection in LLMs
- How do you handle PII in prompts, logs and training data?
- Asked at: Abridge
- What is mechanistic interpretability and why do labs invest in it?
- How would you audit a deployed model for differential performance across user groups?
- Asked at: Microsoft
- Design a red-teaming programme for a model you are about to release.
- Answer: LLM Evaluation
Multimodal, Speech and Voice AI
- How do vision-language models get images into an LLM: projector, cross-attention, or native tokens?
- Asked at: Meta, Alibaba
- Answer: Multimodal AI and Decoding Vision Transformer (ViT) and How does a Vision-Language Model (VLM) work?
- What changes when you move from images to video?
- Asked at: Meta
- Budget the latency for a real-time voice agent: VAD, ASR, LLM, TTS, network. Where does the time go?
- Asked at: Sarvam AI, ElevenLabs
- Answer: Design a Real-Time Voice AI Agent, How do you build a latency budget for a voice AI agent?, How does the voice-to-voice latency of a voice agent get measured?, Why does the time-to-first-audio matter more than total response time?, How does speculative LLM generation start replying before the user finishes? and How do filler phrases hide latency in a voice agent?
- Design barge-in / interruption handling for a voice agent.
- Asked at: ElevenLabs
- Answer: Design a Real-Time Voice AI Agent, What is turn-taking in a voice AI agent?, What is barge-in in a voice AI agent?, How does a voice agent tell a real interruption from a cough or background noise? , How does a voice agent stop speaking instantly when interrupted? and How does a voice agent truncate its memory to only what the user actually heard?
- Cascaded ASR+LLM+TTS versus native speech-to-speech: argue both sides.
- How do you evaluate ASR quality beyond WER, and TTS quality when there is no single correct output?
- Asked at: ElevenLabs
- How do you handle code-switching and accents in a production ASR system?
- Explain streaming TTS chunking and jitter-buffer sizing.
- Design a diarisation system and explain how you attribute roles, not just clusters.
- Asked at: Abridge
- How would you build multimodal retrieval over images, video and text in one index?
- Answer: How do Image Embeddings work?
AI System Design
- Design an enterprise RAG assistant over 10M documents with per-user permissions.
- Asked at: OpenAI, Microsoft, Amazon, Databricks, Scale AI
- Design a code assistant: repo indexing, context assembly, edit application, evaluation.
- Asked at: Cursor
- Answer: How does Cursor work? and How does Claude Code work?
- Design a customer-support agent that can take real actions, with escalation to humans.
- Asked at: Consumer-Scale ML Companies, Sierra
- Design semantic search over a large product catalogue.
- Asked at: Character.AI
- Answer: How does Semantic Search work?
- Design a content-moderation system combining classifiers and LLMs.
- Asked at: Meta
- Design a document-intelligence pipeline: scanned PDFs in, structured fields out, at 10M documents.
- Asked at: Palantir
- Design a Text-to-SQL system over a warehouse with thousands of tables.
- Asked at: Databricks, Palantir
- Design a meeting assistant: recording, diarisation, summary, action items, integrations.
- Asked at: Microsoft
- Design an LLM gateway: routing across providers, failover, caching, budgets and rate limits.
- Asked at: Perplexity, Palantir
- Answer: LLM Routing and How does Semantic Caching work?
- Design the serving stack for a consumer chat assistant at hundreds of millions of users.
- Asked at: Anthropic, OpenAI, Google DeepMind, Meta, xAI
- Answer: Inside ChatGPT: What Happens After You Hit Enter and LLM Inference Optimization
Coding and Data Structures
- Implement scaled dot-product attention with a causal mask, from scratch, in NumPy or PyTorch.
- Asked at: Anthropic, Google DeepMind, Amazon
- Answer: Math behind Attention - Q, K, and V and Causal Masking in Attention
- Implement multi-head attention, then convert it to grouped-query attention.
- Asked at: Google DeepMind, Mistral AI, Alibaba
- Answer: Multi-Head Attention in Transformers and Grouped Query Attention
- Implement a KV cache and single-step decode.
- Asked at: Moonshot AI
- Answer: What is KV Cache in LLMs?
- Implement BPE training and encoding from scratch.
- Answer: Byte Pair Encoding
- Implement top-k, top-p and temperature sampling over a logits vector.
- Asked at: Google DeepMind, Apple
- Answer: How does Temperature control LLM output? and How do Top-k and Top-p Sampling work?
- Implement an LRU cache with O(1) get/put, then add TTL.
- Implement a token-bucket rate limiter, then make it distributed.
- Write an async batch processor over an API with concurrency limits, retries with jitter and error isolation.
- Asked at: Anthropic, Perplexity
- Write a streaming SSE/JSON parser that handles arbitrary chunk boundaries.
- Asked at: Cohere
- Answer: How does Token Streaming work?
- Implement a text chunker with overlap that never splits a semantic unit.
- Asked at: Harvey
- Answer: Chunking Strategies for RAG
- Implement cosine similarity search over embeddings, then explain why you would not ship it.
- Answer: How does a Vector Database work?
- Implement a minimal agent loop with tool dispatch, error handling and a step budget.
- Asked at: Cognition
- Answer: AI Agent Loop
Frontier AI Labs
Anthropic
Roles this covers: Member of Technical Staff (MTS), Software Engineer (product / infra / API-serving), Research Engineer, Research Scientist, Applied AI Engineer, Forward Deployed Engineer (Applied AI), Performance Engineer (inference & kernels), Product Engineer (Claude Code / Claude.ai).
Interview loop, as publicly reported: Recruiter screen (~30 min, substantive and failable) → CodeSignal-style or live coding assessment (~70–90 min, one practical problem in ~4 progressive levels) → virtual onsite of roughly five rounds: project deep-dive, one or two coding rounds, system design, and a dedicated values/culture round. Reported end-to-end: 3 weeks to ~2 months. Some MLE loops now include an AI-collaboration round where Claude is provided and you are graded on how you direct and verify it.
Also prepare: the common questions tagged Anthropic under LLM Internals and Architecture, Inference, Serving and GPU Performance, Agents and Tool Use, Evaluation and Observability, Safety, Security and Responsible AI, AI System Design, Coding and Data Structures.
Coding and Data Structures
- Build core business logic for a toy banking application: a spec that grows in four progressive levels against a black-box evaluator.
- Build an in-memory database: SET/GET/DELETE first, then filtered scans, then TTL with timestamps, then file compaction.
- Create a task scheduler.
- Build an OOP system for managing courses, grades and students.
- Given a helper method that crawls a URL, write a crawler over a domain: first synchronous, then make it async.
- Convert nested stack traces into discrete start and end events.
- Build a rate limiter. Every ten minutes I add a requirement: per-tenant limits, burst allowances, then a sliding window. How do you keep the code from collapsing?
- You need to run an LLM call over 50,000 documents. The API allows ~100 concurrent requests and occasionally returns 429s and timeouts. Write the Python.
- How would you parallelise this task? (Concurrency and data mutation come up repeatedly across rounds.)
- SQL: write a query to find the top five pairs of products most frequently purchased together.
- SQL: determine whether any user has overlapping subscription date ranges.
- SQL: return each employee's current salary after an ETL error inserted a new salary row every year.
LLM Internals and Architecture
- What are the key components of a Transformer model and why does each matter?
- Explain attention-free transformer architectures and their trade-offs.
- Walk me through matrix manipulations relevant to LLM architectures.
Inference, Serving and GPU Performance
- Design a batched inference system where 100 requests take the same time as 1.
- Answer: Continuous Batching in LLMs
- Design the serving stack for a Claude-scale LLM API. Maximise GPU utilisation without wrecking p99 latency.
- Answer: LLM Inference Optimization
Agents and Tool Use
- What matters more for an agentic coding tool like Claude Code: the model or the harness? Design the loop.
- Answer: How does Claude Code work? and Harness Engineering in AI
- Design the tool surface for a coding agent: which tools exist, what their schemas look like, and how results come back.
- Answer: How does Claude Code work?
Fine-Tuning, Post-Training and Alignment
- Explain Constitutional AI. What does it buy you over vanilla RLHF, and what doesn't it solve?
- How do scaling laws influence the safety evaluation of large models?
AI System Design
- Design the Claude chat service.
- Design a system that enables a large language model to handle multiple questions in a single thread.
- Design a distributed search system for 1 billion documents at 1 million QPS.
- Design APIs for developers to access Anthropic's models securely and efficiently.
- Design a file-sharing / distribution system.
Evaluation and Observability
- How would you design an experiment to test for a specific emergent capability or bias in a large language model?
Safety, Security and Responsible AI
- Your agent reads inbound email and can send replies and search internal docs. Walk me through the prompt-injection attack surface and your defences.
- Answer: Prompt Injection in LLMs
- What do you see as the most pressing unsolved problem in AI alignment?
- How would you balance performance optimisation with model interpretability?
- How would you approach designing a system to ensure the safe deployment of AI models in production?
Applied and Forward-Deployed Scenarios
- An enterprise customer says “Claude hallucinates too much” in their RAG-based knowledge assistant. You're the applied engineer on the account. What happens in the first 48 hours?
- How would you make complex AI research findings accessible to a non-technical audience?
Behavioral and Culture
- Walk me through a project you owned end to end. What were the key technical decisions?
- Why Anthropic specifically, and where do you disagree with Anthropic?
- Tell me about a technical misjudgement that delayed a project.
- What are your thoughts on AI safety and the risks of advanced AI systems?
OpenAI
Roles this covers: Member of Technical Staff, Software Engineer, Machine Learning Engineer, Research Engineer, Research Scientist, Applied AI Engineer, Forward Deployed Engineer, Solutions Architect, Data Scientist.
Interview loop, as publicly reported: Recruiter screen → technical screen (practical coding, often a build-something-real task rather than LeetCode) → onsite: two or three coding/practical rounds, a domain-depth or ML round, a system design round, and behavioural/mission-fit. Applied AI and FDE loops add a customer-scenario and solution-design round.
Also prepare: the common questions tagged OpenAI under LLM Internals and Architecture, Inference, Serving and GPU Performance, Agents and Tool Use, Fine-Tuning, Post-Training and Alignment, Evaluation and Observability, Safety, Security and Responsible AI, AI System Design, Coding and Data Structures.
Coding and Data Structures
- Design and implement an in-memory key-value store supporting set, transactional begin, commit and abort.
- Create a database ORM, step by step.
- Code a trivial web crawler using Go.
- Implement a UI from a mockup with provided CSS and API.
- Refactor bad code: here are ~120 lines of working but messy code with passing tests. Improve the architecture without breaking them. What do you change first?
- Write a Python function that displays the first n Fibonacci numbers.
- Infection-spread simulation.
ML and DL Fundamentals
- Compute the KL divergence given different random variables.
- If the accuracy of a classifier is 1, what is the lower/upper bound on the loss function for a single training example?
- Answer: Math Behind Cross-Entropy Loss
- We have two models, 85% and 82% accuracy. Which do you pick?
- How do you handle missing data in Pandas?
LLM Internals and Architecture
- Explain self-attention. What is its computational complexity, and what are your options when contexts get long?
- What is the relationship between cross-entropy, KL divergence and perplexity, and why is cross-entropy the training loss for language models?
- What is the effect of adjusting an LLM's context window size?
Agents and Tool Use
- You are building a production agent that calls tools (function calling). What makes the loop reliable enough to ship?
- Answer: How does Function Calling work in LLMs? and AI Agent Loop
AI System Design
- How would you build an LLM-powered enterprise search system?
- Design the serving stack for a ChatGPT-scale consumer assistant: hundreds of millions of weekly users, streaming chat, multiple model tiers.
- Design and build a webhook delivery system that reliably delivers events to customer-registered URLs.
- Design a system to schedule jobs in a distributed environment.
- Design an in-memory database. / Design Slack.
Evaluation and Observability
- A customer says “the model got worse” after you upgraded model versions in their deployment. How do you verify and respond?
- An enterprise customer reports that responses from your deployed system have gotten slow. Walk me through the diagnosis.
Safety, Security and Responsible AI
- How do you approach GenAI safety in consumer products?
- How would you design safeguards for an AI system that can take actions on behalf of a user?
Applied and Forward-Deployed Scenarios
- An enterprise customer says: “We want AI to automate our claims processing.” You're the engineer in the room. What do the first two weeks look like?
- Do you have experience working with APIs? Are you used to working with C-suite executives?
Behavioral and Culture
- What is your favourite product and why?
- Tell me about a time you made a mistake.
- Tell me about a time you had a conflict with someone. How did you resolve it and what did you learn?
- Tell me about a time you had conflicting priorities with stakeholders and how you secured alignment.
- What is the project you are most proud of?
Google DeepMind and Google AI
Roles this covers: Research Engineer, Research Scientist, Machine Learning Engineer, Software Engineer (ML), Forward Deployed Engineer, Applied AI Engineer (Google Cloud / Vertex AI), Data Scientist.
Interview loop, as publicly reported: Recruiter screen → technical phone screen (coding, sometimes ML fundamentals) → onsite: two coding rounds, an ML domain/breadth round, an ML system design round, and Googleyness/leadership. DeepMind Research Engineer loops add a research deep-dive plus maths/probability and a from-scratch implementation round; hiring committee and team matching follow.
Also prepare: the common questions tagged Google DeepMind under LLM Internals and Architecture, Inference, Serving and GPU Performance, AI System Design, Coding and Data Structures.
Coding and Data Structures
- You are receiving an unbounded stream of event IDs. Return the k most frequent IDs seen so far, at any point, with bounded memory.
- Closest key: given a dictionary with letter keys and lists of letters as values, find the closest key.
- Write a function to compute root-mean-square error given y_pred and y_true lists.
- Parse bigrams: extract two-word phrases from strings for NLP feature engineering.
ML and DL Fundamentals
- Define the bias-variance trade-off and discuss the relationship between the two.
- What are the assumptions of linear regression?
- Distinguish regularization from validation: when is each the right tool?
- Derive the gradient of cross-entropy loss with softmax inputs, and explain why we fuse them numerically.
- Explain the SVD and give two places it shows up in modern deep learning.
- On average, how many fair coin flips until you see two heads in a row? Walk me through it.
- When would you choose Q-learning over policy gradients, and vice versa?
- You have a binary loan-approval classifier and limited access to feature weights. How do you explain a rejection?
Fine-Tuning, Post-Training and Alignment
- Your pretraining loss suddenly diverges at step 300k of a long run. Diagnose and fix it.
- Design the training setup for a model that doesn't fit on one accelerator, say 70B parameters on a pod.
AI System Design
- Design the serving system for a multimodal assistant (text + image in, streaming text out) at hundreds of millions of users.
- Design a personalised recommendation system for rental listings using demographics, property metadata, amenities, price, reviews and location.
- Design a classifier that predicts the optimal moment to insert a commercial break in a video.
- How would you improve product search results, focusing on the fraction of relevant documents retrieved (recall)?
- Answer: Precision vs Recall
- Justify using a neural network for a given problem: what do you need to know about the network, dataset, timeline and business context?
Evaluation and Observability
- Build the evaluation harness for a new frontier model release. What does it need to do?
- Answer: LLM Evaluation
- Do 1 million Seattle ride trips suffice to build an accurate ETA prediction model? How would you decide?
Behavioral and Culture
- Tell me about a time you disagreed with a researcher or tech lead about priorities, and what happened.
Meta (Superintelligence Labs, FAIR, Llama)
Roles this covers: Machine Learning Engineer (E4–E7), Research Engineer, Research Scientist, AI Infrastructure Engineer, Software Engineer (ML), Applied Research Scientist.
Interview loop, as publicly reported: Recruiter screen → technical screen (2 coding problems in 45 min) → onsite: two coding rounds, one ML system design round, one ML domain/breadth round, and a behavioural (“Jedi”) round. Some 2026 loops now include an AI-assisted coding round in three stages: explore and fix issues, implement new functionality, extend and improve the system.
Also prepare: the common questions tagged Meta under LLM Internals and Architecture, Inference, Serving and GPU Performance, Multimodal, Speech and Voice AI, AI System Design.
Coding and Data Structures
- Given an array nums of n integers where n > 1, return an output array (product of array except self).
- Find the minimum window in S which will contain all the characters in T.
- Serialize and deserialize a binary tree.
- Convert a binary tree to a circular doubly linked list.
- Alien dictionary: determine character ordering from a sorted word list.
- K closest points to origin; top-k frequent elements; minimum number of conference rooms.
- Regular expression matching with '.' and '*'.
- Two-part warm-up: given a stream of user actions, return the k most engaged-with items. Then: why might your heap solution be the wrong choice in production?
ML and DL Fundamentals
- Your ads CTR model shows a 2% offline AUC gain, but the online A/B is revenue-neutral with worse calibration. What is going on, and what do you do?
LLM Internals and Architecture
- Explain the architectural choices in a Llama-class model: why grouped-query attention, RoPE and SwiGLU instead of the vanilla 2017 Transformer?
- What breaks when you scale LLM training from 8 GPUs to thousands, and how do modern stacks deal with it?
Inference, Serving and GPU Performance
- You need to serve a Llama-class 70B+ model to hundreds of millions of assistant users. What does the serving stack look like and where does the money go?
- Answer: LLM Inference Optimization
Agents and Tool Use
- You're dropped into an unfamiliar multi-file codebase with a failing behaviour and an LLM assistant available. Walk me through how you'd fix it.
Fine-Tuning, Post-Training and Alignment
- Walk me through a post-training recipe to turn a pretrained base model into a personalised assistant.
AI System Design
- Design the recommendation system for Instagram Reels.
- Design a personalised news-feed ranking system / the “next post” logic for Facebook's feed.
- Design a recommendation system for Facebook Ads, and an evaluation framework for ads ranking.
- Design the ML components behind an Instagram Story feature.
- Design an end-to-end classification pipeline for Marketplace listings.
- Design a language translation model / service.
Evaluation and Observability
- How would you build the evaluation system for a Meta AI assistant before and after each model release?
- Answer: LLM Evaluation
Safety, Security and Responsible AI
- Design the harmful-content detection system for Facebook and Instagram uploads.
Multimodal, Speech and Voice AI
- How do modern multimodal models get image and video understanding into an LLM, and what changes for video specifically?
- Answer: Multimodal AI
Behavioral and Culture
- Give me an example of a project where you used data and machine learning. What obstacles did you hit?
- Tell me about a time you drove a significant result through ambiguity, and a time you were wrong.
- Tell me about maintaining a production ML pipeline. Why Meta?
xAI
Roles this covers: Member of Technical Staff, AI Engineer, Infrastructure Engineer, Research Engineer, Product Engineer (Grok), Data / RL environments engineer.
Interview loop, as publicly reported: Fast, low-process loops. Typically a recruiter or hiring-manager screen → one or two live coding rounds heavy on data structures and systems → a practical build-something round (often a timed four-hour product build or a stubbed-out module in a real codebase) → founder/leadership conversation. Speed and raw shipping ability are weighted heavily.
Also prepare: the common questions tagged xAI under LLM Internals and Architecture, Inference, Serving and GPU Performance, AI System Design, Coding and Data Structures.
Coding and Data Structures
- Build an in-memory key-value store with SET/GET/DELETE, then add transactions with BEGIN/COMMIT/ROLLBACK, including nested transactions.
- Write an iterator class that lazily flattens an arbitrarily nested list of lists/integers: no generators, explicit state.
- Here is a scheduler class from a small LLM inference engine. One method, _admit_requests, is a stub: no spec, no docstring, no tests. Walk me through your first thirty minutes.
Inference, Serving and GPU Performance
- Estimate the KV-cache memory to serve a 70B-class model at 128k context. What do you do when it doesn't fit?
- Answer: What is KV Cache in LLMs? and KV Cache Compression
- Design a rate limiter for an LLM API where cost scales with tokens, not requests.
Fine-Tuning, Post-Training and Alignment
- You're training on tens of thousands of GPUs and hardware fails constantly. How do you keep goodput high?
- Loss spikes mid-run on a large pretraining job. Walk me through your debugging process.
- Design a deduplication pipeline for a web-scale pretraining corpus. It has to run as a streaming process.
AI System Design
- Design the serving stack for a consumer chatbot with real-time search over a social-media firehose.
Behavioral and Culture
- You have four hours to build and demo a working AI-powered product. How do you spend them?
Mistral AI
Roles this covers: Research Engineer, ML Engineer, Applied AI Engineer, Solutions Architect / Forward Deployed Engineer, Inference Engineer, Platform Engineer.
Interview loop, as publicly reported: Recruiter screen → technical screen (Python + ML fundamentals) → pair-programming round building a small LLM-backed service → deep-dive on transformer/serving internals → customer-scenario round for applied roles → culture/founders round. European enterprise and on-prem deployment context shows up throughout.
Also prepare: the common questions tagged Mistral AI under LLM Internals and Architecture, Inference, Serving and GPU Performance, Agents and Tool Use, Fine-Tuning, Post-Training and Alignment, Coding and Data Structures.
Coding and Data Structures
- Pair-programming: build a service that takes a user question, enriches it with data from a third-party API, and answers via a chat-model API. How do you structure it?
LLM Internals and Architecture
- Mistral 7B shipped with grouped-query attention and sliding-window attention. What does each buy you, and what does each cost?
- Ans