Installation, Storage, and Compute with Windows Server 2016 — Question 20
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
You have a Hyper-V host named Server1 that runs Windows Server 2016. Server1 has a dynamically expanding virtual hard disk (VHD) file that is 900 GB. The
VHD contains 400 GB of free space.
You need to reduce the amount of disk space used by the VHD.
What should you run?
Answer options
- A. the Mount-VHD cmdlet
- B. the Diskpart command
- C. the Set-VHD cmdlet
- D. the Set-VM cmdlet
- E. the Set-VMHost cmdlet
- F. the Set-VMProcessor cmdlet
- G. the Install-WindowsFeature cmdlet
- H. the Optimize-VHD cmdlet
Correct answer: H
Explanation
The correct answer is H, the Optimize-VHD cmdlet, which is specifically designed to reduce the size of dynamically expanding VHDs by removing unused space. The other options, like Mount-VHD and Set-VHD, do not perform this optimization and are used for different purposes such as mounting VHDs or configuring VHD properties.