Question

Difficulty: MediumConfigure Storage Encryption and Customer-Managed Keys

Helios Logistics has an Azure subscription named sub-helios-prod containing a resource group named rg-helios-storage. The resource group contains an Azure Storage account named saheliosdata and an Azure Key Vault named kvhelioskeys.

To meet regulatory compliance, you must configure saheliosdata to use customer-managed keys (CMK) stored in kvhelioskeys for double encryption of data at rest. You apply the following configurations:
- kvhelioskeys has soft-delete and purge protection enabled.
- kvhelioskeys is configured to use the Azure role-based access control (Azure RBAC) permission model.
- kvhelioskeys has its firewall enabled, restricting access to select networks, and has 'Allow trusted Microsoft services to bypass this firewall' set to Yes.
- saheliosdata is configured to use a system-assigned managed identity.
- You assign the Key Vault Contributor role to the storage account's managed identity at the key vault scope.

When you attempt to enable customer-managed keys on saheliosdata using a key from kvhelioskeys, the operation fails.

What is the primary reason for this configuration failure?

  1. The Key Vault Contributor role only grants control plane access to manage the key vault itself, but does not grant the data plane permissions required to wrap and unwrap encryption keys.Answer
  2. B
    The Storage Account's firewall is blocking the Key Vault from communicating, as the 'Allow trusted Microsoft services' bypass must be disabled to enforce private endpoint security.
  3. C
    The Key Vault Contributor role is assigned at the key vault scope, but Key Vault roles must be assigned at the subscription scope to allow cross-resource access by the Storage service.
  4. D
    The Key Vault's firewall is blocking the Storage Account because the system-assigned managed identity is not recognized as a trusted Microsoft service for Key Vault bypass.

Answer

The Key Vault Contributor role only grants control-plane access to manage the key vault itself, but does not grant the data-plane permissions required to wrap and unwrap encryption keys.
The correct answer states that the Key Vault Contributor role only grants control plane access. When Azure Key Vault is configured with the Azure RBAC permission model, control plane roles like Key Vault Contributor do not inherit data plane permissions. The storage account requires data plane permissions (specifically, wrap key and unwrap key) to use a customer-managed key for encryption, which are provided by the Key Vault Crypto Service Encryption User role.

Step-by-Step Solution

1
Analyze the role assigned to the storage account's managed identity.
The identity is assigned Key Vault Contributor.
To determine if the assigned permissions match the requirements of the encryption workflow.
2
Differentiate between Key Vault control plane and data plane roles.
Key Vault Contributor is a control plane role and cannot perform cryptographic operations on keys. Key Vault Crypto Service Encryption User is a data plane role designed for key wrapping/unwrapping.
Azure Storage needs data plane access to perform wrap and unwrap key actions for customer-managed key encryption.
3
Identify the cause of the failure based on the mismatch.
The configuration fails because the storage account has control plane permissions but lacks data plane permissions.
This explains the access denied error during key configuration.

Key Concept

Azure Key Vault separates control plane access (managing the Key Vault resource) from data plane access (performing cryptographic operations on keys). For Azure Storage customer-managed keys (CMK) using Azure RBAC, the storage account's managed identity must be granted a data plane role such as Key Vault Crypto Service Encryption User.
Estimated Time:1m 30s
Rate this question