JN0-102 · Question #115
Which two statements are true regarding routing policy processing? (Choose two.)
The correct answer is A. The Junos OS verifies the match criteria of each policy in order and performs the associated action C. Polices are evaluated based on the order in which they are applied to a routing protocol. Junos OS routing policies evaluate terms sequentially, executing the action of the first matched term, and the order of policies applied to a routing protocol determines their processing sequence.
Question
Which two statements are true regarding routing policy processing? (Choose two.)
Options
- AThe Junos OS verifies the match criteria of each policy in order and performs the associated action
- BPolicies are evaluated from right to left as displayed in the Junos OS configuration file.
- CPolices are evaluated based on the order in which they are applied to a routing protocol.
- DPolicy processing stops once the last statement in the policy is evaluated.
How the community answered
(27 responses)- A81% (22)
- B11% (3)
- D7% (2)
Why each option
Junos OS routing policies evaluate terms sequentially, executing the action of the first matched term, and the order of policies applied to a routing protocol determines their processing sequence.
Within a single policy, Junos OS evaluates each term sequentially in the order they are configured. When a packet matches the criteria of a term, the associated action is performed, and policy evaluation for that packet typically stops.
Policies are evaluated from top to bottom (or left to right in a list of policies), not right to left, as they appear in the configuration.
When multiple routing policies are applied to a routing protocol (e.g., `import [policy1 policy2]`), the Junos OS evaluates them in the exact order they are listed in the configuration statement, from left to right.
Policy processing stops once a match is found and a terminating action is performed, or if the policy explicitly specifies `next-term` or `next-policy`; it does not necessarily stop only after the last statement.
Concept tested: Junos routing policy processing order
Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/policy-routing-overview.html
Topics
Community Discussion
No community discussion yet for this question.