2026-2027 AI Engineer Interview Matrix • 8 Areas x 20 Concepts

AI Engineer Visual Cheatsheets & 160-Concept Matrix

Every core concept tested by Google, OpenAI, Anthropic, Meta, and top enterprise AI teams—paired with Big Tech interview traps, 17 ML algorithm trade-offs, 5 2026-2027 RAG architectures, and production AI coding agent repo templates.

Your Mastery0%
0 / 160

Tick off concepts below as you drill them in the 6-Month Roadmap.

Deck:
AREA 01 / 08 • LLM

LLM Foundations & Fine-Tuning

Tokenization, attention mechanics, structured outputs, reasoning models, LoRA & quantization.

0 / 20 Mastered

Subword BPE/tiktoken encoding maps text into integer IDs; explains character-counting & arithmetic quirks.

Interview Trap: Thinking models see characters or words instead of subword token IDs.

Decoder-only causal stack of Pre-Norm RMSNorm, Multi-Head/GQA Attention, and SwiGLU MLP blocks.

Interview Trap: Confusing encoder-only BERT with causal decoder-only GPT/Llama/Claude architectures.

Softmax(QK^T / sqrt(d_k))V scales dot products by sqrt(d_k) to prevent softmax saturation & vanishing gradients.

Interview Trap: Forgetting the 1/sqrt(d_k) variance proof or O(N^2) sequence complexity.

Effective usable context vs advertised max window; long prompts suffer "lost in the middle" attention decay.

Interview Trap: Assuming 1M context replaces RAG without hurting latency, cost, or needle recall.

Caches past Key/Value tensors during autoregressive decode so O(N^2) work drops to O(N) per step.

Interview Trap: Ignoring KV cache VRAM growth across batch size x layers x heads x seq_len.

Temperature scales logits before softmax; top-p (nucleus) truncates cumulative probability mass.

Interview Trap: Assuming temperature=0 guarantees 100% determinism across distributed GPU FP16 kernels.

Top-priority instruction hierarchy defining persona, XML boundaries, schemas, and negative constraints.

Interview Trap: Mixing untrusted user text with system directives without XML/tag isolation.

3-5 diverse edge-case input/output examples activate in-context patterns and cut schema errors by >90%.

Interview Trap: Adding 20 repetitive easy examples that bloat prefill tokens without covering edge cases.

Emitting intermediate reasoning tokens allocates inference-time compute before committing to final tokens.

Interview Trap: Expecting zero-shot single-token answers on multi-step math or code diff tasks.

Test-time compute models (o-series, DeepSeek-R1, Claude thinking) trained via RL on verifiable reasoning.

Interview Trap: Routing simple classification or boilerplate tasks to expensive high-latency reasoning models.

Constrained decoding (JSON Schema / CFG / Pydantic) guarantees 100% syntactically valid payloads.

Interview Trap: Prompting "return JSON" without constrained decoding or Pydantic retry validation.

Reuses KV states of identical long system prefixes and tool schemas for 50-90% input cost & TTFT savings.

Interview Trap: Putting dynamic timestamps or user IDs at the very top of the prompt, busting the prefix cache.

Asymmetric 3x-6x output-to-input token cost dictates concise responses, routing, and context trimming.

Interview Trap: Ignoring output token multipliers when estimating TCO for verbose agent traces.

Fluent fabrication caused by parametric memory guessing, weak retrieval, or missing abstention rules.

Interview Trap: Trying to prompt away hallucinations without retrieval grounding and explicit NOT_FOUND fallbacks.

Native vision, audio, and PDF page embeddings allow VLMs to read charts/tables without brittle OCR.

Interview Trap: Converting rich PDF diagrams into plain text OCR and losing visual layout relationships.

Freezes base weights W0 and trains low-rank B*A (B=0 init), mergeable for zero inference latency.

Interview Trap: Using fine-tuning to store rapidly changing facts instead of teaching format, style, or tool syntax.

4-bit NormalFloat (NF4) base weights + double quantization + paged optimizers fit 70B tuning on 48GB GPU.

Interview Trap: Forgetting that QLoRA dequantizes to BF16 during compute, trading speed for massive VRAM savings.

FP8, AWQ, GPTQ, and GGUF shrink weight memory 2x-4x so memory-bandwidth-bound decode runs faster.

Interview Trap: Quantizing sensitive activations/outliers naively without activation-aware scaling (AWQ).

Trains fast 3B-8B student models on verified frontier teacher reasoning traces and synthetic pairs.

Interview Trap: Distilling noisy unverified teacher outputs without golden-dataset decontamination.

Trade-off between frontier capability/zero-ops APIs and VPC data sovereignty + TCO crossover at scale.

Interview Trap: Self-hosting GPUs at 5k req/month where idle GPU baseline costs exceed API bills.

Ready to test this matrix in real company interviews?

Jump from high-speed concept review straight into 20 simulated multi-round AI Engineer hiring loops or the 24-week hands-on curriculum.

160-Concept AI Engineer Cheatsheet Matrix, 17 ML Algorithms & 2027 RAG Blueprints · DataArena