Microsoft AI-103 Azure AI App and Agent Developer 1-10

表示モード
画像位置
文字位置
理解度の自動記録
STATUS FILTER

Choose confidence levels to display

Loading...
Q1AI-103
Show answer
Correct answer: B. No

Protected material detection is a feature that determines whether the generated output matches known copyrighted content such as text, song lyrics, articles, recipes, or code.
It is not a countermeasure against unsafe images or hidden instructions embedded within images.
For dangerous images themselves, you use image analysis in Azure AI Content Safety, and for indirect prompt injection such as malicious instructions extracted from an image, you use document attack detection with Prompt Shields.
Therefore, this solution alone does not meet the goal.
Note that Azure AI Content Safety is now also available through Microsoft Foundry, but the service name itself is unchanged.
Prompt Shields
What is Azure AI Content Safety?

Q2AI-103
Show answer
Correct answer: C. Create a conversation, save the conversation ID so it can be reused, and specify that ID in subsequent requests.

The conversation object in Microsoft Foundry Agent Service is a persistent unit that retains messages and tool execution results across multiple turns.
If you save the conversation ID in association with the case and specify the same ID in subsequent requests, you can reuse the conversation history that remains on the service side as-is.
Storing only the final response loses the user messages, tool calls, and tool outputs.
Also, summary memory compresses information, so it is not suitable for the requirement of retaining the complete history.
Therefore, the approach of continuing to use the same conversation ID for the same case is correct.
Older documentation sometimes uses the term “thread,” but the newer service mainly uses the components “conversation” and “response.”
Build using agents, conversations, and responses
Quickstart: Get started with the Microsoft Foundry SDK

Q3AI-103
Show answer
Correct answer: D. Use a model cascade that distributes requests to multiple different models.

A model cascade sends simple FAQs to a small, fast, low-cost model and routes only complex questions to a high-performing reasoning model.
This reduces overall cost and latency while maintaining quality for difficult questions.
Increasing max_tokens typically increases the number of output tokens and the processing time instead.
Sending everything to a small model lowers the quality of complex questions, while sending everything to a high-performing model incurs wasted cost on simple FAQs.
In current Microsoft Foundry, this mechanism is mainly called the “model router,” which automatically selects the optimal model for each prompt by considering quality, cost, and latency.
Model router in Microsoft Foundry
Use a model router in Microsoft Foundry

Q4AI-103
Set tool_choice to the following value

Configure the tool authentication method as follows

Show answer
Correct answer: Required / Use a separate agent ID associated with the client application

Setting tool_choice to required forces the model to call at least one tool when generating a response, making the retrieval step mandatory.
With auto, a tool may not be called, and with none, tool calls themselves are prohibited.
Before publishing, the agent shares an identity within the project, but after publishing, each agent is assigned a unique agent ID.
Using a separate agent ID lets you isolate access rights from other project resources and perform authentication, permission management, and auditing on a per-agent basis.
Storing an API key in the prompt is not secure, and a shared project ID cannot achieve the required isolation.
Note that in Microsoft Foundry, Application Insights and OpenTelemetry let you record execution traces that include retrieval processing and tool calls.
Agent identity concepts in Microsoft Foundry
Set up authentication for Model Context Protocol (MCP) tools

Q5AI-103
To retain user preferences across multiple conversations, use the following

To allow users to provide contextual grounding information during a chat, use the following

Show answer
Correct answer: Agent memory that uses persistent storage / File search tool

Agent memory is a long-term memory feature that retains user preferences and information extracted from past interactions in a persistent memory store, allowing reuse across different sessions and conversations.
Conversation history and session context are mainly used to continue the same conversation or a temporary execution state.
The file search tool registers documents uploaded during a chat into a vector store and searches their content to use as grounding for answers.
Azure AI Search is suited for integration with a prebuilt enterprise search foundation, and the code interpreter is intended for file computation and data analysis.
Note that the former name Azure AI Foundry is now presented under the name Microsoft Foundry.
Memory in Microsoft Foundry Agent Service (preview)
Create and use memory in Foundry Agent Service (preview)

Q6AI-103
Show answer
Correct answer: C. Agentic retrieval-augmented generation (RAG)

Agentic retrieval is a multi-query RAG pipeline that uses an LLM to break a complex question into multiple focused subqueries and gathers relevant information from multiple chunks.
Because conversation history can be included in generating the subqueries, it can realize a retrieval plan that takes past turns into account.
Furthermore, it runs the generated subqueries in parallel and merges and re-ranks the retrieval results, so it can reduce latency while maintaining accuracy.
Traditional RAG typically uses a single search query and therefore cannot meet the requirements, and Chain-of-Thought is a reasoning technique, not a retrieval method in Azure AI Search.
Agentic RAG, which satisfies all three requirements—multiple chunks, a plan that considers conversation history, and parallel retrieval—is correct.
In current official documentation, this feature is described as “agentic search” or “agentic retrieval.”
Agentic retrieval in Azure AI Search
Retrieval-augmented generation (RAG) in Azure AI Search

Q7AI-103
Show answer
Correct answer: D. Prompt Shields for documents

Text extracted from an image via OCR is added to the prompt as external content rather than as a prompt entered directly by the user, so it is treated as indirect prompt injection.
Prompt Shields for documents detects malicious instructions embedded in text extracted from documents, email, web pages, images, and the like.
Prompt Shields for user prompts is used to detect attacks entered directly by users.
Image moderation is a feature that detects harmful visual content such as violence or sexual expression, and is not a countermeasure against instructions within OCR text.
Therefore, inspecting the OCR output with Prompt Shields for documents before passing it to the model is appropriate.
Protected material detection is a feature that detects matches with copyrighted material and does not apply to this requirement.
Prompt Shields
Prompt Shields in Microsoft Foundry

Q8AI-103
Show answer
Correct answer: B. No

Response completeness evaluation is a feature that measures how well the generated answer covers the important information contained in the ground truth or expected answer.
It can detect and block answers below the threshold, but it does not add the missing regulatory clause to the answer or improve the generation process itself.
To improve completeness, you need to add a validation process that compares the retrieved content with the generated result and, if something is missing, prompts regeneration or correction.
An evaluation flow is merely a mechanism for measuring quality; by itself it is not a control that improves answer quality, so this solution does not meet the goal.
Retrieval-augmented generation (RAG) evaluators
ResponseCompletenessEvaluator class

Q9AI-103
credential = (option)()

response = openai_client.responses.(option)(

Show answer
Correct answer: DefaultAzureCredential / create

DefaultAzureCredential automatically detects the managed identity assigned to an application running on Azure and can use it as Microsoft Entra ID credentials.
AzureKeyCredential is authentication by API key, and ClientSecretCredential is service principal authentication using a tenant ID, client ID, and client secret, neither of which fits the managed identity requirement.
You obtain an authenticated OpenAI client via the get_openai_client method of AIProjectClient, and using the responses.create method lets you send the input prompt to the deployed model and generate a new response.
responses.retrieve is a process that retrieves an existing response and is not used to send a new inference request.
compact is also not a method for generating a new response.
Azure AI Foundry has now been renamed Microsoft Foundry, but the basic configuration of combining AIProjectClient with the Responses API is the same.
Microsoft Foundry SDK and endpoints
Use the Azure OpenAI Responses API

Q10AI-103
Show answer
Correct answer: C. A custom analyzer in Azure Content Understanding within Foundry Tools that defines the required fields as extraction fields and returns a confidence score used for routing

A custom analyzer in Azure Content Understanding lets you define business fields such as invoice number, invoice date, vendor name, and total amount as a schema and extract them as structured JSON from forms with different layouts.
Because each extraction result can be given a confidence score from 0 to 1, you can implement processing that routes results below 0.80 to human review.
The layout analyzer focuses on extracting characters, tables, and placement, and does not define invoice-specific business items.
Groundedness evaluation measures the groundedness of a generated answer and cannot be used for form field extraction.
search.score is also the relevance of search results, not the confidence of an extracted value.
A custom analyzer, which can achieve field extraction and confidence-based routing in a single configuration, is appropriate.
Azure Content Understanding in document solutions within Foundry Tools
What is a Content Understanding analyzer?