350-501 Networking Practice Question
A router is receiving a BGP prefix with community 100:100. The operator wants to modify the local preference to 200 for this prefix. Which configuration will achieve this?
⚠ Common exam trap
Cisco often tests the distinction between BGP attributes (local preference, weight, MED, community) and their respective `set` commands, leading candidates to confuse `set weight` or `set metric` with `set local-preference` when the goal is to influence path selection within the AS.
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
✓
route-map SET_LP permit 10, match community 100, set local-preference 200
The route-map uses `match community 100` to identify the BGP community value 100:100 (in Cisco's default format, the community is matched without the colon), and `set local-preference 200` modifies the local preference for that prefix to 200. This is the standard method to influence inbound BGP path selection by adjusting local preference based on community matching.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
route-map SET_LP permit 10, match community 100, set local-preference 200
Why this is correct
Correct. This sets local preference as desired.
- ✗
route-map SET_LP permit 10, match ip address prefix-list, set weight 200
Why it's wrong here
Incorrect. This sets weight.
- ✗
ip bgp-community new-format, route-map SET_LP permit 10, match community 100, set community 200
Why it's wrong here
Incorrect. This sets community, not local preference.
- ✗
route-map SET_LP permit 10, match community 100, set metric 200
Why it's wrong here
Incorrect. This sets MED.
Go deeper
Related to this question
About these practice questions
This 350-501 question is part of Courseiva's 971-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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-501 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 350-501 exam.