Microsoft Azure AI Apps and Agents Developer Associate (AI-103) · 33% practice allocation

Microsoft AI-103: Implement generative AI and agentic solutions Practice Questions

5 free sample questions from the Implement generative AI and agentic solutions domain, with answers and explanations. The full AI-103 bank has 350 questions across 5 domains. Questions are scenario-based and written from the official Microsoft exam guide.

1.

You are creating an Azure AI Foundry agent. You want users to have isolated, stateful conversations so that each user's message history, uploaded files, and intermediate results are kept separate from other users. Which construct in the Foundry Agent Service should you create per user session?

  • A. A new Run for each user
  • B. A new Thread for each user✓ Correct
  • C. A new Agent for each user
  • D. A new Deployment for each user
Explanation

A Thread is correct because Threads are the stateful conversation containers in Azure AI Foundry Agent Service — they store message history, file attachments, and intermediate results independently per conversation. Creating a new Agent per user is incorrect and wasteful; an Agent defines the instructions and tools configuration and is meant to be reused across many conversations. A Run is incorrect because a Run is a single invocation of the agent on a Thread; it is not the container for ongoing conversation state. A Deployment is not a Foundry Agent Service construct for conversation isolation; it refers to model deployments in Azure AI Foundry.

2.

You are configuring an Azure OpenAI deployment for a customer-facing chatbot and need to ensure the model never generates harmful or off-topic content. Which Azure service-level feature, enabled at the deployment level, provides built-in content filtering for both prompts and completions?

  • A. Azure Policy
  • B. Responsible AI dashboard in Azure Machine Learning
  • C. Azure AI Content Safety content filters✓ Correct
  • D. Azure Defender for AI
Explanation

Azure AI Content Safety content filters are natively integrated with Azure OpenAI deployments and can be configured to block or flag harmful content in both prompt inputs and model completions. Azure Policy enforces resource governance rules but does not filter model inputs/outputs. The Responsible AI dashboard in Azure Machine Learning is an evaluation tool for model fairness and interpretability, not a runtime content filter. Azure Defender for AI (Microsoft Defender for Cloud) provides threat detection for AI workloads but does not perform prompt/completion content filtering.

3.

A developer is building a high-stakes financial advisory assistant using Azure OpenAI. The system prompt instructs the model to 'never provide specific investment advice.' During testing, a clever user multi-turn conversation gradually convinces the model to ignore this instruction and give specific stock recommendations. Which TWO techniques best mitigate this prompt injection / jailbreak risk? (Select TWO)

  • A. Use Azure AI Content Safety to evaluate user inputs and model outputs for policy violations before surfacing them✓ Correct
  • B. Increase the model's temperature to make responses more random and less predictable
  • C. Remove the system prompt entirely and rely solely on fine-tuning to bake in the safety behavior
  • D. Move the safety instruction to the end of each user message instead of the system prompt
  • E. Switch from GPT-4o to GPT-4o-mini to reduce the model's instruction-following capability
  • F. Implement a meta-prompt that re-asserts the system prompt constraints in every API call, keeping the system prompt concise and focused on safety boundaries✓ Correct
Explanation

Azure AI Content Safety provides an independent guardrail layer that scans both user inputs (for injection attempts) and model outputs (for policy violations), catching jailbreaks the model itself might miss — this is a defense-in-depth approach. Re-asserting the safety constraints in every system prompt (meta-prompt reinforcement) counteracts multi-turn drift where the model may lose track of early instructions over long conversations. Increasing temperature makes outputs more random but does not enforce safety constraints. Appending safety instructions to user messages is less authoritative than the system prompt and can be overridden by user content that follows. Downgrading to GPT-4o-mini reduces capability but also reduces instruction adherence — it does not systematically improve safety. Removing the system prompt and relying solely on fine-tuning is risky: fine-tuning does not guarantee safety behavior and removes the most direct mechanism for enforcing runtime constraints.

4.

An AI engineer is designing the chunking strategy for a RAG pipeline that indexes a large collection of FAQ documents. Each FAQ document consists of a question followed by a 2–5 sentence answer. The engineer wants retrieved chunks to always be semantically self-contained and map one-to-one with a complete Q&A pair. Which chunking approach is most appropriate?

  • A. Fixed-size chunking with a chunk size of 512 tokens and 10% overlap.
  • B. Sentence-level chunking that splits on every period.
  • C. Document-aware chunking that treats each Q&A pair as a single chunk.✓ Correct
  • D. Recursive character text splitting with a separator hierarchy of paragraph, sentence, word.
Explanation

Document-aware chunking exploits the inherent structure of FAQ documents to produce chunks that are exactly one complete Q&A pair, ensuring semantic self-containment and a natural retrieval unit. Fixed-size chunking with overlap may split a question from its answer or merge multiple Q&A pairs into one chunk, breaking semantic boundaries. Sentence-level chunking would split answers mid-thought and separate questions from their answers. Recursive character text splitting is a general heuristic that does not leverage the explicit Q&A structure of the documents.

5.

A developer is designing an agentic application in Azure AI Foundry. The application uses GPT-4o with tool calling and must perform multi-step reasoning: (1) retrieve data from an internal API, (2) optionally look up additional context from Azure AI Search, and (3) produce a final structured JSON answer. During load testing, the team observes that some requests enter an infinite loop where the model repeatedly calls the same tool without making progress. Which THREE design patterns would most effectively prevent this? (Select THREE)

  • A. Enforce a maximum iteration / tool-call count limit in the orchestration loop and return a graceful error if exceeded✓ Correct
  • B. Use structured outputs (response_format: json_schema) for the final answer turn to force the model to commit to a termination response✓ Correct
  • C. Increase max_tokens to allow the model more space to reason before calling tools
  • D. Detect repeated identical tool calls within the same session and short-circuit the loop by returning the cached result or escalating to a human✓ Correct
  • E. Remove all tools from the tool list after the first tool call to prevent subsequent tool calls
  • F. Set tool_choice to "auto" instead of "required" so the model can decide when to stop calling tools and produce a final answer
Explanation

A maximum iteration limit is a fundamental safety valve in any agentic loop — it guarantees termination regardless of model behavior. Detecting repeated identical tool calls and short-circuiting (returning cached results or escalating) breaks cycles caused by the model getting stuck on the same sub-problem. Requiring the final answer turn to use structured outputs forces the model into a definitive completion schema, preventing it from emitting another tool call when it should be concluding. Increasing max_tokens gives the model more tokens to generate but does not prevent it from continuing to call tools indefinitely — it may actually worsen the problem. Setting tool_choice to "auto" (vs. "required") is a mild mitigation but does not prevent loops — the model can still call tools repeatedly in auto mode. Removing all tools after the first call is too aggressive — it prevents the model from using tools it may legitimately need in steps 2 and 3, breaking the intended multi-step workflow.

Test yourself across every AI-103 domain

The free AI-103 practice test mixes about 20 questions weighted like the exam. The full 350-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Implement generative AI and agentic solutions study guide (AI-103) →

Other AI-103 domains

← All Microsoft Azure AI Apps and Agents Developer Associate study resources