JN0-102 · Question #321
Which three statements are true about terms in a policy? (Choose three.)
The correct answer is B. The action is specified in a then statement. C. Terms are optional in a policy. D. The match condition can be identified with a from statement.. In a routing policy, terms are evaluated sequentially, with from statements defining match conditions and then statements specifying the action to take. While from statements are optional, their absence means the term matches all routes.
Question
Which three statements are true about terms in a policy? (Choose three.)
Options
- AThe order of the terms in a policy is irrelevant.
- BThe action is specified in a then statement.
- CTerms are optional in a policy.
- DThe match condition can be identified with a from statement.
- EA from statement is mandatory in a term.
How the community answered
(57 responses)- A2% (1)
- B93% (53)
- E5% (3)
Why each option
In a routing policy, terms are evaluated sequentially, with `from` statements defining match conditions and `then` statements specifying the action to take. While `from` statements are optional, their absence means the term matches all routes.
The order of terms in a policy is crucial because terms are evaluated sequentially, and the first term that matches a route determines the action taken.
The `then` statement within a policy term is used to specify the action to be taken if the match conditions are met, such as `accept`, `reject`, `next-term`, or `next-policy`.
Terms are optional in a policy; if a policy does not contain any terms, a default action (usually implicitly accept for import policies or reject for export policies) will apply.
The `from` statement within a policy term is used to specify the match conditions that a route must meet for the actions in the `then` statement to be applied.
A `from` statement is optional in a term; if omitted, the term implicitly matches all routes.
Concept tested: Junos routing policy terms and structure
Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/topic-map/policy-match-conditions.html
Topics
Community Discussion
No community discussion yet for this question.