Back to Prep Library
Category Blueprint

AI Engineering Interview Library

Prompting, RAG pipelines, tool-calling agents & LLM app engineering

Questions60
Views36.0k
Upvotes2.5k
Filter

Question Catalog

(60 visible)
AI Engineering· AI Engineering

What is a Large Language Model and how does it generate text?

1.1k65
easy
AI Engineering· AI Engineering

What are embeddings and what are they used for?

97375
easy
AI Engineering· AI Engineering

What belongs in the system prompt versus the user message?

79478
easy
AI Engineering· AI Engineering

What is a vector database and when do you actually need one?

78510
easy
AI Engineering· AI Engineering

What is RAG and why use it instead of fine-tuning for knowledge?

60068
easy
AI Engineering· AI Engineering

What are tokens and why do they matter for cost and limits?

54062
easy
AI Engineering· AI Engineering

What are evals and why does every LLM feature need them?

49329
easy
AI Engineering· AI Engineering

What are hallucinations and what causes them?

3037
easy
AI Engineering· AI Engineering

What is the difference between zero-shot, one-shot and few-shot prompting?

19132
easy
AI Engineering· AI Engineering

What is a context window and what happens when you exceed it?

17234
easy
AI Engineering· AI Engineering

How do you choose the right model for a task?

11057
easy
AI Engineering· AI Engineering

When should you use batch APIs instead of real-time LLM calls?

10767
easy
AI Engineering· AI Engineering

How do you build resilient LLM calls with rate limits, retries and fallbacks?

1.2k60
medium
AI Engineering· AI Engineering

How does streaming work in LLM APIs and why does it matter for UX?

1.1k7
medium
AI Engineering· AI Engineering

What is the difference between a base model, an instruction-tuned model and a chat model?

1.1k65
medium
AI Engineering· AI Engineering

How do you get reliable structured JSON output from an LLM?

1.1k33
medium
AI Engineering· AI Engineering

How do you build a golden dataset for evaluating an LLM feature?

1.1k25
medium
AI Engineering· AI Engineering

What is the Model Context Protocol (MCP) and what problem does it solve?

98117
medium
AI Engineering· AI Engineering

When do you use code-based graders versus model-based graders?

96917
medium
AI Engineering· AI Engineering

How do multimodal models handle images, audio and other non-text inputs?

8713
medium
AI Engineering· AI Engineering

What is the difference between fine-tuning, LoRA and prompt engineering?

84070
medium
AI Engineering· AI Engineering

How do you estimate and control LLM costs in production?

83178
medium
AI Engineering· AI Engineering

How does similarity search work — cosine, dot product and Euclidean?

79311
medium
AI Engineering· AI Engineering

How do you manage conversations that outgrow the context window?

77180
medium
AI Engineering· AI Engineering

How do temperature, top-p and other sampling parameters affect output?

72248
medium
AI Engineering· AI Engineering

How do you design human-in-the-loop approval for agent actions?

70565
medium
AI Engineering· AI Engineering

What chunking strategies exist and how does chunk size affect RAG quality?

61571
medium
AI Engineering· AI Engineering

What is prompt caching and how does it reduce cost and latency?

59916
medium
AI Engineering· AI Engineering

What is context engineering and how does it differ from prompt engineering?

57133
medium
AI Engineering· AI Engineering

What is an AI agent and how does the agent loop work?

54510
medium
AI Engineering· AI Engineering

What is chain-of-thought prompting and when does it actually help?

48161
medium
AI Engineering· AI Engineering

How do you choose between open-weight models and proprietary API models?

46955
medium
AI Engineering· AI Engineering

How do you reduce hallucinations in a production LLM application?

46329
medium
AI Engineering· AI Engineering

What is reranking and why add it after retrieval?

44225
medium
AI Engineering· AI Engineering

How do you design good tool definitions for an LLM?

38241
medium
AI Engineering· AI Engineering

What is LLM-as-judge and what are its known biases?

32420
medium
AI Engineering· AI Engineering

How do you scope retrieval with metadata filtering and multi-tenancy?

32217
medium
AI Engineering· AI Engineering

How do you handle PII and sensitive data when calling LLM APIs?

31422
medium
AI Engineering· AI Engineering

What is hybrid search and why combine BM25 with vector search?

22649
medium
AI Engineering· AI Engineering

What are guardrails and how do you implement them around a model?

15544
medium
AI Engineering· AI Engineering

How do you catch regressions when changing a prompt or upgrading a model?

14116
medium
AI Engineering· AI Engineering

How does function calling (tool use) work under the hood?

12758
medium
AI Engineering· AI Engineering

What is the ReAct pattern and why did it become the default for agents?

6665
medium
AI Engineering· AI Engineering

What should you log and trace in an LLM application?

4178
medium
AI Engineering· AI Engineering

How should an agent handle tool errors, timeouts and retries?

1.2k79
hard
AI Engineering· AI Engineering

How do you sandbox an agent and enforce least-privilege tool access?

1.2k29
hard
AI Engineering· AI Engineering

How do you evaluate a RAG pipeline end to end?

1.0k66
hard
AI Engineering· AI Engineering

What is semantic caching and when is it safe to use?

95462
hard
AI Engineering· AI Engineering

When should you split work across multiple agents instead of one?

94759
hard
AI Engineering· AI Engineering

How do you evaluate and debug agent trajectories?

87469
hard
AI Engineering· AI Engineering

Why are BLEU and ROUGE poor metrics for LLM outputs, and what replaced them?

76516
hard
AI Engineering· AI Engineering

How do you version, test and safely roll out prompt changes?

6616
hard
AI Engineering· AI Engineering

What are common RAG failure modes and how do you debug them?

56256
hard
AI Engineering· AI Engineering

What is prompt injection and how do you defend against it?

56050
hard
AI Engineering· AI Engineering

How do you validate and repair structured LLM output at runtime?

48057
hard
AI Engineering· AI Engineering

How do you monitor LLM quality drift in production?

3471
hard
AI Engineering· AI Engineering

What techniques reduce LLM latency at each stage of a request?

24113
hard
AI Engineering· AI Engineering

What is quantization and when would you use a quantized model?

23636
hard
AI Engineering· AI Engineering

What is red-teaming an LLM application and how is it done?

17819
hard
AI Engineering· AI Engineering

How do agents maintain memory across steps and sessions?

1149
hard

Difficulty Distribution

Easy12 (20%)
Medium32 (53%)
Hard16 (27%)

Tested Topics

#evals#agents#rag#reliability#cost#security#fundamentals#prompting

Study Guide

Master prompt/context engineering, embeddings + RAG retrieval pipelines, tool-calling agent loops, eval design (LLM-as-judge, golden sets), and production concerns: streaming, caching, cost and guardrails.