Soru

Zorluk: KolayResource Locks

An Azure resource group contains a virtual machine. A ReadOnly resource lock is applied to this resource group. Which of the following statements describe the effects of this lock on the virtual machine? (Select two.)

  1. Authorized users can view the configuration settings of the virtual machine.Cevap
  2. Authorized users are prevented from deleting the virtual machine.Cevap
  3. C
    Authorized users can resize the virtual machine to change its compute tier.
  4. D
    Authorized users can start or stop the virtual machine.

Cevap

Authorized users can view the configuration settings of the virtual machine, and authorized users are prevented from deleting the virtual machine.
The correct options are that authorized users can view the configuration settings and are prevented from deleting the virtual machine. This is because a ReadOnly lock applied at the resource group level is inherited by the virtual machine, allowing only read operations (viewing configurations) and blocking all write or delete operations.

Adım Adım Çözüm

1
Determine lock inheritance.
The ReadOnly lock applied at the resource group level is inherited by all resources within it, including the virtual machine.
Azure Resource Locks are inherited by child resources.
2
Evaluate the permissions allowed by a ReadOnly lock.
ReadOnly locks allow read operations (like viewing configuration) but block write/modify and delete operations.
This is the primary function of a ReadOnly lock.
3
Identify which actions are allowed and which are blocked.
Viewing configuration is allowed. Deleting, resizing, and starting/stopping are blocked because resizing and starting/stopping require write operations.
Starting/stopping a VM modifies its state and is therefore blocked.

Anahtar Kavram

Azure Resource Locks prevent accidental deletion or modification of resources. A ReadOnly lock allows only read operations and blocks all write, modify, and delete operations.
Bu soruyu puanla