Question 1 · choose 1
A Python service must create and run Foundry agents, read evaluation results and call models, all in one Foundry project. The team wants one endpoint to configure and no API keys. How should the service connect?
- APoint the OpenAI SDK at the resource's /openai/v1 route with an API key
- BCall the Azure Resource Manager endpoint of the Foundry resource with a token
- CCreate an AIProjectClient on the project endpoint with DefaultAzureCredential
- DUse the Foundry Tools SDK for each service, each with its own service endpoint
Show the answer and why
APoint the OpenAI SDK at the resource's /openai/v1 route with an API key
Incorrect
The API key breaks the no-keys rule, and that route isn't the project endpoint that the agent and evaluation APIs live on.
BCall the Azure Resource Manager endpoint of the Foundry resource with a token
Incorrect
Resource Manager creates and configures resources; it doesn't run agents or return evaluation results.
CCreate an AIProjectClient on the project endpoint with DefaultAzureCredential
Correct
The Foundry SDK exposes every project API, including agents and evaluations, through the single project endpoint and works with Entra ID credentials.
DUse the Foundry Tools SDK for each service, each with its own service endpoint
Incorrect
Foundry Tools SDKs target prebuilt services such as Speech or Vision, each on its own endpoint, not the project's agents.
For agents, evaluations and other project features, use the Foundry SDK with the project endpoint, https://<resource-name>.services.ai.azure.com/api/projects/<project-name>, and a token credential.
Microsoft documentation