exam questions

Exam AZ-700 All Questions

View all questions & answers for the AZ-700 exam

Exam AZ-700 topic 1 question 15 discussion

Actual exam question from Microsoft's AZ-700
Question #: 15
Topic #: 1
[All AZ-700 Questions]

HOTSPOT
-

You have an Azure virtual network and an on-premises datacenter that connect by using a Site-to-Site VPN tunnel.

You need to ensure that all traffic from the virtual network to the internet is routed through the datacenter.

How should you complete the PowerShell script to configure forced tunneling? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DavidSapery
Highly Voted 1 year, 5 months ago
Answer is correct. It's the exact example in https://learn.microsoft.com/en-us/powershell/module/az.network/set-azvirtualnetworkgatewaydefaultsite?view=azps-9.2.0
upvoted 15 times
...
nabeel79
Most Recent 2 weeks, 3 days ago
Get-AzLocalNetworkGateway AzVirtualNetworkGatewayDefaultSite
upvoted 1 times
...
Verytutos
8 months, 4 weeks ago
Appeared on Exam 05 Sep 2023
upvoted 3 times
...
dani999
1 year, 4 months ago
Correct answer : $LocalGateway = Get-AzLocalNetworkGateway -Name "ContosoLocalGateway " -ResourceGroupName "ContosoResourceGroup" $VirtualGateway = Get-AzVirtualNetworkGateway -Name "ContosoVirtualGateway" Set-AzVirtualNetworkGatewayDefaultSite -GatewayDefaultSite $LocalGateway -VirtualNetworkGateway $VirtualGateway
upvoted 4 times
...
liono
1 year, 4 months ago
Correct. Local Network gateway for sending all internet traffic via on-prem DC
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...