exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 2 question 5 discussion

Actual exam question from Microsoft's AZ-104
Question #: 5
Topic #: 2
[All AZ-104 Questions]

HOTSPOT -
You have the Azure management groups shown in the following table:

You add Azure subscriptions to the management groups as shown in the following table:

You create the Azure policies shown in the following table:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
Virtual networks are not allowed at the root and is inherited. Deny overrides allowed.

Box 2: Yes -
Virtual Machines can be created on a Management Group provided the user has the required RBAC permissions.

Box 3: Yes -
Subscriptions can be moved between Management Groups provided the user has the required RBAC permissions.
Reference:
https://docs.microsoft.com/en-us/azure/governance/management-groups/overview https://docs.microsoft.com/en-us/azure/governance/management-groups/manage#moving-management-groups-and-subscriptions

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
fedztedz
Highly Voted 4 years, 1 month ago
Answer is Wrong : It should Be NO NO NO - subscription should be moved by can't be added to 2 groups.
upvoted 250 times
Durden871
1 year, 10 months ago
From Udemy: NYN Explanation 1. The azure policy (not allowed resource types – Virtual networks) is inherited to Subscription1. So, Virtual networks are not allowed to create in Subscription1. 2. Policy assignments get evaluated top-to-bottom. The most restrictive policy assignment will always win, i.e. a DENY on any level will take precedence over an ALLOW on any other level. So the azure policy (not allowed resource types – Virtual networks) will be applied to Subscription2. The deny policy is only for virtual networks. This allows to create a virtual machine by leveraging existing VNet’s. 3. Each management group and subscription can only support one parent. Subscription1 is already part of a management group. We can’t add this to another management group though we can move. https://docs.microsoft.com/en-us/azure/governance/management-groups/overview
upvoted 59 times
alexn76
1 year, 9 months ago
N Y N You can create VM on existing network
upvoted 2 times
KrisJin
1 year, 8 months ago
Who told you there is an existing VNET?
upvoted 9 times
Batiste2023
1 year, 2 months ago
Who told you there isn't? - Actually, who would make policies like this, if there weren't any VNets available already? (I know, it's a Microsoft scenario, but still...)
upvoted 1 times
ki01
1 year, 2 months ago
no one in their right mind would make policies like these, but this is not a real world tenant in a company. this is an exam question to test if you know how allows and denies trickle down through management groups. No need to get philosophical on this
upvoted 4 times
...
...
...
ggogel
1 year, 1 month ago
"Allowed Resource Type (Deny): Defines the resource types that you can deploy. Its effect is to deny all resources that aren't part of this defined list." See: https://learn.microsoft.com/en-us/azure/governance/policy/overview#policy-definition So the answer to the second question is NO. Only vNets are in the list, so only vNets can be created. Anything else is denied.
upvoted 7 times
...
...
Zemar
1 year, 9 months ago
No - Sub1 > Group21 > Group11 > TenantRoot (Not allowed) No - Sub2 > Group12 > TenantRoot (Not allowed) No - Only one management group can be assigned to a subscription (Group21 is already assigned to sub1)
upvoted 20 times
...
avidlearner
1 year, 5 months ago
No - Tenant Root not allowed No - Azure policy is a Strict Deny system, Any deny policy on top level is not overridden by lower level allows. Since you are not allowed to create a VNet you can't create a VM without a VNet. No- you don't add a subscription group which is already assigned to other .
upvoted 6 times
Ruzhdi
9 months, 4 weeks ago
Answer 2: is Yes - ManagementGroup12 is allowed to create VNet as mentioned in the assignment.
upvoted 2 times
...
...
...
tita_tovenaar
3 years, 6 months ago
not agreed for answer 2. Only virtual networks are mentioned in the policy. Nothing is said about virtual machines. Result: NO - YES - NO
upvoted 29 times
tita_tovenaar
3 years, 6 months ago
sorry, my bad. answer 2 is No.By allowing metworks, you deny all the rest.
upvoted 15 times
...
...
pieronegri
4 years, 1 month ago
you are right, "move" is the right verb.
upvoted 2 times
...
dp846
1 year, 6 months ago
overrides property allows you to change the effect of a policy definition without modifying the underlying policy definition
upvoted 1 times
...
...
mlantonis
Highly Voted 3 months, 3 weeks ago
Allowed Resource Type (Deny): Defines the resource types that you can deploy. Its effect is to deny all resources that aren't part of this defined list. Not allowed resource types (Deny): Prevents a list of resource types from being deployed. Based on the Policies, VNETs are not allowed in the Tenant Root Group scope, so you cannot deploy VNETs. Also, VNETs only allowed in ManagementGroup12 scope, but you cannot deploy any other resource. Box 1: No Subscription1 is a member of ManagementGroup21, ManagementGroup21 is a member of ManagementGroup11, ManagementGroup11 is a member of the Tenant Root Group, The Tenant Root group has ‘Not allowed resource types for virtual network’. Box 2: No: You cannot create a VM, because based on the Policy you can only create VNETs in Sybscription2 (ManagementGroup12). Box 3: No You cannot ADD Subscription1 to ManagementGroup11, but you can MOVE Subscription1 from ManagementGroup21 to ManagmentGroup11. Subscriptions can only be a member of ONE ManagementGroup at a time.
upvoted 243 times
ElDakhli
2 years ago
Perfect comment, thank you :)
upvoted 5 times
...
Harssh
3 years, 1 month ago
Box 1 and Box 2 are ok; however, I have a doubt that when all management groups here are under management group Tenant Root Group which has a policy barring Virtual Networks, so how come ManagementGroup12 can allow Virtual network creation in the first place? Do'nt member management groups inherit policies from host management group?
upvoted 1 times
Harssh
3 years, 1 month ago
My question is can a nested management group override policy defined at its parent management group level by creating its own contradictory policy?
upvoted 3 times
SumanSaurabh
2 years, 1 month ago
Exactly, I do have same question. Can some help to understand
upvoted 1 times
...
...
...
joergsi
3 years ago
Your reply for box 2 makes no sense because the question is: You can create a VM in Sun 2? And you are saying: Box 2: No: You cannot create a VM, because based on the Policy you can only create VNETs in Sybscription2 (ManagementGroup12). But then the answer needs to be yes based on your argument, correct?
upvoted 4 times
kilowd
2 years, 7 months ago
Allowed Resource Type (Deny): Defines the resource types that you can deploy. Its effect is to deny all resources that aren't part of this defined list.
upvoted 1 times
...
xavigo
2 years, 8 months ago
If you can *only* create VNETS then it follows you cannot create other things like VMs. What's so hard to grasp?
upvoted 6 times
...
...
dp846
1 year, 6 months ago
Box 2 : No since overrides property allows you to change the effect of a policy definition without modifying the underlying policy definition
upvoted 2 times
...
...
Dankho
Most Recent 2 months, 3 weeks ago
NYN - 1 - can't create the network 2 - you can create VMs all day long 3 - can't add and have 2 parents; the answer says move but move != add
upvoted 1 times
...
NickyDee
3 months, 3 weeks ago
Nested groups galore! NO, you cannot create a Vnet in Subscription1: Subscription1 is a member of Group21, Group21 is a member of Group11, Group11 is a member of the Tenant Root Group, The Tenant Root group is Not allowed resource types for virtual network. NO, you cannot create a Vnet in Subscription2: Subscription2 is is a member of ManagementGroup12, ManagementGroup12 is a member of the Tenant Root Group, The Tenant Root group is Not allowed resource types for virtual network. NO, you cannot ADD Subscription1 to ManagementGroup11, but you can MOVE subscription1 from ManagementGroup21 to ManagmentGroup11. Subscriptions can only be a member of ONE managementGroup at a time.
upvoted 9 times
oooMooo
4 years ago
Thank you for this detailed response!
upvoted 2 times
...
Penagache
4 years ago
Second question is for vm, not for vnet.
upvoted 9 times
...
Bruce_dB
3 years, 12 months ago
Yes, but, The process of moving a subscription is by using the add functionality: "To move a subscription in CLI, you use the add command" https://docs.microsoft.com/en-us/azure/governance/management-groups/manage
upvoted 4 times
shnz03
3 years, 7 months ago
Good one! the verb "add" in CLI is confirmed as move.
upvoted 1 times
...
...
...
AubinBakana
3 months, 3 weeks ago
Creating a Virtual Machine alone still requires that you create a virtual network Essentially, a virtual machine is a virtual network with 1 PC. Meaning, you cannot create a VM if this action is denied. If however, the VM existed before the policy was created, which is stated nowhere, by the way, that'd be something entirely different. The question doesn't state anything about there being an existing VNet. This means the answer to question 2 should be NO. As for question 3, Subscriptions can be moved, I am not sure what they mean by Add. So this one also isn't quite clear. If by "add" they mean "move", then the answer is Yes. So it should be: NO, NO, YES
upvoted 4 times
...
Chiboy
3 months, 3 weeks ago
This is simple: 1. Virtual Networks are not allowed at the Tenant Root Group for ALL Management Groups. So number 1 is a No. Though virtual network is allowed for one management group, that management group is still under a Tenant root group where vnet is not allowed. 2. You cannot create a virtual Machine without a Virtual Network. Since virtual networks are not allowed, the answer is also No. 3. This is a YES for me. The architecture of a subscription forces it to trust ONLY one Directory at a time. Hence, when the question asks if we can add the subscription to a different mgt group, it was asking if we can "move" it, since architecturally, you can not have a subscription in more than 1 directory at the same time. I admit the question should have been specific in using the word "move" instead of "add". But then, it may also have been part of the question to see if we understand that a subscription can only trust one directory at time.
upvoted 2 times
...
Frost312321
3 months, 3 weeks ago
Box 3: Yes. Move subscriptions Add an existing Subscription to a management group in the portal Log into the Azure portal. Select All services > Management groups. Select the management group you're planning to be the parent. At the top of the page, select Add subscription. Select the subscription in the list with the correct ID. Screenshot of the 'Add subscription' options for selecting an existing subscription to add to a management group. Select "Save". https://docs.microsoft.com/en-us/azure/governance/management-groups/manage
upvoted 2 times
...
yana_b
3 months, 3 weeks ago
Box1: No -> because VNets are only allowed for MG12. (here the question in principle whether the allowed VNet for MG12 overrides the previous rule that VNets are forbidden on Tenant root level, which will then mean that such a rule forbids totally the creation of new VNets). Box 2: Yes -> because forbidding VNets creation does not automatically forbit VMs creation, we can still create new VNs within the already existing Vnets. Box 3: Yes -> we can move subscriptions from one MG to another, and here we have MG21 under MG11 https://docs.microsoft.com/en-us/learn/modules/create-windows-virtual-machine-in-azure/2-create-a-windows-virtual-machine https://docs.microsoft.com/en-us/azure/governance/management-groups/manage
upvoted 3 times
...
SeMo0o0o0o
4 months ago
Wrong NO NO NO
upvoted 1 times
...
lewisjcsc300
4 months, 1 week ago
Adding sub1 isnt the same as moving Sub1
upvoted 1 times
...
TheFivePips
5 months, 2 weeks ago
NYN. In general, polices are inherited through a hierarchical structure consisting of Management Groups > Subscriptions > Resource Groups > and Resources. However policies, even more restrictive policies, can be over-ridden at those lower levels. The first answer is No because it inherits the restrictive policy from the root group and there is nothing to over-ride that policy. The second answer is Yes because even though it inherits a restrictive policy from the root group, it explicitly allows VNETs to be created at a lower, more granular, management level. I know the question is asking about VM creation, but you need VNETs to create VMs and there is no policy specifically about allowing or disallowing VM creation. The third answer is No because, as other have said, you cannot have a subscription in 2 management groups. It cannot be added, but it can be moved.
upvoted 1 times
TheFivePips
5 months, 2 weeks ago
After reading more about this it seems that actually the more restrictive policy will apply. I must have read that from old information or something. You can however exclude resources from a policy in azure, although this is not mentioned in this particular question. So the Answer is actually NNN. The second answer is No because it inherits the more restrictive policy, and even though it is explicitly allowed, the more restrictive inherited policy will prevent VNETs and therefor VMs from being created. What a journey we've been on
upvoted 2 times
...
...
amurp35
6 months, 3 weeks ago
NNN - disallowed by explicit deny; explicit allow is implicit deny on all else; cannot be a member of multiple management groups.
upvoted 1 times
...
23169fd
7 months, 1 week ago
Given answers are correct. 1. No The "Not allowed resource types" policy for virtualNetworks is scoped to the Tenant Root Group. 2. Yes There is no policy that restricts or disallows creating virtual machines in ManagementGroup12 or Tenant Root Group. The allowed resource types for virtualNetworks doesn't impact the creation of virtual machines. 3. Yes There are no policies or constraints provided that explicitly prevent moving Subscription1 to ManagementGroup11.
upvoted 1 times
...
Charumathi
7 months, 1 week ago
Tenant Root Group (Not Allowed Resource - Virtual N/W) | |__Management Group 11 | | | |__Management Group 21 | (Sub 1) | |__Management Group 12 (Sub 2) (Allowed Resource - Virtual N/W) Answers, 1. You can create a virtual network in Sub1 - No Reason: Subscription 1 is under Tenant Root Group, hence we will not be able to create Virtual Network 2. You can create a virtual machine in Sub2 - No Reason: Subscription 2 is also under Tenant Root Group with overrides the allow resource type in Management Group 12. You will not be able to create a Virtual network, without creation of virtual network, we will not be able to create a Virtual Machine. 3. You can add Sub1 to Management Group11 - No Reason: We cannot add subscription from one group to the other.
upvoted 1 times
...
varinder82
7 months, 4 weeks ago
Final Answer : NYN
upvoted 1 times
...
3c5adce
8 months, 1 week ago
Going to go with NYN - will report back
upvoted 1 times
...
varinder82
8 months, 2 weeks ago
Final Answer : No No No
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago