Exam-Answer

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 10.1.0.10 and 10.1.0.11, respectively. You connect to vm1 by using Remote Desktop from your laptop computer.

You run the following PowerShell cmdlet on vm1:

ping 10.1.0.11

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?

Answers



A B C D

Advertisement

Explanation

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 10.1.0.10

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

Comments

Load more
Prev Question
Next Question