Home / Microsoft / AZ-300 / Question 35

Prev Question
Next Question

Question 35

You create two Azure virtual machines (VMs) named vm1 and vm2, and then you add them to a virtual network. The private IP addresses for vm1 and vm2 are and, respectively. You connect to vm1 by using Remote Desktop from your laptop computer.

You run the following PowerShell cmdlet on vm1:


You receive an error message that the request timed out.

You must ensure that the ping command is successful.

You need to run a PowerShell cmdlet on vm2.

How should you complete the cmdlet?



Explanation (click to expand)

You should run the following cmdlet on vm2:

New-NetFirewallRule -DisplayName "Ping" -Protocol ICMPv4

This cmdlet creates a firewall rule that allows inbound Internet Control Message Protocol (ICMP) traffic to reach vm2. This is necessary because the ping command uses ICMP to communicate.

You should not run the following cmdlet on vm2:

New-NetFirewallRule -DisplayName "Ping" -Protocol TCP -LocalPort 3389

This cmdlet opens TCP port 3389 on vm2. This is the default port for Remote Desktop. The problem is that the ping command is not successful. Also, all of the parts for that cmdlet are not available.

You should not run the following cmdlet on vm2:

New-NetIPsecRule -InboundSecurity Require -RemoteAddress

The New-NetIPsecRule cmdlet allows you to configure an IPsec rule. IPsec is a collection of protocols that allow secure communication across IP networks. The problem in this scenario is related to ping, not IPsec.

References (click to expand)

Prev Question
Next Question

Load more