Juniper certification · Exam JN0-364

JN0-364 Mock Exam

Service Provider Routing and Switching - Specialist (JNCIS-SP)

Free JN0-364 questions on Border Gateway Protocol (BGP), each with the answer and an explanation.

19 questions · 27 minutes · free, no sign-up

Border Gateway Protocol (BGP) questions

1–4 of 4 free
Question 1 Choose 2
What information is determined by using the AS path attribute included in the BGP update message? (Choose two.)
Show answerHide answer

Correct answer: B, C the presence of a routing loopthe shortest AS path to reach a prefix

Explanation

Explanation:

The AS Path (Autonomous System Path) is a mandatory transitive attribute in BGP that records every AS number a route advertisement has passed through. It serves two primary functions in BGP operations:

Loop Prevention (B):
This is the most critical function of the AS Path. When a BGP router receives an update, it scans the AS Path attribute. If it sees its own local AS number already listed in the path, it recognizes that the advertisement has looped back to its starting point. The router will then discard the update to prevent a routing loop from forming.

Path Selection (C):
BGP is a path-vector protocol. One of the early steps in the BGP Best Path Selection algorithm is comparing the length of the AS Path. By default, a router will prefer the route with the fewest number of AS numbers in the path (the "shortest" path), as this typically represents the most direct logical route to the destination prefix.

Why the Other Options are Incorrect

A. the origin of a route from IGP or EGP:
This information is determined by the Origin Attribute, not the AS Path. The Origin attribute explicitly tags whether the route was learned via an Interior Gateway Protocol (IGP), Exterior Gateway Protocol (EGP), or is Incomplete (usually via redistribution).

D. the total number of next-hop devices to reach a prefix:
The AS Path only counts the number of Autonomous Systems traversed. It does not provide visibility into the internal topology of those ASs. A single "AS hop" could consist of dozens of physical next-hop routers (devices) within that network, which the AS Path attribute cannot see.

References

RFC 4271: A Border Gateway Protocol 4 (BGP-4), Section 5.1.2, which defines the AS_PATH attribute and its use in loop detection.

Juniper Networks Technical Publication: Junos OS BGP Peering and Path Selection Guide, specifically the "AS-Path Attribute" and "BGP Path Selection" sections.
Question 2 Choose 1
Which BGP attribute is optional, transitive, and is passed unchanged to other BGP peers if not recognized?
Show answerHide answer

Correct answer: C Community

Explanation

Explanation:

BGP attributes are categorized based on how routers handle them when they are not recognized. The Community attribute is a prime example of an Optional Transitive attribute.

Why the Other Options are Incorrect

A. Origin:
This is a Well-known Mandatory attribute. Every BGP speaker must recognize it, and it must be included in every BGP update message.

B. AS Path:
This is also a Well-known Mandatory attribute. It is essential for loop detection and path selection and must be present in every update.

D. MED (Multi-Exit Discriminator):
This is an Optional Non-transitive attribute. If a BGP speaker does not recognize the MED, it is ignored and not passed on to other peers. Furthermore, MED is typically stripped when a route is passed to a third-party Autonomous System.

References

RFC 4271: A Border Gateway Protocol 4 (BGP-4), Section 5, which defines the categories of BGP path attributes.

RFC 1997: BGP Communities Attribute, which specifically classifies communities as optional and transitive.
Question 3 Choose 1
You are using EBGP to connect to two upstream peers in the same AS. You want to make one of the links less preferred for traffic entering your network from the peer's AS. Which feature should you use to achieve this goal?
Show answerHide answer

Correct answer: C AS-path prepending

Explanation

Explanation:

To influence inbound traffic (traffic entering your network from an external AS), you must manipulate attributes that external BGP peers use to make their path selection.

Why the Other Options are Incorrect

A. a route reflector:
This is an internal BGP (IBGP) feature used to scale the network by reducing the need for a full mesh of peerings. It is not used to influence inbound path selection from external peers.

B. origin code:
While the Origin attribute is part of the BGP selection process (preferring IGP over EGP or Incomplete), it is not a standard or reliable way to perform traffic engineering. Manipulating it can cause unpredictable results compared to AS-path length.

D. local preference:
This is a Well-known Discretionary attribute used to influence outbound traffic (how traffic leaves your network). Local preference is not transitive across Autonomous Systems; therefore, your upstream peers will never see the local preference value you set on your own routers.

References

RFC 4271:A Border Gateway Protocol 4 (BGP-4), Section 5.1.2 (AS_PATH).

Juniper Networks Technical Publication: Junos OS BGP User Guide, Chapter on "Influencing BGP Path Selection."
Question 4 Choose 2
What are two types of BGP messages exchanged while in the Established state? (Choose two.)
Show answerHide answer

Correct answer: C, D updatenotification

Explanation

Explanation:

The Established state is the final stage of the BGP state machine. At this point, the BGP session is fully operational, and the neighbors have agreed on all parameters. In this state, the routers can exchange the following types of messages:

Update (C):
This is the most critical message type used during the Established state. It is used to advertise feasible routes to peers or to withdraw previously advertised routes that are no longer reachable. It contains path attributes (like AS Path and Next Hop) and Network Layer Reachability Information (NLRI).

Notification (D):
This message is sent whenever an error is detected or when a peer decides to close the connection. If a Notification message is sent or received while in the Established state, the BGP session is immediately terminated, and the state transitions back to Idle.

Why the Other Options are Incorrect

A. open:
The Open message is only exchanged during the OpenConfirm state. It is used to propose session parameters (such as ASN and Hold Time) before the session reaches the Established state. Once the session is Established, Open messages are no longer sent.

B. request:
BGP does not have a message type called "request." Unlike protocols like OSPF or IS-IS that use Link State Requests, BGP is an incremental update protocol that pushes information via Update messages without being prompted by a request.

References

RFC 4271: A Border Gateway Protocol 4 (BGP-4), Section 8.2.2, which details the Finite State Machine (FSM) and the messages allowed in the Established state.

Juniper Networks Technical Publication: Junos OS BGP User Guide, "BGP Message Types" section.

That's the last free question in Border Gateway Protocol (BGP)

You've seen the free 30% (4 of 14 questions). Full access unlocks every question and full-length JN0-364 mock exams (65 questions, 90 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the JN0-364 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real JN0-364 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full JN0-364 mock exam
  • 65questions per mock
  • 90 mintime limit
  • 65questions in the bank
  • Newmock on every attempt