Which statement is true about terms in a policy?
A.
A single term can be applied to a protocol or interface, independent of the policy
B.
Every policy must contain at least one term
C.
The name of a term is limited to five characters
D.
Terms are optional
Not true. Terms are optional in routing policies. The are mandatory in Firewall Filters.
So, answer is D
The question make no sense to me 🙁
I did the following:
root@JuniperOlive1# edit policy-options policy-statement TEST-POLICY
and
root@JuniperOlive1# edit firewall filter TEST-FIREWALL
both without any term.
Then:
root@JuniperOlive1# commit
commit complete
and at show | compare I get:
root@JuniperOlive1# commit
commit complete
[edit policy-options]
‘policy-statement TEST’
warning: statement has no contents; ignored
[edit firewall]
‘filter TEST-FIREWALL’
warning: statement has no contents; ignored
So, you I could configure both, commit, but both are ignored as they don’t have a term in. They are not usable at all as I see and don’t even appear in the configuration.
Yes, the terms are optional, but then you don’t get a functional policy…
My 2 cents
Reading and learning I found this link:
https://www.juniper.net/techpubs/software/junos-security/junos-security10.0/junos-security-swconfig-interfaces-and-routing/jd0e84032.html#policy-term-section
And quote:
“To configure a routing policy, you must perform the following tasks marked (Required)
..
Configuring a Policy Term (Required)”
My answer would be B.
B.
Every policy must contain at least one term
Policy term is mandatory , my answer would be B
https://learningportal.juniper.net/juniper/user_fasttrack_home.aspx
JNCIA-Junos_SG_part2_09-16-2010 page 28 Building blocks of routing policy. A routing policy consists of ZERO or more terms. I don’t have the time to go into more details about it but there is more to it. Yes you can create a routing policy without terms. I wonder would happen if you later added terms to that same policy and tried to commit? I wonder if it would actually commit? Don’t know.
D is correct.
policy-options {
policy-statement {
from {
match-conditions;
}
then {
actions;
}
}
}
The above policy is without any TERM statement.Answer is D.
Configuring a Policy Term (Required)
Each routing policy term is identified by a term name. The name can contain letters, numbers, and hyphens (-) and can be up to 255 characters long. To include spaces in the name, enclose the entire name in double quotation marks.