Courseiva
Question 757 of 1,389
IP RoutingmediumMultiple SelectObjective-mapped

CCNA IP Routing Practice Question

Which two statements accurately describe longest-prefix match?

⚠ Common exam trap

A frequent exam trap is assuming that the default route (0.0.0.0/0) is preferred over more specific routes. Many candidates mistakenly believe the default route is always the first choice, but in reality, it is the least specific and only used when no other matching route exists. Another trap is confusing administrative distance with longest-prefix match; administrative distance only applies when choosing between routes learned from different sources, not when selecting the most specific prefix. Misunderstanding these concepts can lead to incorrect answers about routing behavior in Cisco devices.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The most specific matching route is preferred over broader matching routes.

Longest-prefix match means the router prefers the most specific route that matches the destination. In plain language, if several routes could all work, the router chooses the one that describes the destination range most precisely. That is why a /25 wins over a /24, and a /24 wins over a /16, when all of them match the same destination. This is a foundational routing rule. The wrong answers usually confuse route specificity with route-source trust or assume the default route is considered first. The two correct answers are the ones that keep the focus on specificity.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The most specific matching route is preferred over broader matching routes.

    Why this is correct

    Longest-prefix match (LPM) is the fundamental forwarding decision rule used by routers: when multiple routing table entries match a destination IP address, the router chooses the route with the longest subnet mask, because that route identifies the smallest, most precise address range. This ensures that a host route (/32) or a /26 will always beat a less specific /16 or default route, guaranteeing predictable path selection toward the most exact destination.

  • A /24 is more specific than a /16.

    Why this is correct

    Prefix length expresses the number of fixed network bits in the subnet mask; /24 has 24 network bits and 8 host bits, while /16 has 16 network bits and 16 host bits. Because a /24 defines a block of 256 addresses and a /16 defines a block of 65,536 addresses, the /24 falls entirely inside the /16 and is therefore much narrower in scope. In longest-prefix match, the /24's longer prefix length gives it priority whenever a destination address falls within both ranges.

  • The default route is always preferred over a matching specific route.

    Why it's wrong here

    The default route (0.0.0.0/0) has the shortest prefix length and is only used when no more specific route exists; longest-prefix match selects the route with the longest subnet mask, so a specific route always takes precedence over the default. This option is tempting because a default route acts as a catch-all for unknown destinations, but it is never preferred over a matching specific route in the forwarding decision.

    When this WOULD be correct

    In a question that asks about routing behavior in a scenario where a network is configured to prioritize default routes for certain traffic types, such as in a failover situation, this option could be correct. For example, if a default route is explicitly configured to take precedence over specific routes for redundancy purposes.

  • Administrative distance replaces the need for longest-prefix match.

    Why it's wrong here

    Administrative distance (AD) is only used to compare routes to the same destination prefix from different routing protocols or sources (e.g., a static route with AD 1 vs. OSPF with AD 110); it does not compare routes of differing prefix lengths. Longest-prefix match operates independently and first selects the route with the longest subnet mask before AD is ever considered. If AD could override LPM, routers would load-balance across or choose a less precise route, causing incorrect forwarding—so both metrics coexist in the routing decision process.

    When this WOULD be correct

    In a question that asks about route selection criteria in a routing protocol where administrative distance is the sole factor for determining route preference, this option could be correct. For example, if the question specifies that the longest-prefix match is not applicable and only administrative distance is considered, then this statement would hold true.

  • A /16 is more specific than a /24.

    Why it's wrong here

    This reverses the meaning of prefix length: a /16 actually represents a larger, less specific address range (two octets of host bits), while a /24 represents a smaller, more specific range (one octet of host bits). Treating /16 as more specific contradicts the longest-prefix rule that higher prefix bit counts define shorter, more precise network segments. For example, 192.168.1.0/24 nests within 192.168.0.0/16, so the /24 is the more specific match.

    When this WOULD be correct

    If the exam question were to ask which subnet mask is less specific in a routing context, or if it specifically stated that the context was reversed or misinterpreted, then option E could be correct. For example, a question could state, 'Which of the following is true if we consider broader ranges?'

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.

The most specific matching route is preferred over broader matching routes.Correct answer

Why this is correct

Longest-prefix match (LPM) is the fundamental forwarding decision rule used by routers: when multiple routing table entries match a destination IP address, the router chooses the route with the longest subnet mask, because that route identifies the smallest, most precise address range. This ensures that a host route (/32) or a /26 will always beat a less specific /16 or default route, guaranteeing predictable path selection toward the most exact destination.

The default route is always preferred over a matching specific route.Wrong answer — click to see why

Why this is wrong here

The default route (0.0.0.0/0) has the shortest prefix length and is only used when no more specific route matches the destination. A specific route, such as a /24, will always be preferred over the default route for matching traffic.

★ When this WOULD be the correct answer

In a question that asks about routing behavior in a scenario where a network is configured to prioritize default routes for certain traffic types, such as in a failover situation, this option could be correct. For example, if a default route is explicitly configured to take precedence over specific routes for redundancy purposes.

Why candidates choose this

Students may think the default route is a catch-all and thus preferred, but they forget that longest-prefix match prioritizes specificity over generality.

Administrative distance replaces the need for longest-prefix match.Wrong answer — click to see why

Why this is wrong here

Administrative distance (AD) is used to select between routes from different routing protocols to the same destination, while longest-prefix match is used to select the most specific route among all routes, regardless of AD. They serve different purposes and both are used in route selection.

★ When this WOULD be the correct answer

In a question that asks about route selection criteria in a routing protocol where administrative distance is the sole factor for determining route preference, this option could be correct. For example, if the question specifies that the longest-prefix match is not applicable and only administrative distance is considered, then this statement would hold true.

Why candidates choose this

Students might confuse AD with prefix length because both influence route selection, but AD compares trustworthiness of routing sources, not specificity of prefixes.

A /16 is more specific than a /24.Wrong answer — click to see why

Why this is wrong here

A /16 prefix is less specific than a /24 because it has a shorter prefix length and covers a larger address range. Longest-prefix match prefers longer prefixes, so a /24 is more specific than a /16.

★ When this WOULD be the correct answer

If the exam question were to ask which subnet mask is less specific in a routing context, or if it specifically stated that the context was reversed or misinterpreted, then option E could be correct. For example, a question could state, 'Which of the following is true if we consider broader ranges?'

Why candidates choose this

Students may incorrectly associate larger subnet masks with less specificity, or they might reverse the relationship between prefix length and specificity.

Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

Quick reference

Routing Protocol Comparison

ProtocolMetricMax HopsAlgorithmType
RIP v2Hop count15Bellman-FordDistance vector
OSPFCost (bandwidth)UnlimitedDijkstra (SPF)Link state
EIGRPComposite metricUnlimitedDUALHybrid
IS-ISCostUnlimitedDijkstraLink state
BGPPolicy / attributesUnlimitedPath vectorPath vector

RIP's 15-hop limit makes it unsuitable for large networks. OSPF and EIGRP dominate modern enterprise deployments.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Apr 12, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This 200-301 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-301 exam.