Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 3-Describe Azure management and governance | AZ-900 Practice Exam | 230 Questions

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.

  1. Deallocate the virtual machine when it is not needed

  2. Delete the virtual machine when it is not needed

  3. Implement Privileged Identity Management

  4. Resize the virtual machine to a smaller size

Correct answers

  1. 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.