AI Engineering questions
Explore 35 questions across seven topics. Each card has a starting point, and each topic has a small Python example. Worked answers and follow-up questions are in MCP.
Topics
Python and APIs
Validate a service response, handle errors and limit concurrent requests.
- How do you validate a model response in JSON?
- Why is testing an AI service with successful responses alone insufficient?
- What happens when a request to an AI service times out?
- What does async speed up when the application waits for a model?
- What does a semaphore limit when calling a model?
How a model works
Trace text to a prediction and see what changes during training.
- How does a token differ from a word?
- How does training differ from running a trained model?
- What is an embedding, and why compare vectors?
- What does loss measure, and what does it leave unanswered?
- Why does a model need padding and an attention mask?
Data and honest evaluation
Your first AI application
Build a model request and decide whether its answer is usable.
- What makes up a request to an LLM application?
- Why does low temperature not guarantee truth?
- When is prompting enough, and when do you need RAG or fine-tuning?
- Why was an answer cut off, and how do you distinguish completion from a limit?
- Why pin model versions and record the surrounding configuration?
Retrieval and RAG
Find the right passage and provide it to the model with its source.
- Which stages make up a RAG system?
- Why is there no single best chunk size?
- When should you compare lexical, vector and hybrid search?
- How does reranking differ from first-stage retrieval?
- How do you calculate Recall@k with several relevant sources?
Evaluating quality
Locate a failure and test an improvement on new cases.
- How do you separate retrieval failures from answer failures?
- What belongs in an evaluation question set?
- How do you check whether a citation supports an answer?
- Can another LLM grade the answers?
- Why does one successful agent run tell you little?
Tools, agents and MCP
Validate arguments, bound an assistant’s steps and retry an action safely.
- How does a predefined workflow differ from an agent?
- What belongs in a tool contract?
- How can you stop an agent that keeps going in circles?
- What if a tool times out after a write?
- What does MCP standardize, and what remains the application's job?