Installation, Storage, and Compute with Windows Server 2016 — Question 32

You have a Hyper-V host named Server1 that runs Windows Server 2016. Server1 has two virtual machines named VM1 and VM2.
You discover that VM1 and VM2 can communicate with Server1 over the network.
You need to ensure that VM1 and VM2 can communicate with each other only. The solution must prevent VM1 and VM2 from communicating with Server1.
Which cmdlet should you use?

Answer options

Correct answer: A

Explanation

The correct answer is A, Set-VMSwitch, because this cmdlet allows you to configure the virtual switch settings to restrict communication between the VMs and the host. The other options do not provide the necessary functionality to isolate the VMs from the host while allowing them to communicate with each other.