JNCIA-Junos: Juniper Networks Certified Associate – Junos (legacy) — Question 15

-- Exhibit --
[edit policy-options]
user@router# show
policy-statement block-routes {
term 1 {
from {
route-filter 172.27.0.0/24 longer;
}
then reject;
}
term 2 {
then accept;
}
}
-- Exhibit --

You are asked to ensure that your device does not accept any prefixes within the 172.27.0.0/24 network. You have applied the policy shown in the exhibit, but the
172.27.0.0/24 route is still present on your device.
Which configuration will resolve this problem?

Answer options

Correct answer: A

Explanation

The correct answer is A, as it specifies 'orlonger', which ensures that all prefixes equal to or longer than /24 are rejected. Option B limits the rejection to routes up to /30, which does not cover all longer prefixes. Option C incorrectly modifies term 2, which does not affect the intended rejection of the specified network. Option D does not provide any configuration to resolve the issue.