exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 5 question 49 discussion

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

HOTSPOT -
You have an Azure subscription that contains the resource groups shown in the following table.

RG1 contains the resources shown in the following table.

You need to identify which resources you can move from RG1 to RG2, and which resources you can move from RG2 to RG1.
Which resources should you identify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: IP1, Storage1 -
IP addresses and storage accounts can be moved.
Virtual networks cannot be moved.
There is no lock on RG1.

Box 2: None -
There is a delete lock on RG2.
Note: When you apply a lock at a parent scope, all resources within that scope inherit the same lock. Even resources you add later inherit the lock from the parent.
The most restrictive lock in the inheritance takes precedence.
CanNotDelete means authorized users can still read and modify a resource, but they can't delete the resource.
ReadOnly means authorized users can read a resource, but they can't delete or update the resource. Applying this lock is similar to restricting all authorized users to the permissions granted by the Reader role.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-resources

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
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: Box 1: IP1, VNET2, and storage1 Box 2: IP2, VNET2, and storage2 Locks are designed for any update or removal. In this case we want to move only, we are not deleting, and we are not changing anything in the resource.
upvoted 213 times
c75e123
2 months, 3 weeks ago
Correct: A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group. But note that a resource with read-only lock can be moved to another resource group. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#considerations-before-applying-your-locks
upvoted 4 times
...
PeeKay79
3 years, 7 months ago
RG2 does not contain any resources so Box2:None
upvoted 11 times
piotrekpal
2 years, 9 months ago
Even if RG2 have resources it`s in DELETE lock state. It`s mean you can`t move anything because move means delete.
upvoted 5 times
...
WindowAFX
2 years, 10 months ago
This is what I thought
upvoted 1 times
...
...
azim1
2 years, 12 months ago
I agree with Mlantonis. As mentioned by others, this question is not complete. If you look at complete question, then what mlantonis suggests is right.
upvoted 5 times
...
abdelmim
1 year, 9 months ago
correct and tested
upvoted 5 times
...
...
Moyuihftg
Highly Voted 3 years, 10 months ago
Don't see a table with IP1, storage1 and VNET1. To test anyway, I created storage2, VNET2 and IP2 in RG1. Then I applied the locks as stated in the tables. I was able to move all resources from RG1 to RG2. After that I could also move all resources from RG2 back to RG1. So based on the current information, I go for answer: IP1, VNET2, and storage1 IP2, VNET2, and storage2
upvoted 102 times
lksilesian
3 years, 3 months ago
This is the first question I tested in lab - because I could not find a definitive answer and could not take it on faith. But you are right, no matter what lock is set - I was able to move resources. The -> ONLY <- situation where I was NOT able to MOVE resources is when i set READ-ONLY lock on the DESTINATION resource group.
upvoted 27 times
pmzone
3 years, 1 month ago
If the Read-only Lock is applied on either Source or target RG, the movement of resources won't happen.
upvoted 13 times
Vad133
2 years, 2 months ago
Agree! Tested in Azure today. Moving a resource = changing its property (RG). If resource is read-only then no property can be changed and moving fails.
upvoted 4 times
...
...
...
Arash123
11 months, 2 weeks ago
Correct, I tested the same way and can move them all.
upvoted 2 times
...
GiJoe1987
3 years ago
The vet has a read only lock on it in rg1 so it can't be moved. Thou as you said I thought we would be able to move all resources for rg2 as it is only a delete lock not a read-only lock.
upvoted 1 times
...
cyna58
3 years, 10 months ago
Your answer is correct. We can move all resources
upvoted 7 times
...
...
kali_linux
Most Recent 1 month, 2 weeks ago
Is it me, or is there no storage1 in RG1? Question states, below are the resources in RG1. No storage1 is mentioned. Only storage2. So how can 'ip1 and storage1 only' be true when the resource doesn't exist in RG1?
upvoted 2 times
dalisama
4 weeks, 1 day ago
i think we are missing the table for RG1, and if all the old comment see it, it only means it has been removed recently
upvoted 1 times
...
...
PMPft17
4 months, 1 week ago
The answer is: Box 1: IP1, VNET2 and storage 1 Box 2: None Its based on where the lock is. See this from Microsoft: A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group. But note that a resource with read-only lock can be moved to another resource group.
upvoted 2 times
...
[Removed]
5 months, 1 week ago
WRONG IP1, VNET2, and storage1 IP2, VNET2, and storage2
upvoted 3 times
...
pet3r
6 months, 2 weeks ago
Moving a resource only moves it to a new resource group or subscription. It doesn't change the location of the resource. Note You can't move Azure resources to another resource group or another subscription if there's a read-only lock, whether in the source or in the destination. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription
upvoted 1 times
...
76d5e04
8 months, 3 weeks ago
ET Admin After paying 65dollars, it is frustrating to see questions like this one and many more and many incorrect answers.Kindly request you to update the contents in the AZ-104 to the best possible accuracy or make it a free access so that I don't need raise any concerns
upvoted 7 times
...
ristst001
9 months, 3 weeks ago
If you look closely, you can see that the READ ONLY lock is applied to VNET1 and VNET2, not to RG1 or RG2, which should not prevent you moving the VNETs to another RG.
upvoted 2 times
...
WeepingMaplte
10 months ago
Box 2: IP2 and storage2 only A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#:~:text=A%20read%2Donly%20lock%20on%20a%20resource%20group%20prevents%20you%20from%20moving%20existing%20resources%20in%20or%20out%20of%20the%20resource%20group.
upvoted 1 times
...
MandAsh
11 months, 1 week ago
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group.
upvoted 2 times
...
Amir1909
1 year ago
Box 1: IP1, VNET2, and storage1 Box 2: IP2, VNET2, and storage2
upvoted 2 times
...
MatAlves
1 year, 1 month ago
"A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group." https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
upvoted 1 times
MatAlves
1 year, 1 month ago
Couldn't find anything saying locks on RESOURCES prevent move operations though.
upvoted 3 times
...
...
PhoenixAscending
1 year, 1 month ago
A similar question was on my exam, but there was also a virtual machine in RG1. However, you should be able to move all resources to both resource groups.
upvoted 1 times
...
ki01
1 year, 2 months ago
I love how there are two comments next to each other, one month apart, saying that they tested it and then one says you can move everything, the other says you can move nothing. One of them is lying. From what i'm reading in https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json quote: A read-only lock on a resource group that contains a virtual machine prevents users from moving the VM out of the resource group. A read-only lock on a resource group prevents users from moving any new resource into that resource group. This implies that if the read-only lock is set up at RG level, the RG becomes read-only and no resources can be moved in or out. The question is a mess, because it says RG1, then gives a table with <...>2 resources. and misses the table completely with <..>1 resources. (1/2)
upvoted 3 times
ki01
1 year, 2 months ago
From my reading in the provided link. what you need to know is this: If RG has Read-Only lock on it - resources CAN'T be moved out or in to it and none of those resources can be deleted. If RG has Delete Lock on it - the resources CAN be moved in or out from the RG. If only a resource has a Read-only lock - that resource CAN be moved to other RG. If only a resource has a Delete Lock - that resource CAN be moved to other RG. Going by the first table that says RG1 has no locks and RG2 has delete lock. i conclude that because of the table. ALL resoruces can be moved both ways. 2/2
upvoted 6 times
...
...
SgtDumitru
1 year, 3 months ago
Read-Only only impacts services if you try to move/update/create something INSIDE them. Therefore if a RG have a Read-Only lock, you can't move somethin inside it, otherwise you CAN. Resource lock on VNET, IP or SG doesn't affect it when trying to moving them from on RG to another since we don't change the content. Based on first table(where both RG doesn't have Read-Only locks), we can move any resource from RG1 to RG2 and vice versa.
upvoted 2 times
...
Hannirac
1 year, 4 months ago
I have just tested in lab same scenario, all 3 resources were moved to the RG2 from RG1. Even though the documentation says that you cannot modify a resource with a lock "read-only" which is my understanding meaning that you cannot move the resource as well. All resources can be moved both ways. So mlantonis is right as always.
upvoted 1 times
...
Viggy1212
1 year, 4 months ago
Oct 9, 2023 : This question is missing some information but I'll try to give some pointers. 1) I created a new RG test1 and test2. Added Read only lock to RG test1 and Delete lock to test2. 2) Created StorageAccts in both RGs. SG1 in RG test1 and SG2 in RG Test2. I tried to move the SG1, from RG1 to RG2 => Operation Failed Then tried to move SG2, from RG2 to RG1 => Operation Failed. As long as locks are enabled, we cannot move any resources. Hope this helps.
upvoted 2 times
suddin1
9 months, 1 week ago
but why do you apply Read Only Lock to RG Test 1; in the question it says no lock on RG1. So your test is flawed for this question
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