An agent works well in the Foundry portal, and now a web page must let customers talk to it. What does the developer build?
- Exam domain
- Implement AI solutions by using Microsoft Foundry55–60% of the exam
- Difficulty
- Medium
- In this mock
- 35 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Create a lightweight client application for an agent.
Agents only help customers once an app connects them. The exam checks that you know the step after testing in the portal.
Why A is the answer
A lightweight client application that calls the agent through the Foundry SDK
A client app sends messages to the agent through the Foundry SDK and shows its replies.
Remember: From portal to product: a client app talks to the agent through the SDK.
How it works
An agent created in Foundry keeps its instructions, model and tools in the service.
A client application uses the Foundry SDK to start a conversation, send user messages and receive the agent's replies.
The client stays small, because the agent does the work.
Clues in the question
The words that point to the answer, and what each one tells you.
- Works well in the portal
- The agent exists already.
- A web page must let customers talk to it
- A client app is needed.
In detail
- The client creates a conversation, sends user messages and reads the agent's responses.
- The agent's instructions and tools stay in Foundry; the client just talks to it.
Side by side with look-alikes
| Piece | Lives in |
|---|---|
| Instructions, model, tools | The agent in Foundry |
| Conversation UI | Your client app |
| Connection | Foundry SDK |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A lightweight client application that calls the agent through the Foundry SDKRight
From portal to product: a client app talks to the agent through the SDK.
B. A new model trained on the agent's conversationsWrongMost tempting
Training a model does not give customers a way to reach the agent.
Why it tempts: Training sounds like improving the agent. But customers still need an app to reach it.
C. A copy of the agent in another region with no codeWrong
Another copy still has no user interface.
D. An Azure Policy that runs the agentWrong
Policies govern resources; they do not run agents.
In practice
- Keep the agent's endpoint and credentials in configuration.
Use case
An illustrative scenario, not a real incident.
A small web page uses the Foundry SDK to send each customer message to the agent and display its reply.
See how it works
sequenceDiagram participant C as Customer participant W as Web client participant A as Foundry agent C->>W: Question W->>A: Send message via SDK A-->>W: Reply W-->>C: Show reply
How to read this chart
- 1. Customer sends "Question" to Web client.
- 2. Web client sends "Send message via SDK" to Foundry agent.
- 3. Web client gets a reply from Foundry agent: "Reply".
- 4. Customer gets a reply from Web client: "Show reply".