You are deploying a Node.js microservice to an Azure Kubernetes Service (AKS) cluster. The microservice uses a user-assigned managed identity named `mi-node-app` via workload identity.
The microservice must load configuration settings from an Azure App Configuration store named `appconfig-prod`. The store contains several configurations, including Key Vault references pointing to database credentials in an Azure Key Vault named `kv-prod`.
You need to configure the minimum required role assignments to allow the microservice to successfully fetch all configurations and resolve the Key Vault references.
Which two actions should you perform? Select two.
- Assign the App Configuration Data Reader role on `appconfig-prod` to the `mi-node-app` user-assigned managed identity.Cevap
- Assign the Key Vault Secrets User role on `kv-prod` to the `mi-node-app` user-assigned managed identity.Cevap
- CAssign the Key Vault Secrets User role on `kv-prod` to the system-assigned identity of the AKS cluster's node pool.
- DAssign the Key Vault Secrets User role on `kv-prod` to the system-assigned managed identity of the `appconfig-prod` store.
- EAssign the App Configuration Data Owner role on `appconfig-prod` to the `mi-node-app` user-assigned managed identity.
Cevap
Assign the App Configuration Data Reader role on `appconfig-prod` to the `mi-node-app` user-assigned managed identity, and assign the Key Vault Secrets User role on `kv-prod` to the `mi-node-app` user-assigned managed identity.
The microservice's user-assigned managed identity (`mi-node-app`) needs direct read access to the App Configuration store to retrieve configuration key-values and Key Vault reference metadata. It also needs direct access to the Key Vault because Key Vault references are resolved on the client side by the application's SDK.
Adım Adım Çözüm
Anahtar Kavram
Key Vault references in Azure App Configuration are resolved client-side by the application, requiring the application's identity to have read permissions on both the App Configuration store and the target Key Vault.