Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-104 topic 2 question 39 discussion

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

You have an Azure subscription that contains a resource group named TestRG.
You use TestRG to validate an Azure deployment.
TestRG contains the following resources:

You need to delete TestRG.
What should you do first?

  • A. Modify the backup configurations of VM1 and modify the resource lock type of VNET1
  • B. Remove the resource lock from VNET1 and delete all data in Vault1
  • C. Turn off VM1 and remove the resource lock from VNET1
  • D. Turn off VM1 and delete all data in Vault1
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-powershell

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 2 years, 6 months ago
Correct Answer: B When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. As an administrator, you can lock a subscription, resource group, or resource to prevent other users in your organization from accidentally deleting or modifying critical resources. The lock overrides any permissions the user might have. You can't delete a vault that contains backup data. Once backup data is deleted, it will go into the soft deleted state. So you have to remove the lock on order to delete the VNET and delete the backups in order to delete the vault. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-powershell https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources https://docs.microsoft.com/en-us/azure/backup/backup-azure-delete-vault#before-you-start
upvoted 259 times
AzureG0d
1 year, 1 month ago
I initially thought you were wrong but when you read those links its clear as day that B is the answer. You don't have to turn off VM's to delete them so C and D are automatically eliminated. My thought was that A could be a potential answer because most things in Azure require the backup to be stopped, however modifying the lock will still hinder you from deleting the resource. Therefore B is the best answer as it seems.
upvoted 11 times
...
moris5121
10 months, 1 week ago
you can't delete a vault that has soft deleted data ...
upvoted 6 times
...
Varadarajalu
1 year, 4 months ago
Hello @mlantonis, I am following all your answers and they are really helpful for my understanding the concepts. However i need a small clarification on the link that you have provided the third link , https://docs.microsoft.com/en-us/azure/backup/backup-azure-delete-vault#before-you-start In the above pink it is mentioned that the vault cannot be deleted if any data source is protected by the Vault. So i think we should first stop the backup, delete the data in the vault and then remove the locks. So i believe the first thing is to Modify the backup configurations of VM1 to stop the backup. so i think the answer is A. Please help me if my understanding is correct.
upvoted 18 times
gardenboozer
1 year, 2 months ago
The thing is that A mentions "and modify the resource lock type". You can set a lock to either CanNotDelete or ReadOnly - both block the resource from being deleted, which is why you have to remove the lock, not modify it.
upvoted 32 times
Daniel830
11 months, 2 weeks ago
Your comment made me understand it. Thank you
upvoted 5 times
...
...
...
mabdullah
11 months, 3 weeks ago
Thanks.
upvoted 2 times
...
...
Dips88
Highly Voted 2 years, 7 months ago
Answer should be B. A recovery service vault can not deleted unless all its backups are deleted permanently. And along with that definitely resource lock has to be removed on vnet
upvoted 122 times
Allfreen
1 year, 10 months ago
Why not answer ' A '
upvoted 7 times
magichappens
1 year, 8 months ago
Cause the only modification on the lock you can do is set it to "read-only" which won´t solve the problem that you can´t delete the resource.
upvoted 6 times
...
...
imartinez
2 years, 3 months ago
Wrong, correct answer is C. Its asking for the first thing you should Do. If the VM is running it will continues backing up. So that's your first move on the vault.
upvoted 8 times
Marcioja
8 months, 2 weeks ago
Stopped VMs are also backed up with crashconsistentrecovetypoints. We should disable soft delete and then stop backup and remove backup data for the VM. It is also needed to remove the vnet lock.
upvoted 2 times
...
imartinez
2 years, 3 months ago
My bad, it's B. in the steps listed on the URL below, stop the VM is the second URL https://docs.microsoft.com/en-us/azure/backup/backup-azure-delete-vault#delete-protected-items-in-the-cloud
upvoted 6 times
...
...
YooOY
2 years, 2 months ago
if backup is still active/VM is running, doing firstly B won't delete all data. Either stop the backup or the VM first must come first. C is making sense. A could be also next to perfect 1st action.
upvoted 6 times
YooOY
2 years, 2 months ago
Cloud protected items: Go to the vault dashboard menu > Backup Items. All items listed here must be removed with Stop Backup or Delete Backup Data along with their backup data. Follow these steps to remove those items. it looks stop backup or delete backup data has the same effect. https://docs.microsoft.com/en-us/azure/backup/backup-azure-delete-vault#proper-way-to-delete-a-vault
upvoted 3 times
...
...
poplovic
2 years, 5 months ago
Tried in the lab, a lot of steps to remove the vault. https://docs.microsoft.com/en-us/azure/backup/quick-backup-vm-portal https://docs.microsoft.com/en-us/azure/backup/backup-azure-security-feature-cloud#permanently-deleting-soft-deleted-backup-items
upvoted 1 times
...
...
MentalTree
Most Recent 2 days, 16 hours ago
Correct Answer: C Question is what should you DO FIRST: -First you turn off the VM and remove the resource lock -Once VM is off you can modify the back config -Once backup config is remove you can remove backups from vault -Once vault is empty you can remove the TestRG. Key point being that of the choices, C which includes turning off the VM HAS to be done first before anything else can be done.
upvoted 1 times
MentalTree
2 days, 16 hours ago
Ignore what I said about backup config xD The VM has to be off so that it is not using the subnet associated with the vnet: "you can't delete a virtual network with subnets that are still in use by a virtual machine" https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-powershell#required-access-and-deletion-failures
upvoted 1 times
houzer
10 hours, 25 minutes ago
The questions states that you need to delete the Resource Group, so there is no need to delete each component individually. You can do a delete on the entire resource group and it will also get rid of all the resources. The trick here is that you have a resource lock in place that prevents you from deleting it (in this case the vault) and also a recovery services vault that has backup data in in which again cannot be deleted. You first need to solve these two problems before simply deleting the entire resource group and everything in it, in one go.
upvoted 1 times
...
...
...
ziggy1117
1 month ago
Selected Answer: B
You do not need to turn off VMs to delete them. I made so many of those studying for AZ104 and i never had to turn off any VM before deleting it. Also you need to delete the contents of a vault before you can delete it. There is actually a lenghty checklist of things you need to do in the vault before you can delete it besides deleting its backup.
upvoted 2 times
...
mattpaul
1 month, 2 weeks ago
I passed with these questions and many friends passed too, all questions appeared in the real exam a great study resource, contact me on [email protected]
upvoted 1 times
...
mattpaul
1 month, 2 weeks ago
I passed with these questions and many friends passed too, all questions appeared in the real exam a great study resource, contact me on [email protected]
upvoted 1 times
...
pal40sg
1 month, 4 weeks ago
Selected Answer: D
What should you do **first**? The answer is D. Turn off VM1 and delete all data in Vault1. This is the correct answer because the question asks what should be deleted first before deleting TestRG. According to the current web page context, TestRG contains a virtual machine named VM1, a virtual network named VNET1, and a recovery services vault named Vault1. The web page context also states that VM1 is connected to VNET1 and that Vault1 contains backup data for VM1. Therefore, before deleting TestRG, we need to delete the resources that depend on it or have a resource lock. In this case, VM1 depends on VNET1 and Vault1 has a resource lock. To delete VM1, we need to turn it off first. To delete Vault1, we need to delete all the data in it first. Therefore, the first step is to turn off VM1 and delete all data in Vault1.
upvoted 1 times
...
TedM2
2 months ago
Selected Answer: B
It has to be "B". Deleting an RG includes deleting any recovery vault that is in it, and this article clearly states that you cannot delete the vault if it contains data: https://learn.microsoft.com/en-us/azure/backup/backup-azure-delete-vault?tabs=portal The delete lock also needs to be removed as by definition it blocks deletion of the locked resource.
upvoted 1 times
...
mark55665
2 months, 1 week ago
Selected Answer: A
Answer should be A, you must stop backup and delete resource lock before you can delete RG
upvoted 1 times
...
bechidu
2 months, 2 weeks ago
Selected Answer: B
The answer should be B, In order to delete the RG, delete lock has to be removed and the vault data needs to be cleared
upvoted 2 times
...
sjsaran
2 months, 2 weeks ago
Answer should be A Recovery Vault can not be deleted when there is an active backup and the delete lock need to be removed from VNet
upvoted 2 times
...
VV11_SS22
4 months ago
B is correct
upvoted 1 times
KomohStrong
3 months, 3 weeks ago
@VV11_SS22 pls i need help with contributor access of the dumps. pls if you have full dump or anyone that has full dump should pls send me at [email protected]. thanks
upvoted 1 times
...
...
ATLTennis
4 months ago
Selected Answer: A
The only way to delete the RG is to: remove the lock on VNET and modify the recovery services vault to delete the backup data, delete soft deleted backup data (if that option is used), remove the back-up servers etc. (there are 7 steps involved before you can delete the RSV per below link). So, if you interpret "modify settings" for VNET as removing the lock and "Modify settings" for RSV as completing all the 7 steps, then answer is A. I agree the answers are not clear-cut though.... https://learn.microsoft.com/en-us/azure/backup/backup-azure-delete-vault?tabs=portal#delete-a-recovery-services-vault
upvoted 1 times
...
Mehedi007
4 months, 2 weeks ago
Selected Answer: B
"You can't delete a vault that contains backup data." https://learn.microsoft.com/en-us/azure/backup/backup-azure-delete-vault?tabs=portal#before-you-start https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
upvoted 1 times
...
sakibmas
4 months, 2 weeks ago
Selected Answer: B
You can't delete a Recovery Services vault with any of the following dependencies: You can't delete a vault that contains protected data sources (for example, IaaS VMs, SQL databases, Azure file shares). You can't delete a vault that contains backup data. Once backup data is deleted, it will go into the soft deleted state. You can't delete a vault that contains backup data in the soft deleted state. You can't delete a vault that has registered storage accounts.
upvoted 1 times
...
LGWJ12
4 months, 4 weeks ago
Selected Answer: B
in azure it is not possible to delete resources ui any of them has a lock of type delete
upvoted 1 times
...
Aquintero
5 months ago
Selected Answer: B
Respuesta correcta es la B: estas son las razones: 1. no puedes eliminar un grupo de recursos en el cual incluya un recurso con Bloqueo como en este caso la VNET1, 2; no puedes eliminar un grupo de recursos que contega un recovery services Vault con datos de backup, como en este caso el recurso Vault1
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 ...