az-104 Practice Question 1702

Exam: az-104
Domain: Manage Azure identities and governance
Topic: Manage Azure subscriptions and governance
Difficulty: medium
Contoso Ltd has a hybrid environment where some resources are in Azure and others are on-premises. They want to ensure that certain resources in Azure are not accidentally moved or deleted. What tool should they use to achieve this?

Answer Options

A
Implement Azure Policy to enforce rules around resource deletion and movement.
B
Set up Azure Cost Alerts to notify when spending exceeds a certain threshold.
C
Create Management Groups to organize resources into logical groups for easier management.
D
Use Azure Resource Locks to prevent the deletion or moving of specific resources.

Correct Answer

D: Use Azure Resource Locks to prevent the deletion or moving of specific resources.

Explanation

The correct answer is to use Azure Resource Locks to prevent the deletion or moving of specific resources. Resource locks ensure that only authorized personnel can perform these actions, thereby preventing accidental deletions or moves. Azure Policy can be used to enforce rules but does not provide a mechanism to lock resources against deletion or movement. Management Groups are used for organizational purposes and do not control access to resources. Cost alerts can help monitor spending but do not prevent deletion or movement of resources.