AZ-900 Exam QuestionsBrowse all questions from this exam

AZ-900 Exam - Question 277


You have a resource group named RG1.

You need to prevent the creation of virtual machines in RG1. The solution must ensure that other objects can be created in RG1.

What should you use?

Show Answer
Correct Answer: D

To prevent the creation of virtual machines in a specific resource group while still allowing other objects to be created, you should use an Azure Policy. Azure Policies allow you to create rules that enforce specific conditions and behavior for resources in your Azure environment. By assigning a policy that denies the creation of virtual machines in the specified resource group, you ensure compliance with your requirements without affecting the creation of other resource types.

Discussion

12 comments
Sign in to comment
Stez
May 16, 2022

Correct. D

AlexKK
Feb 26, 2024

Had that question on (26.02.23). The following questions were included and even a mixture of them. I may repeat a question, but they are repeated here as well. Good luck all. 28,44,46,55,72,80,91,94,95,97,100,107,111,128,134,138,149,151,159,227,258,269,277,278,296,307,331,337,330/350,353,354,394,398,401,405,407

pari23
Mar 5, 2024

do u had access for complete 400 questions

Thegracie
Mar 16, 2024

I am asking too. i can only access first 200

tej00000001
Apr 5, 2024

this alexxkkk guy has been saying that for the past 276 question. its better if you get access it only 40 dollars and the payout once you have this cert in your pocket is much greater. dont cheap out on your prosperity

tej00000001
Apr 5, 2024

this alexxkkk guy has been saying that for the past 276 question. its better if you get access it only 40 dollars and the payout once you have this cert in your pocket is much greater. dont cheap out on your prosperity

Thegracie
Mar 16, 2024

I am asking too. i can only access first 200

tej00000001
Apr 5, 2024

this alexxkkk guy has been saying that for the past 276 question. its better if you get access it only 40 dollars and the payout once you have this cert in your pocket is much greater. dont cheap out on your prosperity

tej00000001
Apr 5, 2024

this alexxkkk guy has been saying that for the past 276 question. its better if you get access it only 40 dollars and the payout once you have this cert in your pocket is much greater. dont cheap out on your prosperity

wawa3
May 25, 2022

appeared on 2021 05 23 exam

LingW
Apr 18, 2023

Got it on 2022/4/18 exam

zellckOption: D
Jan 9, 2024

D is the answer. https://learn.microsoft.com/en-us/azure/governance/policy/overview#policy-definition The journey of creating and implementing a policy in Azure Policy begins with creating a policy definition. Every policy definition has conditions under which it's enforced. And, it has a defined effect that takes place if the conditions are met. In Azure Policy, we offer several built-in policies that are available by default. For example: - Not allowed resource types (Deny): Prevents a list of resource types from being deployed.

tacobear
Mar 12, 2023

it was on exam on 03/12/2022.

silviogremioOption: D
Jun 24, 2023

Core Point is, Azure Policy enforces compliance to new and already existing resources.

20142365Option: D
Jul 2, 2024

Azure policy Got this question on June 30, 2023

CarlosBarrero
Mar 17, 2022

correct

diogoweb
Sep 7, 2022

Got it on 06-09-2021

TheKraemer
Jan 14, 2023

Correct and good explenation!

LK009
Nov 23, 2023

We can use a lock or policy if it other statement is not present in question that 'other object can be created'. So correct answer is D.