An Azure subscription contains a resource group named `rg-corp-networks`. A `ReadOnly` resource lock is applied at the subscription level, and a `CanNotDelete` resource lock is applied directly to `rg-corp-networks`. The resource group contains an Azure Virtual Network named `vnet-prod`.
Which two operations can an administrator successfully perform on `vnet-prod`? Select two.
- View the IP address settings of `vnet-prod`Cevap
- BAssociate a network security group (NSG) with a subnet in `vnet-prod`
- Read the current resource tags of `vnet-prod`Cevap
- DAdd a new subnet to `vnet-prod`
Cevap
An administrator can view the IP address settings and read the current resource tags of the virtual network.
Resource locks in Azure are inherited from parent scopes (Subscription -> Resource Group -> Resource) and are additive. In this scenario, the subscription has a ReadOnly lock, and the resource group has a CanNotDelete lock. The virtual network inherits both. Because locks are additive, the most restrictive lock (ReadOnly) determines the allowed actions. A ReadOnly lock allows only read operations. Viewing the IP address settings and reading the resource tags are read operations, so they can be performed successfully.
Adım Adım Çözüm
Anahtar Kavram
Resource locks are inherited and additive. A ReadOnly lock restricts all write and delete operations, allowing only read operations.
Tahmini Süre:1m 30s