Course menuAI-901

Exams / AI-901 / Single-agent solutions and agent client apps / Question 2

AI-901 practice question: Single-agent solutions and agent client apps (2 of 5)

Implement AI solutions by using Microsoft Foundry A free question from our original AI-901 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current Microsoft Learn ·How we write our questions

A pediatric clinic wants an agent that runs custom Python appointment-rule logic in a container its developers package. Each agent instance needs its own Microsoft Entra agent identity, and Foundry should provide the managed endpoint.

Which type of agent in Foundry Agent Service meets these requirements?

Choose one answer.

  1. A. Prompt agent, defined only by a model and instructions, with no custom code or container
  2. B. Ephemeral agent, built only with the Responses API from the clinic's own application code
  3. C. Hosted agent, which runs the developer's own container code with its own Entra identity
  4. D. Voice-based prompt agent, which handles spoken conversation through Voice Live
Show the answer and explanation

Answer: C

  • A. Wrong: A prompt agent is configured with a model and instructions, so it cannot run the clinic's custom Python logic. It suits configuration-only agents.
  • B. Wrong: An ephemeral agent lives in the app's code. Nothing is created in Foundry, so the clinic would get no managed endpoint or dedicated agent identity.
  • C. Right: Correct. A hosted agent runs the developer's packaged code. Foundry provides a managed endpoint and a dedicated Microsoft Entra agent identity for it. Learn more: What is Foundry Agent Service? (opens in a new tab)
  • D. Wrong: A voice-based prompt agent is built for spoken conversation through Voice Live. It does not run the clinic's own container code.

Explanation

Hosted agents are the type that runs your own code in a container while Foundry manages the endpoint and gives the agent its own Entra identity. Prompt agents are configuration only, and ephemeral agents are not saved in Foundry.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Single-agent solutions and agent client apps? The 5 full-length practice sets have 25 more Single-agent solutions and agent client apps questions, 225 in all, none of them in the free exam. One payment of $9.99 $6.99, no subscription. Get the practice sets

Every exam starts with free questions. No account needed.