Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam AI-102 Topic 1 Question 298 Discussion

Actual exam question for Microsoft's AI-102 exam
Question #: 298
Topic #: 1
You are building an agent by using the Azure Al Foundry Agent Service.
You have the following code.

Suggested Answer:


Explanation:
The agent will reason over the uploaded file.##
The code will create a run and check the output.##
The code will create an agent and enable a file search.##
The agent will reason over the uploaded file.
* Yes: The code includes file = project_client.agents.upload_file_and_poll(file_path="./data/file1.zip", purpose=FilePurpose.AGENTS). The upload_file_and_poll method with FilePurpose.AGENTS suggests that the file (file1.zip) is uploaded for the agent to process, and agents in the Azure AI Foundry Agent Service are typically designed to reason over uploaded data. This indicates the agent will reason over the uploaded file.
The code will create a run and check the output.
* No: The provided code snippet does not include any explicit call to create a run (e.g., a method like create_run or start_run) or check the output (e.g., a method to retrieve or poll run results). The code only uploads a file and creates a vector store, but it does not initiate or monitor a run.
The code will create an agent and enable a file search.
* No: The code does not contain a method to create an agent (e.g., create_agent) or explicitly enable a file search. The create_vector_store_and_poll method creates a vector store, which is typically used for indexing data for search, but there is no indication of enabling a file search or creating an agent in this snippet.

by Abel at May 18, 2026, 11:18 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.