Courseiva
Layer 3 Technologies →mediumMultiple Choice

300-410 Layer 3 Technologies Practice Question

A network engineer is configuring a route map for BGP policy. The engineer wants to match routes that originate from AS 65001 and have a community value of 100:200. The route map should then set the local preference to 200. Which configuration snippet accomplishes this?

⚠ Common exam trap

The trap here is forgetting to define the community list or the AS-path access list, or using a regex that matches AS 65001 anywhere in the path rather than as the origin.

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

✓

ip as-path access-list 1 permit ^65001$ ip community-list standard 1 permit 100:200 route-map POLICY permit 10 match as-path 1 match community 1 set local-preference 200

To match routes from AS 65001 with community 100:200 and set local preference, the configuration must include both an AS-path access list and a community list, and apply both matches in the route map. The correct snippet defines the AS-path access list with the regex ^65001$ to match routes originated in AS 65001, defines a standard community list to match 100:200, and then uses both in the route map with the set clause.

Answer analysis

Option-by-option breakdown

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

  • ✗

    ip as-path access-list 1 permit ^65001$ route-map POLICY permit 10 match as-path 1 set local-preference 200

    Why it's wrong here

    This configuration matches routes originating from AS 65001 using an AS-path access list and sets the local preference, but it does not match the community value 100:200. The requirement explicitly states that routes must have the community 100:200. Without a community match, routes from AS 65001 without that community would also be affected, which is not desired.

  • ✗

    route-map POLICY permit 10 match as-path 1 match community 1 set local-preference 200

    Why it's wrong here

    This configuration uses an AS-path access list and a community list, but it does not specify how those lists are defined. Without defining the AS-path access list 1 to match AS 65001 and the community list 1 to match 100:200, the route map will not work as intended. The question asks for a configuration snippet that accomplishes the goal, and this snippet is incomplete because it lacks the definitions of the AS-path and community lists.

  • ✓

    ip as-path access-list 1 permit ^65001$ ip community-list standard 1 permit 100:200 route-map POLICY permit 10 match as-path 1 match community 1 set local-preference 200

    Why this is correct

    This configuration defines an AS-path access list to match routes originating from AS 65001 (using the regular expression ^65001$) and a community list to match the community 100:200. The route map then matches both conditions and sets the local preference to 200. This fully satisfies the requirement.

  • ✗

    ip community-list standard 1 permit 100:200 route-map POLICY permit 10 match community 1 set local-preference 200

    Why it's wrong here

    This configuration correctly defines a community list to match 100:200 and applies it in the route map, but it does not match routes originating from AS 65001. The requirement is to match both the AS origin and the community. Without an AS-path match, routes from any AS with the community 100:200 would match, which is not the intended policy.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

About these practice questions

This 300-410 question is part of Courseiva's 1,401-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

This 300-410 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 300-410 exam.