Juniper Networks Certified Associate Junos Exam: JN0-102 Policy Statement Explanation

Juniper Networks Certified Associate Junos Exam: JN0-102 Policy Statement

Prev Question Next Question

Question

-- Exhibit --

[edit policy-options]

user@router# show

policy-statement my-policy {

term 1 {

from {

route-filter 172.27.0.0/24 longer;

}

}

then reject;

}

-- Exhibit --

Which statement is correct about the policy shown in the exhibit?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

The policy shown in the exhibit is a policy-statement named "my-policy" defined under the policy-options hierarchy level. This policy is used to apply a specific routing policy to incoming routes. Let's break down the policy configuration and analyze what it does:

python
term 1 { from { route-filter 172.27.0.0/24 longer; } then reject; }
  • term 1: This term is used to define a specific condition under which the policy will take action. In this case, there is only one term defined.
  • from: This statement specifies the criteria that the incoming route must meet to match the term. In this case, the route-filter statement is used to match all routes that are more specific than the 172.27.0.0/24 network prefix.
  • then: This statement specifies the action that the policy will take if the incoming route matches the term. In this case, the action is to reject the route, which means that the route will be discarded and not installed in the routing table.

Given this configuration, we can determine the correct statement about the policy:

  • Option A is incorrect because the policy is explicitly configured to reject all routes that match the specified condition, which is more specific than 172.27.0.0/24.
  • Option B is correct because the policy is configured to reject all routes that match the specified condition.
  • Option C is incorrect because the policy is configured to reject routes that are more specific than the 172.27.0.0/24 network prefix, but not that specific prefix itself.
  • Option D is incorrect because the policy is configured to reject routes that are more specific than the 172.27.0.0/24 network prefix, and a 172.27.0.0/16 route is less specific than that prefix.

Therefore, the correct answer is option B: All routes are rejected.