Microsoft Azure Architect Design (AZ-304) Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the Microsoft Azure Architect Design (AZ-304) Exam with comprehensive quiz questions designed to enhance your understanding and confidence. Master essential Azure concepts and strategies to excel on your test day!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which Azure feature enables you to restrict the creation of virtual machines to specific regions and sizes?

  1. Conditional access policies

  2. Azure Policy

  3. Azure Resource Manager templates

  4. Role-based access control (RBAC)

The correct answer is: Azure Policy

The feature that allows you to restrict the creation of virtual machines to specific regions and sizes is Azure Policy. Azure Policy is a service that allows you to create, assign, and manage policies that control or audit your Azure resources. By using Azure Policy, you can enforce rules over your resources, such as limiting virtual machines to certain geographical regions and sizes, ensuring that compliance with your organizational standards is maintained. With Azure Policy, you can create a policy definition that specifies the allowed regions and sizes for virtual machines. When users try to create a new virtual machine that does not comply with the policy, Azure will prevent the deployment from occurring. This capability is particularly useful for organizations looking to manage costs, maintain compliance, or adhere to regional data residency requirements. In contrast, conditional access policies primarily focus on enhancing security by controlling access to applications based on various conditions, like user location or device compliance. Azure Resource Manager templates are used for deploying and managing Azure resources rather than enforcing restrictions on their creation. Role-based access control (RBAC) manages user permissions and roles but does not inherently restrict the specific details like region or size when creating resources.