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.
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
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
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
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.
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.
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.
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
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.
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.
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
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.
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
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
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.
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
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.
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.
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]
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]
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.
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.
@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
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
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.
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
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.
mlantonis
Highly Voted 2 years, 6 months agoAzureG0d
1 year, 1 month agomoris5121
10 months, 1 week agoVaradarajalu
1 year, 4 months agogardenboozer
1 year, 2 months agoDaniel830
11 months, 2 weeks agomabdullah
11 months, 3 weeks agoDips88
Highly Voted 2 years, 7 months agoAllfreen
1 year, 10 months agomagichappens
1 year, 8 months agoimartinez
2 years, 3 months agoMarcioja
8 months, 2 weeks agoimartinez
2 years, 3 months agoYooOY
2 years, 2 months agoYooOY
2 years, 2 months agopoplovic
2 years, 5 months agoMentalTree
Most Recent 2 days, 16 hours agoMentalTree
2 days, 16 hours agohouzer
10 hours, 25 minutes agoziggy1117
1 month agomattpaul
1 month, 2 weeks agomattpaul
1 month, 2 weeks agopal40sg
1 month, 4 weeks agoTedM2
2 months agomark55665
2 months, 1 week agobechidu
2 months, 2 weeks agosjsaran
2 months, 2 weeks agoVV11_SS22
4 months agoKomohStrong
3 months, 3 weeks agoATLTennis
4 months agoMehedi007
4 months, 2 weeks agosakibmas
4 months, 2 weeks agoLGWJ12
4 months, 4 weeks agoAquintero
5 months ago