JNCIP-ENT BGP Advanced Practice Question
A BGP routing policy on a Junos router uses an 'as-path' regular expression '^[0-9]+$' in a match condition. Which routes will this regular expression match?
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
✓
Routes whose AS path contains exactly one AS number ( originated from a directly connected neighboring AS ).
The regex '^[0-9]+$' matches an AS path that consists of exactly one autonomous system number (from the beginning to the end of the path string).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Routes that contain internal confederation segments.
Why it's wrong here
Confederation segments contain parentheses or distinct formatting not matched by a pure digit expression.
- ✓
Routes whose AS path contains exactly one AS number ( originated from a directly connected neighboring AS ).
Why this is correct
The anchors ^ and $, combined with digits and plus sign, match exactly a single AS number in the path.
- ✗
Routes whose AS path starts with local AS 65000 and has multiple hops.
Why it's wrong here
Multiple hops would contain spaces between numbers.
- ✗
Any route originating from any AS path of any length.
Why it's wrong here
Any length would allow spaces and multiple AS numbers.
About these practice questions
This JNCIP-ENT question is part of Courseiva's 332-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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint
This JNCIP-ENT practice question is part of Courseiva's free Juniper Networks 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 JNCIP-ENT exam.