A developer wants to use a Key Vault secret in an Azure App Service. What is the most secure way to authenticate the app to the vault without storing any credentials in the code?

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

Correct Answer: Use a Managed Identity for the App Service and grant it permission in the Key Vault

Managed Identity provides a zero-secret approach to authentication between Azure services....

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

A developer wants to use a Key Vault secret in an Azure App Service. What is the most secure way to authenticate the app to the vault without storing any credentials in the code?

โœ“ Correct Answer & ExplanationAzure Key Vault

Correct Answer

Use a Managed Identity for the App Service and grant it permission in the Key Vault

Why This Answer Is Correct

Managed Identity provides a zero-secret approach to authentication between Azure services.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Key Vault โ€” a core concept tested in Microsoft Certified: Azure Administrator Associate (AZ-104). 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.