AI-103 study notes · 30–35% of the exam
Implement generative AI and agentic solutions
First draft for review. Check details against Microsoft Learn before relying on them.
What this area covers
The heaviest AI-103 area. It covers building generative apps and agents in Microsoft Foundry, from RAG to multi-agent orchestration, then evaluating and operating them.
Key concepts
Generative apps
- Deploy and call models through the Foundry SDKs or OpenAI-compatible endpoints. Connect the app to a project with its endpoint and Entra auth.
- RAG: chunk the content, embed it, index it (vector or hybrid), retrieve the top-k results, then build a prompt from the retrieved context and ask the model to cite it. Tune chunk size, overlap and filters.
- Workflows: tool-augmented flows, multistep reasoning, prompt chaining and routing.
- Evaluation: groundedness (fabrication detection), relevance, coherence and fluency, plus safety evaluators. Run evaluations on test datasets before and after changes.
Agents
- Define each agent's instructions (role and goal), tools (file search, code interpreter, functions, OpenAPI, MCP, search) and conversation state (threads).
- Function calling: the model returns arguments, your code runs the function, and you return the result for the model to use.
- Multi-agent: an orchestrator delegates to specialist agents (connected agents or workflows). Keep each agent's tools narrow.
- Autonomy with safeguards: human-in-the-loop approval before high-impact actions, limits on steps and spend, and tracing for every run.
Optimise and operate
- Tuning: prompt engineering, plus parameters such as
temperatureandtop_pfor randomness andmax_tokensfor length. Use structured outputs (a JSON schema) for reliable parsing. - Reflection and self-critique: ask the model to check its answer against the sources before replying.
- Observability: OpenTelemetry tracing, token analytics and safety events in Application Insights.
- Orchestrate multiple models: route simple requests to small models and hard ones to large models, or combine an LLM with a rules engine.
Exam tips
- If answers must come only from company documents with citations, use RAG with groundedness evaluation.
- If an agent must look up live order status, give it a function or OpenAPI tool. Don't paste the data into the prompt.
- If output needs to be consistent JSON, use structured outputs with a schema and a low temperature.