Soru

Zorluk: KolayAzure Key Vault Secret, Key, and Certificate Management

An organization is transitioning its Azure resources to use Azure Role-Based Access Control (RBAC) instead of Key Vault access policies. A developer needs to ensure that an Azure Web App can retrieve secrets from a Key Vault named kv-prod using its system-assigned managed identity.

Which configuration change must be performed to allow the Web App to retrieve the secrets?

  1. A
    Set the Key Vault permission model to Azure RBAC, and assign the Key Vault Reader role to the Web App's managed identity.
  2. Set the Key Vault permission model to Azure RBAC, and assign the Key Vault Secrets User role to the Web App's managed identity.Cevap
  3. C
    Set the Key Vault permission model to Vault access policy, and assign the Reader role to the Web App's managed identity.
  4. D
    Set the Key Vault permission model to Azure RBAC, and configure a user-assigned managed identity for the Web App, as system-assigned managed identities do not support RBAC.

Cevap

Set the Key Vault permission model to Azure RBAC, and assign the Key Vault Secrets User role to the Web App's managed identity.
Setting the Key Vault permission model to Azure RBAC and assigning the Key Vault Secrets User role is correct because the Key Vault Secrets User role provides the necessary data-plane permissions to read secret values, and system-assigned managed identities are fully compatible with Azure RBAC.

Adım Adım Çözüm

1
Select the correct permission model on the Key Vault.
The Key Vault is configured to authorize data-plane operations using Azure role-based access control (Azure RBAC).
This is required to shift from the legacy Key Vault access policies to RBAC-based authorization.
2
Assign the appropriate data-plane role to the application's identity.
The system-assigned managed identity of the Web App is assigned the Key Vault Secrets User role.
The Key Vault Secrets User role is the specific built-in role designed to allow reading secret contents (secrets/get) without granting administrative control.

Anahtar Kavram

Key Vault access authorization model transition and data-plane role assignment
Tahmini Süre:1m 0s
Bu soruyu puanla