JNCIA-DevOps NETCONF And XML API Practice Question
An administrator needs to execute a NETCONF RPC that triggers a Junos operational command equivalent to 'clear interfaces statistics ge-0/0/0'. How should this request be formatted using the Junos XML API?
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
✓
<rpc><clear-interfaces-statistics><interface-name>ge-0/0/0</interface-name></clear-interfaces-statistics></rpc>
Operational commands (RPCs) are sent as raw XML elements corresponding to CLI commands under the <command> wrapper or directly as named RPC tags (e.g., <command>clear interfaces statistics interface-name ge-0/0/0</command> or its native equivalent).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
<rpc><command>clear interfaces statistics ge-0/0/0</command></rpc>
Why it's wrong here
While the <command> tag accepts CLI text, the precise Junos XML API practice maps operational RPCs directly to their structured XML element equivalents.
- ✗
<rpc><edit-config><target><running/></target><clear>ge-0/0/0</clear></edit-config></rpc>
Why it's wrong here
Operational action commands cannot be executed inside an <edit-config> RPC targeting configuration datastores.
- ✓
<rpc><clear-interfaces-statistics><interface-name>ge-0/0/0</interface-name></clear-interfaces-statistics></rpc>
Why this is correct
Junos operational commands map directly to XML tags where CLI space-separated words become hyphenated XML tag names.
- ✗
<rpc><load-configuration action="clear"><interface>ge-0/0/0</interface></load-configuration></rpc>
Why it's wrong here
<load-configuration> is used for configuration changes, not clearing operational statistics.
About these practice questions
Courseiva writes every JNCIA-DevOps question from scratch — 306 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-DevOps 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-DevOps exam.