CertKeen

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?

  1. A.The vault's access keys, copied into each app as secrets
  2. B.A system-assigned managed identity on each app, with the roles assigned seven times
  3. C.A single service principal whose client secret is stored in each app's environment variables and rotated by hand
  4. 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