Azure AI Cloud Developer (AI-200) · Free practice question 11 of 12
User-assigned identity shared by apps
Seven container apps at Quenby Logistics need the same read access to one Key Vault and one storage account. The team wants to grant access once and keep it when apps are deleted and recreated. What should they use?
- A.The vault's access keys, copied into each app as secrets
- B.A system-assigned managed identity on each app, with the roles assigned seven times
- C.A single service principal whose client secret is stored in each app's environment variables and rotated by hand
- D.A user-assigned managed identity attached to all seven apps, with the roles assigned to that identity
Show answer and explanation
Correct answer: D. A user-assigned managed identity attached to all seven apps, with the roles assigned to that identity
Why: A user-assigned managed identity is a standalone Azure resource that can be attached to many apps; role assignments made to it apply to every app that uses it and survive when an app is deleted. System-assigned identities are tied to each app's lifecycle, so access has to be granted per app and again on recreation. A service principal secret has to be stored and rotated, and Key Vault has no access keys.
More free Azure AI Cloud Developer (AI-200) questions
- Importing a public image into ACR
- Event-driven Container Apps job
- Horizontal Pod Autoscaler on CPU
- Container TTL for chat history
- Optimistic concurrency with ETag
- IVFFlat lists and probes tuning
- Entra ID connection to Azure Managed Redis
- Deferring Service Bus messages
- Event Grid system topic for storage events
- NCRONTAB timer trigger schedule
- KQL distinct counts with dcount