Microsoft Azure AI Engineer Associate AI-102 Practice Question
An Azure OpenAI resource named contoso-openai hosts a deployment called "sales-chat." You need to call the chat completions endpoint from an Azure Function that uses its system-assigned managed identity instead of an API key. Which built-in Azure role must you assign to the managed identity so the function can successfully invoke the deployment?
When you authenticate to Azure OpenAI with Azure AD, the caller must have the Cognitive Services OpenAI User role on the OpenAI resource. This role grants permission to issue inference-time requests such as chat, completion, and embeddings calls. Cognitive Services Contributor permits management actions (create, delete, update) but does not allow runtime inference. Custom Vision and other service-specific roles apply only to their respective services and have no effect on OpenAI endpoints. Therefore, assigning Cognitive Services OpenAI User enables the Azure Function's managed identity to send chat completions requests without storing a key.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the Cognitive Services OpenAI User role?
Open an interactive chat with Bash
How does Azure AD authentication work for Azure OpenAI resources?
Open an interactive chat with Bash
What is the difference between Cognitive Services OpenAI User and Cognitive Services Contributor?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .