‹ All AI-103 questions

AI-103 Practice Question 55: Stateful Agent Conversations

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

Implement generative AI and agentic solutionsmedium

A multi-turn support app calls the Chat Completions API directly. On every new user turn, the app reloads the entire prior transcript from its own database and resends it as the messages array. A bug in that reload logic once dropped the earliest turns, and the model answered as if the conversation had just started. The team wants the platform itself to own conversation history across turns, instead of the app reassembling it on every call.

What should they do?

Select one answer
Show answer and explanation

Answer:

  • C. Move the app onto Foundry Agent Service and reference the same conversation object on each turn, letting the service persist input and output items server-side

Foundry Agent Service is built around conversations, which Microsoft describes as persisting "history across turns": the app creates a conversation, adds each turn's input, and "the next response uses the same conversation, so the agent can answer a follow-up question in context"; the service, not the application, is now the one responsible for retaining and supplying that history. Chat Completions, by contrast, is stateless by design: "Without a conversation, the application can instead carry context forward by ... resending earlier items," which is precisely the fragile pattern that caused the bug.

- A is wrong because the Chat Completions API has no session_id parameter or server-side history feature; it's stateless, and every call must supply the full context it needs. - B is wrong because a bigger context window changes how much history *can* fit in a request, not who is responsible for correctly assembling and resending it; the same reload bug could still drop turns before the request is built. - D is wrong because it's the same architecture with a sturdier data store underneath. The app still owns reassembling and resending the transcript on every call; it has only made that responsibility less likely to fail, not removed it.

Reference: Build with runtime components in Foundry Agent Service

Practice Test 6 ›

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.