Microsoft Azure Administrator (AZ104) Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the Microsoft Azure Administrator (AZ104) Exam. Prepare with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


What would be the effect of deleting and recreating an Azure virtual machine to connect it to a new virtual network?

  1. It will not affect the data stored on the VM

  2. This action causes total data loss on the virtual machine

  3. The VM's configuration will be retained after recreation

  4. It simplifies the connection to the new virtual network

The correct answer is: It will not affect the data stored on the VM

When you delete an Azure virtual machine and then recreate it, the data stored on the VM is generally not affected as long as the VM is using managed disks that are not deleted in the process. When you delete a VM, you have the option to keep the associated resources such as disks and network interfaces, meaning that the storage where your data resides can remain intact. When you recreate the VM and attach the existing managed disk to it, the data will still be there, ensuring continuity and preventing data loss. It is important to understand that while the VM instance itself is removed, the underlying storage resources can be preserved, allowing you to maintain access to your data. However, if the deleted VM also deletes the associated disk and no backup or snapshot is available, the data could be lost, but that would depend on the deletion options chosen. In contrast, the other choices imply a misunderstanding of the underlying architecture of Azure VMs and data storage. The notion of total data loss is applicable only if the settings include removal of the disks. Retaining the configuration after recreation is inaccurate because, upon recreating, you’d typically start fresh with the configuration settings unless they were explicitly saved or documented. Simplifying connection to a new virtual network does not directly relate to