nerdexam
Juniper

JN0-102 · Question #322

Which two statements are true about terms in a routing policy? (Choose two.)

The correct answer is B. If a term does not contain a from statement, all routes match. D. A then statement is not mandatory in a term.. In Junos OS routing policies, if a term lacks a from statement, it implicitly matches all routes. Furthermore, a then statement, while common for specifying actions, is not always mandatory within a term, as processing can continue to the next term or apply the default policy act

Routing Policy and Firewall Filters

Question

Which two statements are true about terms in a routing policy? (Choose two.)

Options

  • AA routing policy cannot have more than one term.
  • BIf a term does not contain a from statement, all routes match.
  • CIf a term does not contain a from statement, the Junos OS will not commit.
  • DA then statement is not mandatory in a term.

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    89% (25)
  • C
    4% (1)

Why each option

In Junos OS routing policies, if a term lacks a `from` statement, it implicitly matches all routes. Furthermore, a `then` statement, while common for specifying actions, is not always mandatory within a term, as processing can continue to the next term or apply the default policy action.

AA routing policy cannot have more than one term.

A routing policy can and often does contain multiple terms, which are evaluated in a specific sequential order.

BIf a term does not contain a from statement, all routes match.Correct

If a term in a routing policy does not include a `from` statement, it means that all routes will match the conditions of that term, proceeding to its `then` actions or the next term if no `then` is present.

CIf a term does not contain a from statement, the Junos OS will not commit.

Omitting a `from` statement is a valid configuration and will not prevent the Junos OS from committing the policy.

DA then statement is not mandatory in a term.Correct

A `then` statement is not mandatory in every term; if it is omitted, and other terms follow, processing continues to the next term, or the default policy action applies if it is the last term.

Concept tested: Junos policy term behavior - from/then

Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/topic-map/policy-match-conditions.html

Topics

#routing policy terms#from statement#then statement#policy matching

Community Discussion

No community discussion yet for this question.

Full JN0-102 Practice