You have a Microsoft Foundry project that contains an agent.
The agent uses tools to retrieve internal content and call external APIs. The agent is configured to let the model decide when to call the tools.
You need to publish the agent for a compliance workflow. The solution must meet the following requirements
• Each workflow run must include a retrieval step before generating a response.
• Tool calls must authenticate by using the published agent’s own identity.
• Tool access must use an identity isolated from other project resources.
• Tool access must support audit tracing.
What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

The agent uses tools to retrieve internal content and call external APIs. The agent is configured to let the model decide when to call the tools.
You need to publish the agent for a compliance workflow. The solution must meet the following requirements
• Each workflow run must include a retrieval step before generating a response.
• Tool calls must authenticate by using the published agent’s own identity.
• Tool access must use an identity isolated from other project resources.
• Tool access must support audit tracing.
What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Show answerHide answer
Explanation

Explanation:
This question tests agent configuration in Microsoft Foundry for compliance workflows, focusing on tool invocation control, authentication, and identity isolation for security and auditing.
✅ Correct Option:
Set tool_choice to: required
Setting tool_choice to required forces the model to call tools (e.g., retrieval) in every run before generating a response. This ensures the retrieval step always occurs first, meeting the compliance workflow requirement.
✅ Correct Option:
Using a distinct agent identity bound to the client application
This option uses an isolated identity for the published agent. It authenticates tool calls with the agent’s own identity, keeps access separate from other project resources, and supports audit tracing.
❌ Incorrect Option:
Set tool_choice to: auto
auto lets the model decide when to call tools. This does not guarantee a retrieval step in every workflow run, violating the compliance requirement.
❌ Incorrect Option:
Set tool_choice to: none
none disables tool calling entirely. The agent cannot retrieve internal content or call external APIs as needed.
❌ Incorrect Option:
Storing API keys in prompts
This is insecure and does not provide proper identity-based authentication, isolation, or audit tracing for published agents.
❌ Incorrect Option:
Using the shared project agent identity
The shared identity is not isolated from other project resources. It fails the requirement for a distinct, isolated identity with strong audit support.
🔧 Reference:
→ Microsoft Learn - What are tools in Foundry Agent Service? – Covers tool_choice options and authentication methods.
→ Microsoft Learn - Agent tools overview for Foundry Agent Service – Explains distinct agent identities for isolation and auditing in published agents.







