A router has learned route 172.16.50.0/24 from OSPF with cost 20 and also has a static route to the same prefix with administrative distance 5. Which two statements are correct about route selection?
The router selects routes based on administrative distance (AD) when multiple sources provide paths to the same prefix. The static route in this scenario has an explicitly configured AD of 5. This value is lower than OSPF's default administrative distance of 110. Therefore, the static route is installed into the routing table, as it satisfies the crucial criterion of having the lowest administrative distance for the 172.16.50.0/24 network.
Why this answer
When the same prefix is learned from different routing sources, the router first compares administrative distance (AD). The static route with AD 5 wins over OSPF with AD 110, so option A is correct. Option C is correct because if the static route is removed, the OSPF route becomes the next best candidate and is installed.
Option B is wrong since AD is compared before metrics like OSPF cost; a lower cost does not override a lower AD. Option D is wrong because only one route is installed per destination based on AD, not both.
Exam trap
A common exam trap is to incorrectly assume that the OSPF route with a lower cost metric will be preferred over a static route. Many candidates mistakenly compare OSPF cost directly against the static route’s metric or ignore administrative distance entirely. This leads to the wrong conclusion that OSPF wins because 20 is less than 0 or some assumed static metric.
However, Cisco routers always compare administrative distance first when routes come from different sources. Ignoring this rule causes confusion and incorrect answers in routing questions involving multiple protocols.
Why the other options are wrong
Option B is incorrect because metrics like OSPF cost are only compared among routes from the same protocol; the router does not compare OSPF cost against static route administrative distance.
Option D is incorrect because routes from different sources with different administrative distances do not qualify for equal-cost multipath (ECMP), so both routes are not installed simultaneously.