You manage an Azure subscription named Sub1. You plan to configure customer-managed key (CMK) encryption for an Azure storage account named contosostore1 by using an existing Azure key vault named contosokeyvault1. The resources are configured as follows:
- contosostore1 has a user-assigned managed identity named identity1 associated with it. The storage account firewall is enabled.
- contosokeyvault1 uses the Azure RBAC permission model. Soft-delete is enabled, but purge protection is disabled. The Key Vault firewall is configured to allow access from selected networks only.
You need to ensure that contosostore1 can encrypt data using a key from contosokeyvault1. The solution must follow the principle of least privilege.
Which two actions should you perform? (Select TWO.)
- Enable purge protection on contosokeyvault1.Cevap
- Assign the Key Vault Crypto Service Encryption User role to identity1 at the scope of contosokeyvault1.Cevap
- CAssign the Key Vault Contributor role to identity1 at the scope of contosokeyvault1.
- DDisable the firewall on contosostore1 to allow outbound traffic to contosokeyvault1.
- EEnable the system-assigned managed identity on contosostore1 and assign it the Key Vault Reader role on contosokeyvault1.