JNCIA-SEC Monitoring And Troubleshooting Practice Question
An administrator suspects that a security policy is not applying logs because the log configuration syntax was entered incorrectly. Where should the logging keyword be attached within a security policy?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Within the then statement of the policy rule
Security policy logging options (such as log { init session-close; }) are specified inside the then statement of a policy rule.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Inside the zone configuration
Why it's wrong here
Zones do not define security policy logging actions.
- ✓
Within the then statement of the policy rule
Why this is correct
Logging actions (session-init or session-close) are defined as part of the action clause ('then') in a security policy.
- ✗
At the global [edit security log] hierarchy only
Why it's wrong here
While global log options exist, policy-specific logging must be enabled within the policy itself.
- ✗
Within the match statement of the policy rule
Why it's wrong here
Match statements define criteria (source, destination, application), not actions like logging.
About these practice questions
Courseiva writes every JNCIA-SEC question from scratch — 520 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint
This JNCIA-SEC practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIA-SEC exam.