Soru

Zorluk: OrtaResource Locks

An Azure administrator applies a ReadOnly resource lock to an Azure resource group named rg-marketing. The resource group contains an Azure SQL Database logical server named sql-campaigns.

An operator who has the Owner role at the subscription level attempts to perform the following two tasks:
- Task 1: Add a new IP firewall rule to the sql-campaigns logical server.
- Task 2: Connect to a database on the sql-campaigns server and run a SQL query to retrieve data.

Which of the tasks will be permitted?

  1. A
    Both Task 1 and Task 2
  2. B
    Only Task 1
  3. Only Task 2Cevap
  4. D
    Neither Task 1 nor Task 2

Cevap

Only Task 2 is permitted.
The option stating that only Task 2 is permitted is correct. A ReadOnly resource lock prevents authorized users from deleting or modifying resources in the control plane. Adding a firewall rule is an update operation on the control plane, so it is blocked. However, resource locks do not affect data plane operations (the internal functions of a resource). Querying data within the SQL database is a data plane operation and is therefore allowed.

Adım Adım Çözüm

1
Analyze the scope and type of the lock.
A ReadOnly lock is applied at the resource group level, which inherits to all child resources, including the logical SQL server.
Azure Resource Locks inherit from parent scopes down to all resources inside those scopes.
2
Evaluate the control plane vs. data plane nature of Task 1.
Adding an IP firewall rule modifies the logical server's configuration, which is a control plane write/update operation.
A ReadOnly lock blocks all delete and update operations on the control plane, making Task 1 blocked.
3
Evaluate the control plane vs. data plane nature of Task 2.
Connecting to the database and querying table data interacts with the database engine itself, representing a data plane operation.
Azure Resource Locks do not restrict data plane operations, meaning Task 2 is permitted.

Anahtar Kavram

Azure Resource Locks apply to control plane (management) operations but do not restrict data plane (resource function) operations. A ReadOnly lock blocks all update and delete actions on the control plane.
Bu soruyu puanla