Skip to main content

AI-200 practice question · Develop Containerized Solutions on Azure

An AI service hosted in Azure Container Apps uses a Dapr secret store component of type secretstores.azure.keyvault.

An AI service hosted in Azure Container Apps uses a Dapr secret store component of type secretstores.azure.keyvault. The container app has a user-assigned managed identity with permission to read secrets in the vault. The team wants no credentials stored in the component definition. Besides vaultName, which metadata must the component include?

  • AazureClientId, set to the client ID of the user-assigned managed identity attached to the scoped container app
  • BazureTenantId, azureClientId, and azureClientSecret, with the secret value supplied as a platform-managed secretRef
  • CsecretStoreComponent, set to the component's own name so that it can resolve its Key Vault credentials
  • DvaultAccessKey, set to the Key Vault's primary access key that is copied from the Azure portal
Show the answer and explanation

Correct answer: A) azureClientId, set to the client ID of the user-assigned managed identity attached to the scoped container app

In Container Apps, a Dapr Key Vault secret store should authenticate with the app's managed identity so no secrets are stored. For a user-assigned identity, the component must also set azureClientId to that identity's client ID.

Why each option is right or wrong

  • A) Correct. With managed identity, the component doesn't need any secret values. Microsoft Learn notes that azureClientId is required whenever a component authenticates with a user-assigned managed identity. A system-assigned identity wouldn't need it.
  • B) Incorrect. This is the service principal approach, which does work. However, it stores a client secret with the component, which the stem rules out.
  • C) Incorrect. Other components use secretStoreComponent to point to an existing secret store and pull sensitive values from it. A Key Vault secret store doesn't reference itself for authentication.
  • D) Incorrect. Key Vault doesn't use account access keys the way Azure Storage does. The documented options are managed identity or Microsoft Entra service principal credentials, and storing a key would also break the no-credentials requirement.
Exam domain
Develop Containerized Solutions on Azure · 22% of AI-200
Question type
Multiple choice (one answer)

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.