Skip to content

AZ-700 · Domain 2: Design, implement, and manage connectivity services · 23% of the exam

Task 2.1: Design, implement, and manage a site-to-site VPN connection

Highly available site-to-site designs, gateway SKUs, policy-based and route-based VPNs, local network gateways, IPsec/IKE policies, gateway troubleshooting, and Azure Extended Network.

Study it

  • Site-to-site VPN: gateway SKUs, route-based and policy-based VPNs, IPsec/IKE policies and high availability

    Partly covered by: Hybrid Networking & DNS

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

A route-based VPN gateway in VNet-Hub has two site-to-site connections. to-branch1 uses local network gateway lng-branch1, with the FQDN branch1.example.net as endpoint and address space 192.168.10.0/24. to-branch2 uses lng-branch2, with endpoint IP 203.0.113.20 and address space 192.168.0.0/16. Traffic to branch1's servers sometimes ends up at branch2. Branch2 uses only 192.168.20.0/24 and 192.168.30.0/24. What should you change?

  1. AReplace branch1's FQDN with its current IP address, since local network gateways need a fixed IP
  2. BMake the FQDN resolve to two addresses for a spare
  3. CSwitch the gateway to active-active so that each connection gets its own instance
  4. DSet lng-branch2's address space to 192.168.20.0/24 and 192.168.30.0/24
Show the answer and why
  • AReplace branch1's FQDN with its current IP address, since local network gateways need a fixed IP

    Incorrect

    A local network gateway can use an FQDN, for example with a dynamic DNS name for a device whose public IP changes.

  • BMake the FQDN resolve to two addresses for a spare

    Incorrect

    The gateway uses only the first IPv4 address an FQDN returns, so one address per FQDN is recommended.

  • CSwitch the gateway to active-active so that each connection gets its own instance

    Incorrect

    A gateway in either mode can have several connections; the mode isn't what sends branch1's traffic elsewhere.

  • DSet lng-branch2's address space to 192.168.20.0/24 and 192.168.30.0/24

    Correct

    The address spaces of a gateway's connections can't overlap, and 192.168.0.0/16 covers branch1's range.

When one VPN gateway connects to several sites, the address spaces of the connections can't overlap. Listing only the prefixes that branch2 uses removes the overlap with branch1. A local network gateway may point at an FQDN, which should resolve to a single IPv4 address.

Question 2 · choose 1

You plan a new VPN gateway in active-active mode. It will carry site-to-site tunnels and also serve point-to-site users. Which public IP addresses does the gateway need?

  1. AOne Standard static address, shared by both instances
  2. BThree Standard static addresses: one per instance and one for point-to-site
  3. CTwo Standard static addresses, with point-to-site reusing the first instance's
  4. DTwo Standard static addresses: one for both instances, one for point-to-site
Show the answer and why
  • AOne Standard static address, shared by both instances

    Incorrect

    In active-active mode each gateway instance has its own public IP address.

  • BThree Standard static addresses: one per instance and one for point-to-site

    Correct

    Active-active needs two Standard static addresses, and point-to-site on the gateway needs a third.

  • CTwo Standard static addresses, with point-to-site reusing the first instance's

    Incorrect

    With point-to-site enabled, an active-active gateway needs a third public IP address for the point-to-site endpoint.

  • DTwo Standard static addresses: one for both instances, one for point-to-site

    Incorrect

    Each instance needs its own address; they can't share one.

An active-active gateway has two instances, each with a unique Standard, statically assigned public IP address. If point-to-site is enabled, a third public IP address serves the point-to-site endpoint.

Question 3 · choose 1

One site-to-site tunnel on a route-based VPN gateway stopped coming up after a change on the partner's side; the gateway's other tunnels are fine. You want the gateway's IKE logs to find the cause, without any action that could interrupt the other tunnels. What should you do?

  1. ARun VPN troubleshoot in Network Watcher on the connection
  2. BReset the VPN gateway and check the tunnel again
  3. CRun IP flow verify toward the partner's device
  4. DConvert the gateway to active-active mode
Show the answer and why
  • ARun VPN troubleshoot in Network Watcher on the connection

    Correct

    VPN troubleshoot supports route-based gateways and IPsec connections, and it writes the troubleshooting logs, including IKE activity, to a storage account.

  • BReset the VPN gateway and check the tunnel again

    Incorrect

    A reset reboots a gateway instance, so the other tunnels can see a brief disruption, and it produces no logs.

  • CRun IP flow verify toward the partner's device

    Incorrect

    IP flow verify tests the security rules of a VM's network interface; it doesn't look at a gateway's IKE negotiation.

  • DConvert the gateway to active-active mode

    Incorrect

    The mode doesn't explain a failed negotiation, and converting a gateway can cause downtime.

Network Watcher VPN troubleshoot checks a virtual network gateway or a connection and stores its log files, such as IkeLogs.txt, in a storage account. A gateway reset reboots an instance and is the step to take only once the configuration on both sides has been verified.

Question 4 · choose 1

A dev-test site-to-site connection must exchange routes with the on-premises router over BGP, and the team wants the cheapest gateway that supports it. Which gateway SKU choice is valid?

  1. ABasic, with BGP turned on for the connection
  2. BVpnGw1AZ, a route-based SKU that supports BGP
  3. CBasic, configured as a policy-based gateway
  4. DBasic, because BGP is only needed on the on-premises side
Show the answer and why
  • ABasic, with BGP turned on for the connection

    Incorrect

    BGP is listed for every SKU except Basic.

  • BVpnGw1AZ, a route-based SKU that supports BGP

    Correct

    Every SKU except Basic supports route-based VPN with BGP.

  • CBasic, configured as a policy-based gateway

    Incorrect

    A policy-based Basic gateway offers one IKEv1 tunnel and no BGP.

  • DBasic, because BGP is only needed on the on-premises side

    Incorrect

    The Basic SKU doesn't support BGP, so it can't take part in the BGP session.

The Basic SKU has feature and performance limits and isn't meant for production, and it doesn't support BGP. Every other SKU supports route-based VPN with BGP.

Question 5 · choose 1

A new site-to-site connection stays disconnected. The on-premises VPN device and the Azure connection both use IKEv2, and their public IP addresses are correct, but the device was set up with a different pre-shared key than the connection. What should you do?

  1. AReset the VPN gateway so that it renegotiates the keys
  2. BEnable BGP on the connection
  3. CRecreate the local network gateway with the device's FQDN
  4. DSet the same shared key on the device and on the connection
Show the answer and why
  • AReset the VPN gateway so that it renegotiates the keys

    Incorrect

    A reset reapplies the same configuration; a mismatched key still fails.

  • BEnable BGP on the connection

    Incorrect

    BGP exchanges routes once a tunnel is up; it doesn't fix authentication.

  • CRecreate the local network gateway with the device's FQDN

    Incorrect

    The addresses are already correct; the key is the mismatch.

  • DSet the same shared key on the device and on the connection

    Correct

    The shared key values must match on both sides of the connection.

A site-to-site connection authenticates with a pre-shared key, and the value configured on the Azure connection and on the on-premises device must be the same.

Question 6 · choose 1

VNet-Prod is in West Europe. To be closer to a branch office, an engineer wants to create the virtual network gateway for VNet-Prod in North Europe. What should you tell the engineer?

  1. AIt works if the gateway uses a zone-redundant SKU
  2. BIt isn't possible; the gateway must be in the same region as its virtual network
  3. CIt works once VNet-Prod is peered with a North Europe network
  4. DIt works if the GatewaySubnet is created in North Europe before the gateway is deployed
Show the answer and why
  • AIt works if the gateway uses a zone-redundant SKU

    Incorrect

    The SKU doesn't change where the gateway can be created.

  • BIt isn't possible; the gateway must be in the same region as its virtual network

    Correct

    The region of the gateway must be the same as the region of the virtual network.

  • CIt works once VNet-Prod is peered with a North Europe network

    Incorrect

    Peering doesn't let a gateway be created in another region.

  • DIt works if the GatewaySubnet is created in North Europe before the gateway is deployed

    Incorrect

    A subnet belongs to its virtual network's region.

A virtual network gateway is created in the same region as the virtual network it serves; the local network gateway, by contrast, may be in any region.

Practice domain 2 →Practice all domains →