Question 218 — Domain 3-Describe Azure management and governance | AZ-900 Practice Exam | 230 Questions
You have an Azure virtual machine that is accessed only between 9:00 and 17:00 each day.
What should you do to minimize costs but preserve the associated hard disks and data?
Select only one answer.
Deallocate the virtual machine when it is not needed
Delete the virtual machine when it is not needed
Implement Privileged Identity Management
Resize the virtual machine to a smaller size
Correct answers
Deallocate the virtual machine when it is not needed
Explanations
Correct:
Deallocate the virtual machine when it is not needed
Deallocating the virtual machine stops it from consuming compute resources, which saves costs. However, the associated hard disks and data are preserved, so you can restart the VM when needed.
Wrong:
Delete the virtual machine when it is not needed
Deleting the virtual machine removes both the VM and its associated resources, including the hard disks, which would result in data loss.
Implement Privileged Identity Management
Privileged Identity Management (PIM) is a tool for managing access and roles, and it does not help with minimizing VM costs.
Resize the virtual machine to a smaller size
Resizing to a smaller size reduces costs, but it does not stop compute charges when the VM is not in use. Deallocating the VM is more cost-effective in this scenario.