JNCIA-DevOps NETCONF And XML API Practice Question
An automation engineer is writing an application that sends an <edit-config> RPC to a Junos device to load a replacement configuration. The requirement is to completely replace the candidate configuration with the provided configuration content. Which element and attribute combination should be used inside the <edit-config> request?
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
✓
<default-operation>replace</default-operation>
To replace the entire configuration or a specific hierarchy level, the <default-operation> element can be set to 'replace', or the element itself can carry the operation='replace' attribute.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
<default-operation>replace</default-operation>
Why this is correct
Setting the <default-operation> to replace tells the device to replace the target configuration datastore with the configuration provided in the RPC.
- ✗
<load-options>replace</load-options>
Why it's wrong here
<load-options> is specific to Junos CLI load operations, whereas NETCONF uses <default-operation> or operation attributes.
- ✗
<method>replace-all</method>
Why it's wrong here
NETCONF uses standard XML elements like <default-operation> rather than proprietary <method> tags.
- ✗
<action>overwrite</action>
Why it's wrong here
<action> is not a valid configuration loading operation element in NETCONF edit-config.
About these practice questions
One of 306 original JNCIA-DevOps practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.