Exam AI-901 Topic 1 Question 115 Discussion
Actual exam question for Microsoft's AI-901 exam
Question #: 115
Topic #: 1
Question #: 115
Topic #: 1
You are developing a simple application that uses the Microsoft Foundry SDK to send chat prompts to a model.
Which three elements should you provide in the code to run the application? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Which three elements should you provide in the code to run the application? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Suggested Answer: A,D,E Vote an answer
To build a simple application that sends chat prompts to a model using the Microsoft Foundry SDK, you will initialize a project client using your endpoint and credentials, then request chat completions using your model deployment name.
Microsoft Entra ID Credentials: Handled via DefaultAzureCredential(). This eliminates the need to hardcode sensitive API keys. Before running this app, ensure you are authenticated in your terminal by running az login via the Azure CLI. Your account must have the Cognitive Services User or Azure AI Developer role assigned.
Endpoint URL: Passed directly into the AIProjectClient initializer. This maps your code to the specific Azure AI Foundry project hub managing your computational resources.
Model Deployment Name: Referenced inside the final .create() method payload. This instructs the inference routing service exactly which deployed LLM (e.g., GPT-4o, DeepSeek, or Claude) should process your incoming chat transcript.
Reference:
https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/chatgpt
Microsoft Entra ID Credentials: Handled via DefaultAzureCredential(). This eliminates the need to hardcode sensitive API keys. Before running this app, ensure you are authenticated in your terminal by running az login via the Azure CLI. Your account must have the Cognitive Services User or Azure AI Developer role assigned.
Endpoint URL: Passed directly into the AIProjectClient initializer. This maps your code to the specific Azure AI Foundry project hub managing your computational resources.
Model Deployment Name: Referenced inside the final .create() method payload. This instructs the inference routing service exactly which deployed LLM (e.g., GPT-4o, DeepSeek, or Claude) should process your incoming chat transcript.
Reference:
https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/chatgpt
by Harold at Sep 10, 2026, 01:16 PM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).