Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.
Question 1 · choose 1
vm-app runs Windows Server in VNet-App and has two network interfaces: nic-1 (primary) in snet-front and nic-2 (secondary) in snet-back. A firewall appliance at 10.0.3.4 in snet-nva already inspects and forwards the internet traffic of other subnets. Route table rt-back is associated with snet-back only. The effective routes of nic-2 are: Default, 10.0.0.0/16, next hop Virtual network; User, 0.0.0.0/0, next hop Virtual appliance 10.0.3.4. All internet-bound traffic from vm-app must pass through the appliance. What should you do?
ANothing; the network interfaces of a VM share one set of effective routes, so rt-back's route already applies to nic-1
BRestart vm-app so that Windows uses nic-2's routes
CAssociate rt-back with snet-front as well as snet-back
DEnable IP forwarding on nic-2 so that Windows sends its internet traffic through it
Show the answer and why
ANothing; the network interfaces of a VM share one set of effective routes, so rt-back's route already applies to nic-1
Incorrect
Each network interface gets the routes of its own subnet, so nic-1 follows snet-front's routes, not rt-back's.
BRestart vm-app so that Windows uses nic-2's routes
Incorrect
Windows gets a default gateway only on the primary interface, and a restart doesn't change that.
CAssociate rt-back with snet-front as well as snet-back
Correct
Windows sends internet-bound traffic through nic-1, the only interface with a default gateway, and nic-1 follows the routes of snet-front.
DEnable IP forwarding on nic-2 so that Windows sends its internet traffic through it
Incorrect
IP forwarding lets an interface forward traffic that isn't addressed to it; it doesn't give nic-2 a default gateway in Windows.
Azure assigns a default gateway only to a VM's primary network interface, so vm-app's internet-bound traffic leaves through nic-1. A network interface's effective routes are the routes of the subnet it's in, and rt-back is associated only with nic-2's subnet. Associating a route table with the 0.0.0.0/0 route to the appliance with snet-front sends that traffic to the appliance.
An administrator in subscription Sub-1 created a peering from VNet-Hub to VNet-App, which is in subscription Sub-2 of the same tenant. On VNet-Hub, the portal shows the peering hub-to-app with peering status Initiated and remote virtual network access Allowed. VNet-App has no peerings, and VMs in the two networks can't reach each other. What should you do?
ACreate the reverse peering, from VNet-App to VNet-Hub
BEnable gateway transit on the hub-to-app peering
CDelete hub-to-app and re-create it from VNet-App's side
DMove VNet-App into Sub-1, because peerings stay in one subscription
Show the answer and why
ACreate the reverse peering, from VNet-App to VNet-Hub
Correct
The status stays Initiated until the second peering exists; then both peerings become Connected.
BEnable gateway transit on the hub-to-app peering
Incorrect
Gateway transit shares a VPN or ExpressRoute gateway over a peering; it doesn't complete one.
CDelete hub-to-app and re-create it from VNet-App's side
Incorrect
Each of the two networks needs its own peering; one peering on either side is never enough.
DMove VNet-App into Sub-1, because peerings stay in one subscription
Incorrect
Virtual networks in different subscriptions can be peered.
A peering between two Resource Manager virtual networks is configured on each network. The first peering shows Initiated; when the second one is created, both show Connected, and only then is the peering established.
VNet-App is peered with two hubs: Hub-1, whose VPN gateway connects the branch offices, and Hub-2, whose ExpressRoute gateway connects the datacenter. Both hubs' peerings to VNet-App allow gateway transit. On VNet-App, the peering to Hub-1 uses Hub-1's remote gateway; the peering to Hub-2 doesn't use a remote gateway. VNet-App no longer needs the branch offices, but it must now reach the datacenter through Hub-2's gateway and keep its peering with Hub-1 for shared services. What should you do?
AEnable the use of Hub-2's remote gateway on VNet-App's peering to Hub-2, and keep it enabled toward Hub-1
BTurn off the use of Hub-1's remote gateway, then enable the use of Hub-2's remote gateway on VNet-App's peering to Hub-2
CEnable gateway transit on VNet-App's own peering to Hub-2
DKeep the use of Hub-1's remote gateway, and allow VNet-App's peering to Hub-2 to receive the traffic that Hub-2 forwards from the datacenter
Show the answer and why
AEnable the use of Hub-2's remote gateway on VNet-App's peering to Hub-2, and keep it enabled toward Hub-1
Incorrect
The use of a remote gateway can be enabled on only one of a virtual network's peerings.
BTurn off the use of Hub-1's remote gateway, then enable the use of Hub-2's remote gateway on VNet-App's peering to Hub-2
Correct
Only one peering of VNet-App can use a remote gateway, so the setting moves from the Hub-1 peering to the Hub-2 peering, which allows transit.
CEnable gateway transit on VNet-App's own peering to Hub-2
Incorrect
Gateway transit is allowed on the peering of the network that has the gateway; Hub-2's peering already allows it.
DKeep the use of Hub-1's remote gateway, and allow VNet-App's peering to Hub-2 to receive the traffic that Hub-2 forwards from the datacenter
Incorrect
Receiving forwarded traffic adds no routes; the datacenter's routes reach VNet-App only when it uses Hub-2's gateway through gateway transit.
The option to use the peered network's remote gateway can be enabled on only one of a virtual network's peerings, and only toward a network whose peering allows its gateway to forward traffic. VNet-App therefore turns the option off on its Hub-1 peering and turns it on for its Hub-2 peering; the peering with Hub-1 stays in place.
You prepare this Azure Route Server deployment in VNet-Hub: Subnet: RouteServerSubnet, 10.0.1.0/25; Public IP address: New Standard public IP; BGP peer nva-1: 10.0.3.4, ASN 65001; BGP peer nva-2: 10.0.3.5, ASN 4200000001. Both appliances will peer with both Route Server instances. Which change is needed before nva-2 can establish its sessions?
AA second Route Server, so that each appliance has its own
BNo public IP address, because a Route Server doesn't use one
CASN 65515 for nva-2, so that it matches the Route Server's ASN
DA 2-byte (16-bit) ASN for nva-2 in place of its 4200000001
Show the answer and why
AA second Route Server, so that each appliance has its own
Incorrect
One Route Server peers with several appliances, each of which peers with both of its instances.
BNo public IP address, because a Route Server doesn't use one
Incorrect
A Standard public IP address is required for the connection to the service that manages the Route Server.
CASN 65515 for nva-2, so that it matches the Route Server's ASN
Incorrect
The appliance's ASN must be different from the Route Server's ASN.
DA 2-byte (16-bit) ASN for nva-2 in place of its 4200000001
Correct
Route Server supports only 16-bit ASNs, and 4200000001 is a 32-bit ASN.
Route Server supports only 16-bit (2-byte) ASNs, and an appliance's ASN must be different from the Route Server's own ASN. One Route Server peers with several appliances, each peering with both of its instances.
A virtual network connects to on-premises through a route-based VPN gateway with BGP on the connection. Internet-bound traffic from every subnet must go to the on-premises edge firewall, except from subnet Frontend, whose VMs have Standard public IP addresses and must reach the internet directly while still reaching on-premises servers. Which two actions should you take? (Choose TWO.)
AHave the VPN gateway advertise 0.0.0.0/0 to the on-premises device over BGP
BAdd a route table to Frontend with 0.0.0.0/0, next hop Virtual network gateway
CHave the on-premises device advertise 0.0.0.0/0 to Azure over BGP
DAdd a route table to Frontend with 0.0.0.0/0, next hop Internet
EAssociate a network security group with Frontend that allows outbound traffic to the Internet service tag
Show the answer and why
AHave the VPN gateway advertise 0.0.0.0/0 to the on-premises device over BGP
Incorrect
Forced tunnelling over BGP needs the default route advertised from on-premises to Azure, not the other way.
BAdd a route table to Frontend with 0.0.0.0/0, next hop Virtual network gateway
Incorrect
That sends Frontend's internet traffic to on-premises, the opposite of what Frontend needs.
CHave the on-premises device advertise 0.0.0.0/0 to Azure over BGP
Correct
A default route advertised from on-premises over BGP sends the network's internet-bound traffic through the tunnel.
DAdd a route table to Frontend with 0.0.0.0/0, next hop Internet
Correct
For the same prefix a user-defined route beats the BGP route, so Frontend goes straight out while its on-premises routes still apply.
EAssociate a network security group with Frontend that allows outbound traffic to the Internet service tag
Incorrect
Security rules allow or deny traffic; they don't change the route it takes.
Forced tunnelling can be configured over BGP by advertising 0.0.0.0/0 from on-premises to Azure. A user-defined 0.0.0.0/0 route with next hop Internet on one subnet wins over the BGP default route for that subnet only.
A hub virtual network's only gateway is an ExpressRoute gateway. An engineer plans a route table for subnet snet-app with a route for 10.50.0.0/16 and next hop type Virtual network gateway. What's true about that route?
AIt works, since that next hop type accepts any type of gateway
BIt works once Azure Route Server is deployed in the hub
CIt works once a VPN gateway is added next to the ExpressRoute gateway
DIt isn't supported, because that next hop type needs a VPN gateway
Show the answer and why
AIt works, since that next hop type accepts any type of gateway
Incorrect
The next hop type is supported only when the network's gateway is a VPN gateway.
BIt works once Azure Route Server is deployed in the hub
Incorrect
With Route Server deployed, Route Server becomes the network's gateway, and the next hop type isn't supported for it either.
CIt works once a VPN gateway is added next to the ExpressRoute gateway
Incorrect
With both gateways deployed, the ExpressRoute gateway is set as the network's gateway, so the route still isn't supported.
DIt isn't supported, because that next hop type needs a VPN gateway
Correct
Routes with next hop type Virtual network gateway are supported only when the network's gateway is a VPN gateway.
A virtual network has a single gateway that the platform sets from the deployment. User-defined routes with next hop type Virtual network gateway are supported only when that gateway is a VPN gateway, not an ExpressRoute gateway, Route Server or a Virtual WAN hub router. When a VPN gateway and an ExpressRoute gateway share a network, the ExpressRoute gateway is the network's gateway.
Subnet snet-app already uses route table rt-app. You want it to use the routes of rt-shared as well. What's possible?
AAssociate rt-shared with snet-app as a second route table
BAssociate rt-shared with snet-app; the table with more routes wins
CAdd the needed routes to rt-app, or replace rt-app with rt-shared
DAssociate rt-shared with the virtual network, above the subnet's table
Show the answer and why
AAssociate rt-shared with snet-app as a second route table
Incorrect
A subnet can have zero or one route table associated with it.
BAssociate rt-shared with snet-app; the table with more routes wins
Incorrect
A subnet takes only one route table, so the tables never compete.
CAdd the needed routes to rt-app, or replace rt-app with rt-shared
Correct
Each subnet has at most one route table, while one route table can serve many subnets.
DAssociate rt-shared with the virtual network, above the subnet's table
Incorrect
Route tables are associated with subnets, not with virtual networks.
A route table can be associated with zero or more subnets, and each subnet with zero or one route table. Its routes are combined with the subnet's default routes.
VMs without public IP addresses in subnet snet-workers need outbound internet access. Partners also ask to start connections from the internet to those VMs. You plan to attach a NAT gateway to snet-workers. What does it provide?
AOutbound connections for the VMs and inbound connections from partners, through the same public IP
BInbound port forwarding from its public IP to each VM
COutbound access only for the VM that has the subnet's first address
DOutbound connections for all the subnet's VMs, but no unsolicited inbound connections
Show the answer and why
AOutbound connections for the VMs and inbound connections from partners, through the same public IP
Incorrect
A NAT gateway doesn't permit unsolicited inbound connections.
BInbound port forwarding from its public IP to each VM
Incorrect
A NAT gateway provides outbound connectivity, not inbound forwarding.
COutbound access only for the VM that has the subnet's first address
Incorrect
A NAT gateway serves all instances in the subnet.
DOutbound connections for all the subnet's VMs, but no unsolicited inbound connections
Correct
A NAT gateway lets all instances in a subnet connect out while staying private; it doesn't accept unsolicited inbound connections.
Azure NAT Gateway gives every instance in a subnet outbound internet connectivity while keeping it private. It doesn't permit unsolicited inbound connections from the internet, so inbound access needs another service.