AI-200 practice question 2 of 10

You are developing an Al-powered API that retrieves connection strings and API keys from Azure Key Vault. You must configure a solution that provides…

Full set: 67 questions
You are developing an Al-powered API that retrieves connection strings and API keys from Azure Key Vault. You must configure a solution that provides the following security functionality: * The API must authenticate to Key Vault without storing credentials in any application configuration files * The identity used by tie API must have only the minimum permissions necessary to lead secrets. * The configuration must minimize the blast radius if an identity or credent al is compromised. You need to implement a secure access strategy for the API. Which two actions should you perform? Each correct answer presents part of the solution. Choose two. NOTE: Each correct selection is worth one point.
Answer options
A: Store a secret value in Azure App Configuration.
B: Assign the Key Vault Administrator role al subscription scope.
C: Grant the Key Vault Secrets User role at vault scope Correct answer
D: Use system assigned managed identity. Correct answer
Correct Answer:
C. Grant the Key Vault Secrets User role at vault scope; D. Use system assigned managed identity.
Explanation

To authenticate to Azure Key Vault without storing credentials in application files, the API should utilize a system-assigned managed identity (D). This identity is tied directly to the lifecycle of the specific application resource, which inherently minimizes the blast radius if the application is compromised. To enforce the principle of least privilege, this managed identity must be granted the Key Vault Secrets User role specifically at the vault scope (C). This ensures the identity only has the minimum permissions necessary to read secret contents and cannot manage the vault or access other resources within the subscription.

Why Incorrect

A. Storing secrets in App Configuration contradicts the requirement to use Key Vault for secrets and does not solve the authentication challenge.
B. Assigning the Key Vault Administrator role at the subscription scope violates the principle of least privilege and maximizes the blast radius.

References

Microsoft Learn: "Provide access to Key Vault keys

certificates

and secrets with an Azure role-based access control" (Section: Assign the Key Vault Secrets User role).

Microsoft Learn: "What are managed identities for Azure resources?" (Section: System-assigned managed identity).

Scroll to Top