Soru

Zorluk: OrtaResource Locks

An administrator applies a ReadOnly resource lock and a resource tag named Dept: Finance to an Azure resource group. The resource group contains an Azure Cosmos DB database account. A developer attempts to read the tags on the Cosmos DB account and modify its default consistency level. What is the outcome of these actions?

  1. The developer can read the tags but is blocked from modifying the consistency level, and the Cosmos DB account does not inherit the Dept: Finance tag.Cevap
  2. B
    The developer is blocked from modifying the consistency level, and the Cosmos DB account automatically inherits the Dept: Finance tag.
  3. C
    The developer can successfully modify the consistency level because the ReadOnly lock only prevents resource deletion, and the Cosmos DB account does not inherit the Dept: Finance tag.
  4. D
    The developer can successfully modify the consistency level if they are assigned the Owner role because role-based access control (RBAC) permissions override resource locks, and the Cosmos DB account does not inherit the Dept: Finance tag.

Cevap

The developer can read the tags but is blocked from modifying the consistency level, and the Cosmos DB account does not inherit the Dept: Finance tag.
A ReadOnly resource lock applied to a resource group is inherited by all resources within that group, preventing any configuration updates (such as changing the database consistency level) but still permitting read actions (such as viewing the resource configuration). Additionally, resource tags applied to a resource group are not inherited by the resources inside that group.

Adım Adım Çözüm

1
Determine the impact of the ReadOnly lock applied to the resource group.
The ReadOnly lock is inherited by the Cosmos DB account, restricting operations to read-only.
Azure resource locks are inherited from parent scopes (subscriptions and resource groups) to child resources.
2
Evaluate the developer's ability to modify the Cosmos DB consistency level.
The modification attempt is blocked.
A ReadOnly lock prevents write, update, and delete configurations. Modifying the consistency level is a write/update operation.
3
Determine the inheritance behavior of the resource tags.
The Cosmos DB account does not inherit the Dept: Finance tag.
Tags applied to a resource group are not automatically inherited by the resources within it.

Anahtar Kavram

Resource Lock and Tag Inheritance
Bu soruyu puanla