AI-200 practice question · Connect to and Consume Azure Services
Three applications run on an App Service web app, an Azure Container Apps app, and an Azure Functions app.
Three applications run on an App Service web app, an Azure Container Apps app, and an Azure Functions app. All of them must call the same Azure OpenAI resource by using Microsoft Entra authentication without storing any secrets. The compute resources are recreated often by a pipeline, and the team wants to grant the Azure OpenAI role assignment once so that permissions stay the same after each rebuild. What should they do?
- ACreate one user-assigned managed identity, grant it the role on the Azure OpenAI resource, and attach it to all three compute resources
- BEnable a system-assigned managed identity on each compute resource and grant each identity the role on the Azure OpenAI resource
- CStore the Azure OpenAI API key in Azure Key Vault and have all three applications read the key at startup
- DRegister one Microsoft Entra application with a client secret and set the secret in each application's settings
Show the answer and explanation
Correct answer: A) Create one user-assigned managed identity, grant it the role on the Azure OpenAI resource, and attach it to all three compute resources
When several compute resources need the same permissions, and those permissions must survive the resources being recreated, use a shared user-assigned managed identity. System-assigned identities are tied to one resource and are deleted with it.
Why each option is right or wrong
- A) Correct. A user-assigned managed identity is a standalone resource with its own lifecycle, and several resources can share it. The role assignment survives when the compute is recreated and needs to be granted only once.
- B) Incorrect. A system-assigned identity can't be shared and is deleted with its resource. Each rebuild creates a new identity that needs a new role assignment, so this doesn't meet the grant-once requirement.
- C) Incorrect. This uses a shared API key instead of Microsoft Entra authentication. The applications would still need a way to authenticate to Key Vault, and there is a key to rotate.
- D) Incorrect. A client secret is a credential the team has to store and rotate, which breaks the requirement to keep no secrets. Managed identities remove that burden.
- Exam domain
- Connect to and Consume Azure Services · 25% of AI-200
- Question type
- Multiple choice (one answer)
Related AI-200 questions
- A team wants a Microsoft Foundry agent to answer employee questions using about 200 internal policy PDFs.Connect to and Consume Azure Services
- An application calls an Azure OpenAI chat completions deployment. The prompt tells the model to finish each answer with…Connect to and Consume Azure Services
- A multilingual customer support chatbot built on an Azure OpenAI chat deployment often answers in English, even when a…Connect to and Consume Azure Services
- A team calls an Azure OpenAI provisioned deployment through the OpenAI Python SDK.Connect to and Consume Azure Services
All 60 free AI-200 questions by domain · 15 sample questions on one page
Practise the full AI-200 exam
This question is one of a small free sample from the CertRidge AI-200 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.