AIInterviewTraining logoAIInterview/Training

agents

AI, ML & GenAI interview questions tagged agents, across every topic.

58 questions · 2 unlocked for you

Concepts behind "agents"

The curriculum that explains the ideas these questions test.

Foundational
🤖 Retrieval & Agents
The RAG PipelineRetrieval-Augmented Generation anchors an LLM in outside knowledge: when a query arrives you pull the most relevant chunks from a knowledge base into the prompt, letting the model respond from actual sources rather than memory. This is the go-to remedy for hallucination and outdated knowledge, and refreshing it needs no retraining. Its stages are ingest and chunk, embed and index, retrieve (frequently rerank), then generate with citations. AI, ML, and GenAI interviews test it because RAG is the most common production LLM architecture.
Foundational
🤖 Retrieval & Agents
Agents and Tool UseAn agent is an LLM in a loop that can take actions through tools: it reasons, calls a tool (search, a database, code, an API), observes the result, and loops until finished. Tool calling works because the model emits a structured request that your code executes, the model itself never runs anything. The upside is doing real work; the cost is reliability and the safety surface (an agent that can act can act wrongly). Applied-AI interviews cover it because agents are where LLMs meet real systems.
Foundational
🛡️ AI Security, Privacy & Governance
Prompt InjectionPrompt injection ranks as the number one security risk for LLM apps: hostile instructions hijack the model's intended behavior. In direct injection the user supplies the payload; in indirect injection the payload sits inside content the model pulls in or browses (a web page, a document, an email), letting a third party do the attacking. RAG and agents are hit hardest because they consume untrusted content and agents can act. Your main defense is to handle every retrieved or tool output as untrusted data rather than instructions, backed by least privilege and human approval before irreversible actions.
Core
🤖 Retrieval & AgentsSign in
Function Calling and Tool SchemasTool use runs on a function-calling protocol: you declare each tool as a JSON schema, the model returns a structured call (name plus arguments) that your code checks and executes, and the result flows back into the conversation. Design is what's hard, not the wiring: how you write tool descriptions and shape results governs whether the model reaches for the correct tool with correct arguments, and pinning output to a schema can shave a measurable slice off accuracy. Applied-AI interviews test it because schema design is where most agents fail without anyone noticing.
Core
🤖 Retrieval & AgentsSign in
Model Context Protocol (MCP)MCP is an open client-server standard that connects an agent to external tools, data, and prompts through one uniform interface, so a single integration serves many hosts instead of bespoke glue written per model. Servers publish tools, resources, and prompts with typed schemas; clients discover and invoke them at runtime. Applied AI interviews test it because what usually keeps an agent from shipping is integration plumbing rather than model quality.
Advanced
🤖 Retrieval & Agents🔒 Premium
Agent Reliability and Long-Horizon RobustnessAgents over long horizons break down because per-step reliability multiplies: a step that works 95 percent of the time drops to roughly 60 percent across ten steps. The discipline spans consistent completion (not pass@k), recovering from errors, step and token budgets, human-in-the-loop checkpoints, and stopping cascading failure inside multi-agent systems. AI, ML, and GenAI engineer interviews test this to tell apart people who built a demo from people who shipped an agent that survives thousands of runs.