AI Interview Preparation
Practice the AI concepts engineers and architects are expected to explain clearly.
Topics
AI Fundamentals
Build the foundation behind modern AI.
10 questionsGenerative AI
Understand how models generate text, images, audio, and other content.
9 questionsTransformers
The attention-based architecture behind nearly every modern language model.
6 questionsPrompt Engineering
Learn how input design shapes model behavior and output quality.
9 questionsEmbeddings
Represent meaning as vectors so machines can compare and search by similarity.
5 questionsRAG
Learn how applications connect language models to external knowledge.
8 questionsAI Tools
Understand how models call external functions and tools to take action.
4 questionsAI Agents
Understand systems that use models, tools, planning, and memory to perform multi-step tasks.
10 questionsMCP
Learn the standard protocol for connecting AI models to tools and data sources.
5 questionsAI Engineering
Learn the engineering practices required to build reliable AI applications.
10 questionsAI Architecture
Understand how production AI systems are designed, scaled, secured, and operated.
8 questionsAI Application Development
Turn an existing application into an AI-enabled one — frontend, backend, and everything in between.
8 questionsData Engineering & GenAI
Move, process, and prepare the data that feeds AI pipelines.
7 questionsAI Data & Retrieval
The real-world implementation of embeddings, vector search, and RAG in production.
7 questionsAgents & AI Integration
The real-world frameworks and operational concerns behind production agent systems.
8 questionsCloud & AI Infrastructure
Where AI workloads actually run — cloud platforms, containers, and GPU infrastructure.
8 questionsProduction AI / LLMOps
Operate AI systems reliably once they’re live — evaluation, observability, cost, and deployment.
8 questionsAI Security & Governance
Build AI systems that protect data, models, users, and enterprise workflows.
10 questionsReal-World AI Stack
Who and what actually implements the concepts you’ve learned — providers, models, and tools.
6 questionsFeatured Questions
AI Interview Questions
AI Fundamentals
- AI
What is artificial intelligence?
AI Fundamentals · Beginner - Machine Learning
What is machine learning and how is it different from traditional programming?
AI Fundamentals · Beginner - Deep Learning
What is deep learning, and how does it relate to machine learning?
AI Fundamentals · Beginner - AI vs ML vs Deep Learning
How would you explain the difference between AI, machine learning, and deep learning?
AI Fundamentals · Beginner - Training
What is training, and why is it computationally expensive?
AI Fundamentals · Beginner - Inference
What is inference, and why does it matter as an engineering concern rather than just a machine learning concept?
AI Fundamentals · Beginner - Model
What is a model, and how is it different from training or inference?
AI Fundamentals · Beginner - Parameters
What are parameters, and why does parameter count matter when choosing a model?
AI Fundamentals · Beginner - Dataset
What is a dataset, and why is it split into training, validation, and test sets?
AI Fundamentals · Beginner - Neural Network
What is a neural network, and how does stacking layers give it the ability to represent complex patterns?
AI Fundamentals · Beginner
Generative AI
- Generative AI
What is generative AI?
Generative AI · Beginner - Foundation Models
What is a foundation model, and why did it change how AI applications get built?
Generative AI · Beginner - LLM
What is an LLM, and how does it generate text?
Generative AI · Beginner - Fine-Tuning
What is fine-tuning, and when would you use it instead of prompting or RAG?
Generative AI · Intermediate - Token
What is a token, and why does tokenization matter?
Generative AI · Beginner - Context Window
What is a context window, and why does it matter when building with LLMs?
Generative AI · Beginner - Temperature
What does temperature control in an LLM, and when would you change it?
Generative AI · Beginner - Hallucination
What is hallucination in the context of LLMs, and how would you reduce it in an application?
Generative AI · Beginner - Multimodal AI
What is multimodal AI, and how does a model handle different data types like text and images together?
Generative AI · Intermediate
Transformers
- Transformers
Why are transformers important for modern AI?
Transformers · Intermediate - Attention
How does attention work, conceptually?
Transformers · Intermediate - Self-Attention
What is self-attention, and how does it help a model resolve something like pronoun ambiguity?
Transformers · Intermediate - Encoder
What does an encoder do in a transformer, and how does it differ from a decoder?
Transformers · Intermediate - Decoder
How does a decoder generate a response, and why does that make streaming possible?
Transformers · Intermediate - Positional Encoding
Why do transformers need positional encoding, and what problem does it solve?
Transformers · Intermediate
Prompt Engineering
- Prompt
What is a prompt, and what actually determines whether a prompt produces a good result?
Prompt Engineering · Beginner - System Prompt
What is a system prompt, and what should and shouldn't go in one?
Prompt Engineering · Beginner - User Prompt
What is a user prompt, and why does it occupy a different trust level than the system prompt?
Prompt Engineering · Beginner - Zero-shot Prompting
What is zero-shot prompting, and when does it tend to fall short?
Prompt Engineering · Beginner - Few-shot Prompting
What is few-shot prompting, and how would you choose good examples for it?
Prompt Engineering · Beginner - Chain-of-Thought Prompting
What is chain-of-thought prompting, and why does it sometimes improve results?
Prompt Engineering · Intermediate - Prompt Templates
What is a prompt template, and why use one instead of building prompts ad hoc in code?
Prompt Engineering · Intermediate - Structured Output
What is structured output, and why would you use it over free-form text?
Prompt Engineering · Intermediate - Prompt Injection
What is prompt injection, and how would you defend a RAG or agent system against it?
Prompt Engineering · Advanced
Embeddings
- Embeddings
What is an embedding, and why is it useful?
Embeddings · Intermediate - Vector
What is a vector, and how does it relate to an embedding?
Embeddings · Beginner - Semantic Similarity
What is semantic similarity, and how is cosine similarity used to measure it?
Embeddings · Intermediate - Vector Search
What is vector search, and how is it different from keyword search?
Embeddings · Intermediate - Vector Database
What is a vector database, and how is it different from a traditional database?
Embeddings · Intermediate
RAG
- RAG
What is RAG and why would you use it?
RAG · Intermediate - Chunking
How would you choose chunk size for a RAG system?
RAG · Intermediate - Retrieval
What is retrieval, and how is it different from generation?
RAG · Intermediate - Query Transformation
What is query transformation, and why might a raw user query retrieve poorly?
RAG · Advanced - Reranking
Why would you add a reranking step to a RAG system?
RAG · Advanced - Metadata
What is metadata filtering in a RAG system, and why is it important for access control?
RAG · Intermediate - Hybrid Search
What is hybrid search, and why would you combine vector and keyword search instead of using just one?
RAG · Intermediate - RAG Evaluation
How would you evaluate whether a RAG system is actually working well?
RAG · Advanced
AI Tools
- Function Calling
What is function calling, and who actually executes the function?
AI Tools · Intermediate - Tool Calling
What is tool calling, and how does it relate to function calling?
AI Tools · Intermediate - Tool Schema
What is a tool schema, and why does its quality directly affect how reliably a model uses tools?
AI Tools · Intermediate - API Tools
How would you design an API tool for an LLM, and what does the wrapper need to handle?
AI Tools · Intermediate
AI Agents
- AI Agents
What is an AI agent?
AI Agents · Intermediate - Agentic AI
What is agentic AI, and how does it differ from a simple LLM application?
AI Agents · Advanced - Agent Loop
What is the agent loop, and why does an agent need one instead of a single model call?
AI Agents · Intermediate - Planning
What is planning in an AI agent, and how does it differ from the agent loop?
AI Agents · Intermediate - Tool Use
What is tool use, and how does an agent decide which tool to select?
AI Agents · Intermediate - AI Memory
What is the difference between a context window and memory?
AI Agents · Intermediate - Reflection
What is reflection in an agent system, and what are its limits?
AI Agents · Advanced - Human-in-the-Loop
What is human-in-the-loop, and when would you require it for an agent?
AI Agents · Intermediate - Multi-Agent Systems
When would you use a multi-agent system instead of a single agent, and what does it cost you?
AI Agents · Advanced - Agent Orchestration
What is agent orchestration, and when do you actually need it?
AI Agents · Advanced
MCP
- MCP
What is MCP, and what problem does it solve?
MCP · Intermediate - MCP Client
What does an MCP client do, and how does it change how an agent connects to new tool providers?
MCP · Intermediate - MCP Server
What is an MCP server, and what is it responsible for?
MCP · Intermediate - MCP Tools
What are MCP tools, and how does their discovery differ from tools defined directly in an agent's own configuration?
MCP · Intermediate - MCP Resources
What is an MCP resource, and how is it different from an MCP tool?
MCP · Intermediate
AI Engineering
- AI Application Architecture
How does the architecture of an AI-powered application differ from a traditional CRUD application?
AI Engineering · Intermediate - LLM Gateway
What are the core responsibilities of an LLM gateway, and how do you implement retries and fallback?
AI Engineering · Intermediate - Streaming
What is streaming, and what does it actually improve compared to a standard request/response call?
AI Engineering · Beginner - Caching
What can you cache in an LLM application, and what's the risk with semantic caching specifically?
AI Engineering · Beginner - Rate Limiting
How would you design rate limiting for an AI application that calls an external model provider?
AI Engineering · Beginner - Observability
How would you design observability for a production RAG or agent system?
AI Engineering · Intermediate - Evaluation
How would you build an evaluation process for an AI system, and why is it necessary?
AI Engineering · Intermediate - Guardrails
What are guardrails, and why can't you rely on the model alone to stay within acceptable bounds?
AI Engineering · Intermediate - Cost Optimization
How would you reduce the cost of running an AI application without significantly hurting quality?
AI Engineering · Intermediate - AI Security
What engineering controls would you actually implement to secure an AI application that uses tools and retrieval?
AI Engineering · Advanced
AI Architecture
- ChatGPT-like Architecture
How would you architect a production chat-based AI product, and what does the backend need to own beyond just calling the model?
AI Architecture · Advanced - RAG Architecture
How would you design a production RAG system for an enterprise knowledge base?
AI Architecture · Advanced - Agent Architecture
How would you architect a production agent system, and what would you put in place to keep it safe and bounded?
AI Architecture · Advanced - AI Gateway Architecture
How would you design an AI Gateway, and when would you actually introduce one?
AI Architecture · Advanced - Multi-Tenant AI Architecture
How would you design tenant isolation in a multi-tenant RAG or AI system?
AI Architecture · Advanced - Scalable AI Architecture
How would you scale an AI application as request volume grows?
AI Architecture · Advanced - AI Security Architecture
How would you design the security architecture for a system where an LLM can read retrieved documents and call tools?
AI Architecture · Advanced - AI Data Architecture
How would you design a data architecture that supports RAG and other AI features across an organization?
AI Architecture · Advanced
AI Application Development
- React & GenAI
How would you handle a user cancelling an AI response while it’s still streaming?
AI Application Development · Intermediate - Next.js & GenAI
Why shouldn’t a model provider’s API key ever be called directly from the browser?
AI Application Development · Intermediate - Node.js & GenAI
Why is Node.js often used for the backend layer of an AI application?
AI Application Development · Intermediate - Python & GenAI
If your main application is built in Java or Node, why might you still use Python for the AI layer?
AI Application Development · Intermediate - API Design for AI
How is designing an API for an LLM endpoint different from a typical CRUD REST API?
AI Application Development · Intermediate - AI UX Patterns
Why do most AI chat interfaces show a “searching” or “thinking” indicator instead of a plain loading spinner?
AI Application Development · Intermediate - AI Chat Interfaces
How would you handle a conversation that grows longer than the model’s context window?
AI Application Development · Intermediate - Authentication for AI Applications
Why does authentication matter more for an AI feature than for a typical CRUD feature?
AI Application Development · Intermediate
Data Engineering & GenAI
- Kafka & GenAI
Why would you put Kafka between an event source and an AI service, rather than calling the AI service directly?
Data Engineering & GenAI · Intermediate - Spark & GenAI
Why would you use Spark instead of just calling an embedding API in a loop?
Data Engineering & GenAI · Intermediate - ETL / ELT for AI
How does preparing data for RAG differ from preparing data for a traditional data warehouse?
Data Engineering & GenAI · Intermediate - Snowflake & GenAI
When would you have a model query Snowflake directly instead of relying on RAG over documents?
Data Engineering & GenAI · Intermediate - Databricks & GenAI
What role does a platform like Databricks play in an AI system, compared to the model provider itself?
Data Engineering & GenAI · Intermediate - PostgreSQL & GenAI
When would you use pgvector instead of a dedicated vector database like Pinecone?
Data Engineering & GenAI · Intermediate - Document Pipelines for AI
Why can’t you just chunk a PDF directly without a separate extraction step?
Data Engineering & GenAI · Intermediate
AI Data & Retrieval
- Embeddings in Production
What happens if you switch embedding models but don’t re-embed your existing documents?
AI Data & Retrieval · Intermediate - Vector Databases in Production
What factors would actually drive your choice of vector database for a new RAG project?
AI Data & Retrieval · Intermediate - RAG Pipelines in Production
What’s the difference between a RAG demo and a production RAG pipeline?
AI Data & Retrieval · Advanced - Metadata Filtering in Retrieval
Why isn’t similarity score alone enough to decide what a RAG system retrieves?
AI Data & Retrieval · Intermediate - Hybrid Search Infrastructure
Why can’t you just average a vector similarity score and a keyword relevance score to combine them?
AI Data & Retrieval · Advanced - Semantic Search Applications
Why might an e-commerce search need more than plain vector similarity to work well?
AI Data & Retrieval · Intermediate - Document Ingestion for RAG
What happens to a RAG system’s answers if ingestion silently stops running?
AI Data & Retrieval · Intermediate
Agents & AI Integration
- Agent Frameworks Overview
What does an agent framework actually give you that hand-rolling an agent loop doesn’t?
Agents & AI Integration · Intermediate - Agent State Management
Why does an agent need explicit, persisted state rather than just passing messages along?
Agents & AI Integration · Advanced - Agent Memory in Production
How would you decide what an agent should actually remember across sessions?
Agents & AI Integration · Advanced - Multi-Agent Orchestration Tools
What real problem does a multi-agent orchestration tool solve that a single, larger agent doesn’t?
Agents & AI Integration · Advanced - Human-in-the-Loop in Production
What happens if no one responds to an agent’s approval request?
Agents & AI Integration · Intermediate - Agent Evaluation
Why is evaluating an agent harder than evaluating a single prompt?
Agents & AI Integration · Advanced - Agent Observability
An agent produces a wrong answer in production. How would you debug it?
Agents & AI Integration · Advanced - Workflow Orchestration for AI
Why is retrying a failed step in an AI workflow riskier than retrying a normal application step?
Agents & AI Integration · Advanced
Cloud & AI Infrastructure
- AWS & GenAI
When would you choose Bedrock over SageMaker for an AI feature on AWS?
Cloud & AI Infrastructure · Intermediate - Azure & GenAI
Why might an enterprise choose Azure OpenAI Service over calling OpenAI’s API directly?
Cloud & AI Infrastructure · Intermediate - Google Cloud & GenAI
What advantage does Vertex AI offer beyond just calling the Gemini API directly?
Cloud & AI Infrastructure · Intermediate - Kubernetes for AI
Why doesn’t standard CPU-based autoscaling work well for a self-hosted model on Kubernetes?
Cloud & AI Infrastructure · Advanced - EKS & GenAI
How would you deploy a scalable AI service on EKS?
Cloud & AI Infrastructure · Advanced - GPU Infrastructure for AI
Why does request batching matter for GPU inference specifically?
Cloud & AI Infrastructure · Advanced - Model Gateways in Production
What would you actually lose by writing your own provider-switching logic instead of using a tool like LiteLLM?
Cloud & AI Infrastructure · Intermediate - Scaling AI Workloads
You’ve autoscaled your API layer to handle 10x traffic, but response times are still degrading. What’s the likely bottleneck?
Cloud & AI Infrastructure · Advanced
Production AI / LLMOps
- LLMOps Fundamentals
How is LLMOps different from traditional MLOps?
Production AI / LLMOps · Intermediate - Prompt Evaluation
Why isn’t trying a new prompt a few times and reading the outputs a sufficient way to validate it?
Production AI / LLMOps · Intermediate - Model Evaluation in Production
A model that passed evaluation at launch is producing worse answers three months later. What could explain that?
Production AI / LLMOps · Advanced - LLM Observability Tools
Why do teams use a dedicated LLM observability tool instead of their existing application logging?
Production AI / LLMOps · Intermediate - Cost Monitoring for AI
Your model provider bill doubled this month. How would you figure out why?
Production AI / LLMOps · Intermediate - Reliability & Fallbacks for AI Systems
How would you design an AI feature to stay available during a model provider outage?
Production AI / LLMOps · Advanced - Prompt & Model Versioning
A prompt change caused a regression in production. How does versioning help you respond?
Production AI / LLMOps · Intermediate - CI/CD for GenAI
Why can’t you use a standard unit-testing approach — exact output matching — for a GenAI CI pipeline?
Production AI / LLMOps · Advanced
AI Security & Governance
- GenAI Security Fundamentals
Why is GenAI security considered fundamentally different from traditional application security?
AI Security & Governance · Intermediate - Jailbreaks & Adversarial Inputs
How is a jailbreak different from a prompt injection attack?
AI Security & Governance · Advanced - RAG Security
Why not simply store embeddings in PostgreSQL without any additional access controls?
AI Security & Governance · Advanced - Agent Security
What’s the single biggest security risk specific to giving an LLM agent tool access?
AI Security & Governance · Advanced - Data Leakage & PII Protection
Where in an AI pipeline can personal data leak, beyond the obvious risk of sending it to a model provider?
AI Security & Governance · Advanced - AI Access Control & Identity
Why does an internal service calling your AI gateway need its own identity, separate from the end user’s?
AI Security & Governance · Advanced - AI Supply Chain Security
What’s different about supply chain security for an AI system compared to a typical software supply chain?
AI Security & Governance · Advanced - AI Red Teaming
Why does red teaming need to be an ongoing practice rather than a one-time pre-launch exercise?
AI Security & Governance · Advanced - AI Governance & Compliance
What does “AI governance” actually mean in an enterprise setting, beyond general security practices?
AI Security & Governance · Intermediate - Responsible AI
How is responsible AI different from AI security?
AI Security & Governance · Intermediate
Real-World AI Stack
- Understanding AI Providers
Why does it matter whether a company is a "model provider" versus a "cloud platform" in an AI architecture discussion?
Real-World AI Stack · Beginner - Model Families Explained
Why is it better to design around a "model family and tier" rather than a specific model version string?
Real-World AI Stack · Beginner - The Vector Database Landscape
When would you choose pgvector over a purpose-built vector database like Pinecone?
Real-World AI Stack · Intermediate - AI Gateways Explained
What problem does an AI gateway solve that a direct API integration with one provider doesn’t?
Real-World AI Stack · Intermediate - AI Observability Tools
Why do LLM applications often need AI-specific observability tools instead of relying only on general application monitoring?
Real-World AI Stack · Intermediate - The Real-World AI Stack
How would you describe the layers of a real-world AI system to someone who only knows "call the model API"?
Real-World AI Stack · Intermediate
How to use this section
Pick a concept
Think through your answer
Reveal the explanation
Review the lesson
Practice follow-ups