Microsoft Azure Developer Associate AZ-204 Practice Question

You deploy an Azure App Service web app that currently stores its Azure SQL Database connection string in the ConnectionStrings:SqlDb application setting. For compliance reasons, the connection string must be moved to Azure Key Vault, and the web app must be able to retrieve the value at runtime without changing application code. After creating a secret that contains the connection string in Key Vault, which action should you perform next to meet the requirement?

  • Generate a shared access signature (SAS) for the Key Vault secret and store the SAS URL in the ConnectionStrings:SqlDb setting.

  • Store the secret in Azure App Configuration and reference it by label in the ConnectionStrings:SqlDb setting.

  • Enable a system-assigned managed identity for the web app, grant that identity Get access to the secret, and change the ConnectionStrings:SqlDb setting value to @Microsoft.KeyVault(SecretUri=<secret URI>).

  • Add the connection string directly to the web.config file and set the application setting to an empty value.

Microsoft Azure Developer Associate AZ-204
Implement Azure security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot