You manage an Azure environment. You create a new resource group named rg-finance-prod to hold production database resources. You apply a tag with the key CostCenter and value Finance-101 to rg-finance-prod. Additionally, you configure a CanNotDelete resource lock on rg-finance-prod. Afterwards, you deploy an Azure SQL database named db-finance into rg-finance-prod. Which of the following statements correctly describe the resource governance settings applied to the database? Select two.
- The database inherits the CanNotDelete lock from the resource group, preventing its deletion.Cevap
- The database does not inherit the CostCenter tag from the resource group.Cevap
- CThe database automatically inherits the CostCenter tag from the resource group.
- DThe CanNotDelete lock prevents users from modifying the database configuration or connection strings.
Cevap
The database inherits the CanNotDelete lock from the resource group, preventing its deletion, and the database does not inherit the CostCenter tag from the resource group.
Resource locks in Azure are inherited by all child resources in the scope where they are applied. Therefore, applying a CanNotDelete lock to the resource group prevents the database from being deleted. Conversely, tags are not inherited by resources from the parent resource group, meaning the database will not have the CostCenter tag automatically applied.
Adım Adım Çözüm
Anahtar Kavram
Resource lock inheritance applies to child resources, while tag inheritance does not occur automatically from resource groups to child resources.