An application running as an Azure App Service needs to retrieve secrets from Azure Key Vault. You want to avoid storing any credentials in the application code or configuration. What is the most secure approach?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Enable a system-assigned managed identity on the App Service and grant it Key Vault Secrets User role

System-assigned managed identities are the recommended credential-free approach. Azure automatically creates and manages the identity's lifecycle. You grant the identity the 'Key V...

๐Ÿ“‹Part of Microsoft Certified: Azure Security Engineer Associate (AZ-500) ยท Azure Certification Practice
Real Exam ScenarioAzure Key Vault

An application running as an Azure App Service needs to retrieve secrets from Azure Key Vault. You want to avoid storing any credentials in the application code or configuration. What is the most secure approach?

โœ“ Correct Answer & ExplanationAzure Key Vault

Correct Answer

Enable a system-assigned managed identity on the App Service and grant it Key Vault Secrets User role

Why This Answer Is Correct

System-assigned managed identities are the recommended credential-free approach. Azure automatically creates and manages the identity's lifecycle. You grant the identity the 'Key Vault Secrets User' role (or appropriate Key Vault access policy), and the App Service authenticates to Key Vault using the identity token โ€” no secrets, certificates, or credentials needed in the application.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Key Vault โ€” a core concept tested in Microsoft Certified: Azure Security Engineer Associate (AZ-500). Understanding Azure Key Vault is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.