An organization deploys a Node.js REST API inside Azure Container Apps (ACA). The container app uses a user-assigned managed identity named `id-api-prod` to authenticate.
The API loads its configuration from an Azure App Configuration instance named `config-payment-prod`. The App Configuration store contains a key named `PaymentGateway:ApiKey` which is configured as a Key Vault reference pointing to a secret named `gateway-api-key` in a Key Vault named `kv-payment-prod`.
The managed identity `id-api-prod` is assigned the App Configuration Data Reader role on the App Configuration store. However, at runtime, the API fails to start because it cannot retrieve the resolved value of the `PaymentGateway:ApiKey` setting, instead receiving an access denied authorization error.
Which of the following actions should you perform to resolve the error?
- Assign the Key Vault Secrets User role to the user-assigned managed identity `id-api-prod` on the Key Vault `kv-payment-prod`.Answer
- BAssign the Key Vault Secrets User role to the system-assigned managed identity of the Azure App Configuration store `config-payment-prod` on the Key Vault `kv-payment-prod`.
- CModify the key value in Azure App Configuration to use the App Service reference syntax: `@Microsoft.KeyVault(SecretUri=https://kv-payment-prod.vault.azure.net/secrets/gateway-api-key/)`.
- DAssign the Key Vault Secrets Officer role to the user-assigned managed identity `id-api-prod` on the Azure App Configuration store `config-payment-prod`.