Microsoft Developing AI Apps and Agents on Azure AI-103 Dumps in PDF

Free Microsoft AI-103 Real Questions (page: 20)

You have a chat app in a Microsoft Foundry project and an Azure AI Search vectorized index.
You need to connect to the index to meet the following requirements:
▪ Complex questions must retrieve information from multiple chunks.
▪ Multi-turn conversations must influence retrieval planning.
▪ Retrievals must run in parallel to reduce latency.
Which retrieval approach should you use?

  1. iterative retrieval
  2. agentic Retrieval Augmented Generation (RAG)
  3. chain of thought
  4. classic Retrieval Augmented Generation (RAG)

Answer(s): B

Explanation:

An agentic Retrieval-Augmented Generation (RAG) architecture is the best fit for your requirements.
Traditional, linear RAG pipelines struggle with complex, multi-turn dependencies, whereas an agentic approach natively solves them through iterative reasoning and tool orchestration.
Here is how an agentic RAG pattern specifically satisfies each the three technical requirements:
1. Complex Questions & Multi-Chunk Retrieval
The Challenge: Complex questions often require aggregating distinct pieces of information scattered across different documents or sections.
The Agentic Solution: An agent uses a Reasoning and Acting (ReAct) loop. It evaluates the user's query,
breaks it down into sub-questions, and executes multiple distinct search queries. It then synthesizes the information from these diverse chunks before generating a final response.
2. Multi-Turn Conversations & Retrieval Planning
The Challenge: Standard RAG often just passes the latest user message or a simple chat history summary to the search index, which can lose context or misinterpret the user's true intent in long conversations.
The Agentic Solution: The agent acts as a query planner. It maintains the state of the conversation and dynamically decides if a retrieval is needed, what specific keywords or vectors to target based on past turns,
and how to reformulate the query to bridge context gaps.
3. Parallel Retrievals for Low Latency
The Challenge: Sequential lookups drastically increase time-to-first-token (TTFT), harming the chat user experience.
The Agentic Solution: Modern AI agent frameworks allow the LLM to emit multiple tool calls simultaneously.
The application layer can intercept these calls and execute parallel asynchronous queries against your Azure
AI Search vectorized index, drastically minimizing latency.


Reference:

https://arxiv.org/html/2501.09136v1



HOTSPOT (Drag and Drop is not supported)
You need to recommend a plan to create a customer support agent by using the Microsoft Foundry Agent
Service. The agent must meet the following requirements:
▪ Retain user preferences across multiple conversations.
▪ Enable users to provide contextual grounding by directly uploading documents during a chat.
Which Foundry capability should you recommend for each requirement? To answer, select the appropriate options in the answer area.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Agent memory that uses persistent storage
Retain user preferences across multiple conversations.
To enable a customer support agent built on the Microsoft Foundry Agent Service to retain user preferences across multiple distinct conversations, you must implement the platform's native managed long-term memory system.
The solution architecture must include the following specific components and configurations:
*-> 1. Dedicated Long-Term Memory Store
Agent-to-Store Mapping: Provision one dedicated memory store attached directly to your customer support agent to establish a clear knowledge boundary.
Managed Lifecycle Operations: Rely on the service runtime to automatically manage the asynchronous extraction of preferences, consolidation (merging duplicates and resolving conflicting facts), and hybrid search retrieval.
2. User-Scoped Partitioning (Memory Scope)
Isolation Vaults: Define a mandatory Memory Scope for every interaction.
Unique Identifiers: Bind the scope parameter to a persistent identifier like the customer’s Microsoft Entra ID or a custom system UUID. This ensures user preferences are securely isolated and do not leak into other customers' sessions.
3. Dual Memory Types
Box 2: File Search tool
To enable users to directly upload documents during a chat for real-time contextual grounding, you should include the File Search tool.
This built-in tool is specifically designed to augment agents with knowledge from uploaded files or proprietary documents.
When users upload a document during a chat thread, the Foundry Agent Service File Search Tool automatically handles the extraction, chunking, embedding, and vector searching of that file to ground the agent's responses dynamically.
Incorrect:
* Azure AI Search
While it is a knowledge grounding tool, the Azure AI Search Tool is built to connect an agent to a pre-existing,
centralized corporate search index. It does not handle ad-hoc user file uploads directly inside a chat session.
* Code Interpreter
The Code Interpreter Tool is used for executing Python code in a sandboxed environment to perform advanced mathematical calculations, data analysis, and chart generation, rather than document vector retrieval.


Reference:

https://learn.microsoft.com/en-us/azure/foundry-classic/agents/how-to/tools-classic/overview



You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents.
You need to improve response completeness. The solution must be implemented in the logic of the application code before responses are returned.
What should you do?

  1. Add a retry evaluation before the responses are returned.
  2. Decrease the value of the max_tokens parameter.
  3. Switch to Retrieval Augmented Generation (RAG).
  4. Replace the model with a smaller deployment.

Answer(s): A

Explanation:

Correct:
* Add a reflection pass before the responses are returned.
A reflection pass acts as an internal verification step within your application's logic. It directs the agent to evaluate its own draft response against the retrieved policy documents to ensure no mandatory regulatory clauses were left out. If it detects that critical text is missing, it regenerates or amends the answer before sending it to the user. This directly fulfills the core requirement of improving response completeness.
* Add a retry evaluation before the responses are returned.
You should implement an evaluation and retry loop in your application code.
You must wrap the agent call inside a conditional code loop that evaluates the output against required criteria
(such as a checklist of regulatory clauses), and programmatically forces a retry if information is omitted.
Incorrect:
* Decrease the value of the max_tokens parameter.
* Decrease the value of the temperature paramerer.
* Enable response streaming.
* Increase the value of the presence_penalty parameter
* Replace the model with a smaller deployment.
* Switch to Retrieval Augmented Generation (RAG).


Reference:

https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/tools/ai-search



HOTSPOT (Drag and Drop is not supported)
You have a Microsoft Foundry project that contains an agent.
You use a GitHub Actions workflow for CI/CD.
You need to configure the workflow to automatically evaluate the agent when a pull request (PR) is created and prevent branches from merging if the evaluation results do NOT meet the defined thresholds.
How should you configure the workflow? To answer, select the appropriate options in the answer area.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: An Azure Login action that uses OpenID Connect(OIDC).
The most appropriate authentication method for this scenario is Microsoft Entra ID authentication using OpenID
Connect (OIDC).
Using OIDC with the azure/login GitHub Action eliminates the need to store long-lived credentials (like passwords or client secrets) inside GitHub secrets, offering a highly secure and passwordless integration.
Why OIDC Is the Recommended Choice
Short-Lived Tokens: GitHub Actions requests a temporary, scoped token from Microsoft Entra ID dynamically for each workflow run.
No Secret Rotations: Eliminates administrative overhead and safety risks associated with managing long-lived
Azure Service Principal secrets.
Granular RBAC: Permissions can be tightly scoped by assigning the Azure AI User role to the specific repository/workflow identity at the Microsoft Foundry resource level.
Box 2: Fail
Configuring the GitHub Actions workflow to exit with a non-zero status code (fail) when thresholds are not met is the standard mechanism to block pull requests.To enforce this restriction, you must pair the workflow configuration with GitHub repository settings.
Example code:
- name: Enforce Thresholds run: |
# Use node, python, or bash to read JSON and validate python -c "
import json, sys with open('results.json') as f:
data = json.load(f)
if data['groundedness'] < 0.85:
print('Error: Groundedness score below 0.85 threshold.')
sys.exit(1)


Reference:

https://oneuptime.com/blog/post/2026-02-02-github-actions-pull-requests/view



Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents.
Users report that some responses omit required regulatory clauses, even when the clauses are present in the retrieved content.
You need to improve response completeness.
Solution: You increase the value of the max_tokens parameter.
Does this meet the goal?

  1. Yes
  2. No

Answer(s): B

Explanation:

Correct:
* You add a reflection pass that regenerates the response if the required clauses are missing.
This is Self-Correction Strategy: A reflection pass allows an agent to evaluate its own initial output against specified constraints (e.g., checking for the presence of mandatory regulatory clauses). If the required text is missing, the agent triggers a programmatic self-correction or regeneration loop to include them before final delivery.
Incorrect:
* You increase the value of the max_tokens parameter.
Increasing the max_tokens parameter prevents the response from being cut off mid-sentence due to length constraints. However, it does not force the model's logic to explicitly include missing information that it chose to leave out earlier in the text.
* You increase the value of the temperature parameter.
Raising the temperature parameter increases randomness and creativity. For rigid compliance tasks like summarizing regulatory documents, higher temperature actually increases the risk of hallucination and omission.
* You run an evaluation flow that scores responses for completeness and blocks responses that fall below a defined threshold.
Evaluation Flow Block: Running an evaluation flow to score completeness and blocking bad responses identifies and stops low-quality outputs, but it does not fix or actively improve the response completeness. It simply filters failures out of the system.


Reference:

https://pub.towardsai.net/reflection-with-llm-how-to-make-ai-review-its-own-work-2db122fca1d8



Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents.
Users report that some responses omit required regulatory clauses, even when the clauses are present in the retrieved content.
You need to improve response completeness.
Solution: You add a reflection pass that regenerates the response if the required clauses are missing.
Does this meet the goal?

  1. Yes
  2. No

Answer(s): A

Explanation:

Correct:
* You add a reflection pass that regenerates the response if the required clauses are missing.
This is Self-Correction Strategy: A reflection pass allows an agent to evaluate its own initial output against specified constraints (e.g., checking for the presence of mandatory regulatory clauses). If the required text is missing, the agent triggers a programmatic self-correction or regeneration loop to include them before final delivery.
Incorrect:
* You increase the value of the max_tokens parameter.
Increasing the max_tokens parameter prevents the response from being cut off mid-sentence due to length constraints. However, it does not force the model's logic to explicitly include missing information that it chose to leave out earlier in the text.
* You increase the value of the temperature parameter.
Raising the temperature parameter increases randomness and creativity. For rigid compliance tasks like summarizing regulatory documents, higher temperature actually increases the risk of hallucination and omission.
* You run an evaluation flow that scores responses for completeness and blocks responses that fall below a defined threshold.
Evaluation Flow Block: Running an evaluation flow to score completeness and blocking bad responses identifies and stops low-quality outputs, but it does not fix or actively improve the response completeness. It simply filters failures out of the system.


Reference:

https://pub.towardsai.net/reflection-with-llm-how-to-make-ai-review-its-own-work-2db122fca1d8



Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents.
Users report that some responses omit required regulatory clauses, even when the clauses are present in the retrieved content.
You need to improve response completeness.
Solution: You increase the value of the temperature parameter.
Does this meet the goal?

  1. Yes
  2. No

Answer(s): B

Explanation:

Correct:
* You add a reflection pass that regenerates the response if the required clauses are missing.
This is Self-Correction Strategy: A reflection pass allows an agent to evaluate its own initial output against specified constraints (e.g., checking for the presence of mandatory regulatory clauses). If the required text is missing, the agent triggers a programmatic self-correction or regeneration loop to include them before final delivery.
Incorrect:
* You increase the value of the max_tokens parameter.
Increasing the max_tokens parameter prevents the response from being cut off mid-sentence due to length constraints. However, it does not force the model's logic to explicitly include missing information that it chose to leave out earlier in the text.
* You increase the value of the temperature parameter.
Raising the temperature parameter increases randomness and creativity. For rigid compliance tasks like summarizing regulatory documents, higher temperature actually increases the risk of hallucination and omission.
* You run an evaluation flow that scores responses for completeness and blocks responses that fall below a defined threshold.
Evaluation Flow Block: Running an evaluation flow to score completeness and blocking bad responses identifies and stops low-quality outputs, but it does not fix or actively improve the response completeness. It simply filters failures out of the system.


Reference:

https://pub.towardsai.net/reflection-with-llm-how-to-make-ai-review-its-own-work-2db122fca1d8



Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have a Microsoft Foundry project that contains an agent. The agent generates summaries from retrieved policy documents.
Users report that some responses omit required regulatory clauses, even when the clauses are present in the retrieved content.
You need to improve response completeness.
Solution: You run an evaluation flow that scores responses for completeness and blocks responses that fall below a defined threshold.
Does this meet the goal?

  1. Yes
  2. No

Answer(s): B

Explanation:

Correct:
* You add a reflection pass that regenerates the response if the required clauses are missing.
This is Self-Correction Strategy: A reflection pass allows an agent to evaluate its own initial output against specified constraints (e.g., checking for the presence of mandatory regulatory clauses). If the required text is missing, the agent triggers a programmatic self-correction or regeneration loop to include them before final delivery.
Incorrect:
* You increase the value of the max_tokens parameter.
Increasing the max_tokens parameter prevents the response from being cut off mid-sentence due to length constraints. However, it does not force the model's logic to explicitly include missing information that it chose to leave out earlier in the text.
* You increase the value of the temperature parameter.
Raising the temperature parameter increases randomness and creativity. For rigid compliance tasks like summarizing regulatory documents, higher temperature actually increases the risk of hallucination and omission.
* You run an evaluation flow that scores responses for completeness and blocks responses that fall below a defined threshold.
Evaluation Flow Block: Running an evaluation flow to score completeness and blocking bad responses identifies and stops low-quality outputs, but it does not fix or actively improve the response completeness. It simply filters failures out of the system.


Reference:

https://pub.towardsai.net/reflection-with-llm-how-to-make-ai-review-its-own-work-2db122fca1d8



Share your comments for Microsoft AI-103 exam with other users:

A
AI Tutor Explanation
6/13/2026 3:10:11 AM

Question 23:
Question 23 describes a multimodal model where users can upload unsafe images that could contain hidden instructions. The goal is to implement controls to mitigate this risk.
Key points to understand

  • Prompt shield for documents: Highly effective. It scans text extracted from inputs (including image text) before it’s sent to the LLM to catch hidden instructions or jailbreaking tries embedded in documents or image-derived text.
  • Prompt shield for user prompts: Partially effective. It blocks direct jailbreak attempts written in the user’s prompt, but doesn’t catch everything, especially content coming from image text.
  • Image moderation: Highly effective. Blocks unsafe or harmful images before they reach the model, preventing many attacks at the source.
  • Protected Material Detection: Not helpful here. It’s designed to detect copyrighted material in outputs, not to protect against inputs that try to manipulate the model.

Why this matters
  • The strongest defense is defense in depth: combine image moderation with both types of prompt shields. The document/text shield catches hidden instructions in extracted image text; the user-prompt shield mitigates jailbreak attempts in user-provided prompts; image moderation stops unsafe images before processing.

On the provided solution note
  • The stated answer (A: “configure a prompt shield for user prompts”) would help, but it alone does not fully meet the goal. A more robust approach is to apply all three controls (document prompt shield, user prompt shield, and image moderation) to achieve stronger risk mitigation.

AI Tutor 👋 I’m here to help!