You are configuring a Java web application hosted on Azure App Service to load configuration settings from an Azure App Configuration store. The application needs to retrieve a database password stored in an Azure Key Vault named kv-prod.
In the Azure App Configuration store, you create a key-value pair where the key is DbPassword and the value is set to {"uri":"https://kv-prod.vault.azure.net/secrets/db-pass"}. During application startup, the App Configuration provider library retrieves the DbPassword configuration, but logs show the value is received as the raw JSON string {"uri":"https://kv-prod.vault.azure.net/secrets/db-pass"} instead of the resolved secret. The App Service is configured with a system-assigned managed identity that has the 'Key Vault Secrets User' role on kv-prod.
Which of the following actions should you take to ensure the secret is correctly resolved by the application?
- Update the content-type of the DbPassword key-value in Azure App Configuration to application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8.Answer
- BChange the value of the DbPassword key-value in Azure App Configuration to use the format @Microsoft.KeyVault(SecretUri=https://kv-prod.vault.azure.net/secrets/db-pass).
- CEnable a system-assigned managed identity on the Azure App Configuration store and assign it the Key Vault Secrets User role on the Key Vault.
- DPrefix the configuration key in Azure App Configuration with KeyVault: and set the content-type of the key-value to application/json.