‹ All AI-103 questions

AI-103 Practice Question 26: Fine Tuning Versus RAG

Microsoft Azure AI Apps and Agents Developer Associate (AI-103) · Test 3 · question 6 of 10

Implement generative AI and agentic solutionshard

A legal team's drafting assistant has two distinct problems. First, it must quote clause language from a precedent library that is amended most weeks. Second, every output must follow the firm's house memo structure (fixed headings, a defined citation style, a particular register), and the twelve few-shot examples currently pinned in the system message still produce drift, while pushing prompt cost and latency up on every single request.

What should the team do?

Select one answer
Show answer and explanation

Answer:

  • C. Keep retrieval over the precedent library, and fine-tune the model on formatted memo examples so the few-shot block can be removed from the prompt

The two problems need two different tools. Volatile, private knowledge belongs in retrieval, which sees an amendment the moment it is indexed. Consistent style, tone, register and output format are what fine-tuning is for: Microsoft lists "modifying style and tone" and "generating outputs in specific formats or schemas" among the canonical fine-tuning use cases, and calls out "reducing prompt engineering overhead" (few-shot examples that grow until they drive up token counts and latency) as the classic trigger. Baking the examples into the weights removes them from every request.

- A is wrong because it fine-tunes on the wrong half. Training on the precedent library freezes clause text into weights that go stale at the next amendment, while the expensive few-shot block stays in the prompt. - B is wrong for the same reason, made worse: Microsoft explicitly warns that fine-tuning "may need to be repeated whenever the data is updated," and a weekly retrain-and-redeploy cycle to chase a document set is the cost that retrieval exists to avoid. - D is wrong because a bigger context window makes the per-request cost worse, not better, and stuffing an entire amended library into every prompt neither guarantees the right clause is attended to nor fixes the format drift.

Reference: Microsoft Foundry fine-tuning considerations

Practice Test 3 ›

Study guides for AI-103

AI engineer roadmap 2026: skills, certs and the orderAI engineer roadmap for 2026: skills to learn in order, AI engineer vs ML engineer, which certifications fit each stage, and what to skip.
AI-200 exam guide: Azure AI Cloud Developer AssociateAI-200 replaced AZ-204: what the Azure AI Cloud Developer exam tests, how it differs from AI-103, price in USD and INR, format and how to prepare.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
AI-901 exam guide: Azure AI Fundamentals after AI-900AI-901 replaced AI-900: learn what changed, how much Python and Microsoft Foundry you need, exam costs in India, and how to prepare.
Best AI certifications 2026: AWS, Google, Microsoft, ClaudeThe best AI certifications in 2026 from AWS, Google, Microsoft, Claude and Databricks, by level, with price, status and which one to take first.
Microsoft AI certification path 2026: which exam firstMicrosoft AI certification path for 2026 - AI-901, AB-730, AI-103, AI-200, AI-300, AB-100, AI-500 and GH-300 by role, and which exam to take first.
AI-103 Certification Guide: What Changed From AI-102The AI-103 certification replaced AI-102 in 2026. Exam format, cost, the five skill domains, what changed and how to prepare, with free practice questions.
What Is RAG? How Retrieval-Augmented Generation WorksWhat RAG is and how it works: chunking, embeddings, vector search, hybrid search, reranking, GraphRAG and agentic RAG on AWS, Google and Azure.
Prompt engineering vs RAG vs fine-tuningWhen to use prompt engineering, retrieval-augmented generation, fine-tuning or continued pre-training, compared on cost, freshness, hallucination and privacy.