Courseiva
Advanced Networking and SD-WANmediumMultiple ChoiceObjective-mapped

NSE7 Advanced Networking and SD-WAN Practice Question

An administrator configures a route-map to match prefix-list 'PREFIX' and set metric 20. Which OSPF route redistribution uses this route-map correctly?

⚠ Common exam trap

Watch out — candidates often confuse the global 'set route-map' under 'config router ospf' (which is not a valid command in FortiOS) with the per-redistribution 'set route-map' inside 'config redistribute', leading them to select option C instead of A.

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

config router ospf config redistribute "connected" set route-map "RM" end

In FortiOS, the route-map is applied to a specific redistribution rule under 'config router ospf' using the 'set route-map' command within the 'config redistribute' block. This correctly associates the route-map 'RM' with the redistribution of connected routes into OSPF, matching the prefix-list 'PREFIX' and setting the metric to 20.

Answer analysis

Option-by-option breakdown

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

  • config router ospf config redistribute "connected" set route-map "RM" end

    Why this is correct

    Route-map is applied in the redistribute configuration.

  • config router policy config route-map edit "RM" config rule set match-ip-address "PREFIX" set set-metric 20 end end

    Why it's wrong here

    This defines the route-map but does not apply it.

  • config router ospf set route-map "RM"

    Why it's wrong here

    Route-map is not set at the global OSPF level.

  • config router prefix-list edit "PREFIX" set rule permit 10.0.0.0/8 end

    Why it's wrong here

    This defines a prefix-list, not a route-map.

Visual reference

R1 R2 R3 R4 10 100 10 100 OSPF picks R1→R2→R4 (cost 20) over R1→R3→R4 (cost 200)

About these practice questions

One of 940 original NSE7 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This NSE7 practice question is part of Courseiva's free Fortinet 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 NSE7 exam.