exam questions

Exam AZ-700 All Questions

View all questions & answers for the AZ-700 exam

Exam AZ-700 topic 3 question 28 discussion

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

HOTSPOT -
You configure a route table named RT1 that has the routes shown in the following table.

You have an Azure virtual network named Vnet1 that has the subnets shown in the following table.

You have the resources shown in the following table.

Vnet1 connects to an ExpressRoute circuit. The on-premises router advertises the following routes:
✑ 0.0.0.0/0
✑ 10.0.0.0/16
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Yes -
NVA1 with IP (NVA-network virtual appliance) 192.168.0.4 is on the DMZ subnet. It will use route 10.0.0.0/16 to the on-premises network.

Box 2: No -
VM2 has IP address 192.168.2.4 and is on the BackEnd subnet. VM2 will not use the RT1 route table, and will not reach the on-premises network through NVA1.

Box 3: Yes -
VM1 with IP address 192.168.1.4 is on the FrontEnd subnet, and will use the RT1 routing table. It will use Route2 and Next Hop IP address 192.168.0.4, IP address of NVA1, to reach VM2.

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
Cristoicach91
Highly Voted 2 years, 7 months ago
YNN. Route 0.0.0.0/0 is advertised to NVA from on-prem. VM2 learns route 10.0.0.0/16 from on-prem. VM1 and VM2 are in different subnets, but same virtual network, there is a system route that is a better match than the one in the route table.
upvoted 40 times
manhattan
3 months, 3 weeks ago
correct, YNN the third one is a No with custom UDR you don't override the Virtual network system default, read here: Virtual network: Specify the Virtual network option when you want to override the default routing within a virtual network. For an example of why you might create a route with the Virtual network hop type, see Routing example. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#routing-example
upvoted 1 times
...
Chriscrown
2 years, 7 months ago
YNY .. Box 3 is yes as it is using the UDR ( RT1) which points to the NVA as its default gateway. UDR gets higher priority. https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
upvoted 13 times
mav3r1ck
2 years, 7 months ago
Agree. If multiple routes contain the same address prefix, Azure selects the route type, based on the following priority: - User-defined route - BGP route - System route
upvoted 5 times
Lrrr_FromOmicronPersei8
2 years, 5 months ago
Well no, you get a longer prefix system-generated route with a next-hop type VnetLocal, therefore YNN.
upvoted 8 times
TJ001
2 years, 3 months ago
VNET route is more specific address than 0/0 UDR .. so I will go with YNN
upvoted 3 times
...
...
...
...
sapien45
2 years, 6 months ago
Perfect Answer. Both below answers are based on not reading : ONLY if If multiple routes contain the SAME address prefix, UDR prevails
upvoted 2 times
...
prabhjot
1 year, 3 months ago
The last ands is N ( as RT will over ride the System route) as RT is applied on the VM1 via the subnet
upvoted 1 times
...
...
jellybiscuit
Highly Voted 2 years, 6 months ago
YNY UDRs exist for a reason: to override the default behavior of Azure routing - It is correct that there is a default route that would allow VM1 to communicate with VM2 - that route is superseded by the UDR - Someone has intentionally decided that all outbound traffic from the frontend subnet should pass through the NVA (firewall). It is important to know that the other routes exist and in what order they are used 1) User-defined 2) BGP 3) system/default Just remember that if they show you a route table, it is a UDR and is always in-use. If you want to see the full list of routes, find it by looking at Effective Routes from the portal.
upvoted 13 times
mickeysonix
2 years, 3 months ago
Thought similar, but Azure uses the longest prefix match algorithm and only after that it uses UDRs. So VNet2 has a system defined route of longer prefix than BGP ones and UDRs and therefore traffic is direct.
upvoted 1 times
...
Prutser2
2 years, 6 months ago
not always, there is still the mechanism of the longest match, for instance in box 3, even though there is a UDR, the longest match is still the route that dictates that subnets within the same vnet can flow.
upvoted 2 times
...
...
Jsgthanh
Most Recent 7 months, 3 weeks ago
YNN, the last is N , tested on lab For context, if Vnet1 has subnet 192.168.0.0/16, so it need to have entry 192.168.0.0 point to NVA on RT. So, the traffic matched is Vnet range
upvoted 2 times
...
AlainChk
9 months ago
Just a comment: what is the use of Route 2 if 0.0.0.0/0 is routed to the NVA
upvoted 1 times
...
LieJ0n
1 year ago
YNY https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#default-route When you override the 0.0.0.0/0 address prefix, not only does outbound traffic from the subnet flow through the virtual network gateway or virtual appliance, but the following changes also occur with Azure's default routing
upvoted 1 times
...
Lazylinux
1 year, 7 months ago
YNN is my answer for 3rd it is on same vnet and there is no overriding route in the NVA and hence default route will take place i.e. internal GWY and hence direct traffic
upvoted 5 times
...
azure_dori
1 year, 7 months ago
My 2 cents are: YNY The third question is No, because VM1 and VM2 are in different subnets and Route1 means that the traffic between the subnets of Vnet1 goes through NVA1. Only if VM1 and VM2 are in the same subnet => the traffic between them flows directly. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#routing-example
upvoted 1 times
azure_dori
1 year, 7 months ago
I mean "The third question is" Yes, of course. Sorry for the typo.
upvoted 1 times
...
...
crypto700
1 year, 11 months ago
YNN, VM1 will get to VM2 without NVA because they are in the same Vnet.
upvoted 5 times
...
AzureLearner01
2 years, 1 month ago
My answer is Yes, No, No. I think Q1 and Q2 are obvious. but Q3 is not. UDR will overwrite the system route but only if you create a specific route not the default route 0.0.0.0/0. The default route 0.0.0.0/0 would not overwrite the system route, so next Hop is the internal GW from the subnet and not the nva. To verify this theory i've created a UDR that routes traffic from the subnet of VM1 to the subnet of VM2 over the NVA. Traffic from VM1 will go over the nva to VM2 even if they are in the same VNet.
upvoted 4 times
...
Hajji
2 years, 1 month ago
YNY When you create a route table and associate it to a subnet, the table's routes are combined with the subnet's default routes. If there are conflicting route assignments, user-defined routes will override the default routes. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
upvoted 1 times
...
ejml
2 years, 2 months ago
Default routes of the one subnet are the address space of the its virtual network and virtual networks peered. In the worst case, when both routes (UDR and System Route) UDR has higher priority. Answer is YNY
upvoted 2 times
...
eVo3000
2 years, 3 months ago
YNN https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#how-azure-selects-a-route "When outbound traffic is sent from a subnet, Azure selects a route based on the destination IP address, using the longest prefix match algorithm[...]If multiple routes contain the same address prefix, Azure selects the route type, based on the following priority: 1.User-defined route 2.BGP route 3.System route In our case, we do not take the default route
upvoted 6 times
GBAU
1 year, 6 months ago
Important omission to the above details from that page: Note System routes for traffic related to virtual network, virtual network peerings, or virtual network service endpoints, are preferred routes, even if BGP routes are more specific.
upvoted 1 times
...
...
jotajotajeje
2 years, 5 months ago
YNN. 1-Route 0.0.0.0/0 is advertised to NVA from on-prem and it doesn't have routing table. 2-VM2 has no routing table hence it will go via the 0.0.0.0/0 advertised via BGP from the on premises router that has more priority that system route 0.0.0.0/0 to internet via Azure network 3-VM1 and VM2 are in different subnets, but same virtual network, there is a system route in every subnet/VM interface that has the network and mask of the entire VNET where the subnet is, therefore as it has the prefix length bigger than the default route it will prefer going directly from VM to VM.
upvoted 3 times
...
JWYANG
2 years, 6 months ago
YNY Azure automatically added this route for all subnets within Virtual-network-1, because 10.0.0.0/16 is the only address range defined in the address space for the virtual network. If the user-defined route in route ID2 weren't created, traffic sent to any address between 10.0.0.1 and 10.0.255.254 would be routed within the virtual network, because the prefix is longer than 0.0.0.0/0, and not within the address prefixes of any of the other routes. Azure automatically changed the state from Active to Invalid, when ID2, a user-defined route, was added, since it has the same prefix as the default route, and user-defined routes override default routes. The state of this route is still Active for Subnet2, because the route table that user-defined route, ID2 is in, isn't associated to Subnet2. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#routing-example
upvoted 2 times
mickeysonix
2 years, 3 months ago
Thought similar, but Azure uses the longest prefix match algorithm and only after that it uses UDRs. So VNet2 has a system defined route of longer prefix than BGP ones and UDRs and therefore traffic is direct.
upvoted 2 times
...
...
DeepMoon
2 years, 6 months ago
Given Answers are incorrect. Correct Answers Q1: Yes. Why? Because On-Prem router advertises 0.0.0.0/0 route to the NVA through a Express Route. We are not told NVA has any other route. Q2: Yes. Why? Because VM2 is on backend subnet (192.168.2.0/24) it has no UDR. But NVA1 is advertising all the routes on its table (that includes what it learned from On-Prem) to the all of VNet1. NVA1 knows how to get to 10.0.0/16 network via On-Prem router. Q3:No. Why? Because VM1 & VM2 are in VNET1. Azure by default knows how to route traffic between its subnets without needing a UDR's.
upvoted 1 times
...
sapien45
2 years, 6 months ago
YNN. Read the link in its entirety ! Especially the implementation example. The very same routes are being displayed. Route ID1 is not invalidated by route ID12 because the prefix is longer than 0.0.0.0/0
upvoted 2 times
...
andry79
2 years, 7 months ago
Tested in lab, is YNN
upvoted 6 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago