
Answer-first summary for fast verification
Answer: an Azure policy
The correct answer is D, an Azure policy. Azure policies can be used to define requirements for resource properties during deployment and for already existing resources. These policies enforce rules and effects over your resources to ensure compliance with corporate standards and service level agreements. By creating an Azure policy assigned to the resource group RG1, you can deny the creation of virtual machines specifically, while still allowing other types of resources to be created. Options like 'a lock' would prevent the creation of any resources, not just virtual machines, making Azure policy the appropriate choice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a resource group named RG1, you aim to restrict the creation of virtual machines while allowing other resources to be created. Which Azure feature should you utilize to enforce this specific restriction?
A
a lock
B
an Azure role
C
a tag
D
an Azure policy
No comments yet.