Courseiva

JNCIA-DevOps · topic practice

NETCONF And XML API practice questions

This domain covers programmatic configuration and monitoring of Junos devices using NETCONF and the Junos XML API over SSH. It tests the hello/capability exchange, datastore operations such as locking and candidate configuration edits, and Python tooling for building and parsing these XML RPCs, including standard-library XML handling.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: NETCONF And XML API

What the exam tests

What to know about NETCONF And XML API

Be able to open a NETCONF session to Junos, read the hello capabilities, lock the candidate datastore, push an XML configuration edit, and parse the XML reply in Python. The key detail is targeting the correct datastore and locking it before changes.

Using PyEZ and ncclient to abstract Junos NETCONF XML RPC handling in Python scripts

Locking the candidate datastore with the <lock> element before making configuration changes

Exchanging <hello> messages and capability announcements when a NETCONF session starts over SSH

Parsing NETCONF XML replies with Python's standard xml.etree.ElementTree module

Watch out for

Common NETCONF And XML API exam traps

  • ▸Assuming a NETCONF session can edit the candidate configuration without first locking it, causing commit or lock failures
  • ▸Confusing the <lock> and <edit-config> operations, or omitting the target datastore element inside the RPC
  • ▸Trying to parse XML replies with string splitting or regex instead of a real XML parser like ElementTree

Practice set

NETCONF And XML API questions

20 questions · select your answer, then reveal the explanation

Question 1mediummultiple choice
Read the full REST/YANG explanation →

You want to retrieve only the system hostname from the Junos running configuration using NETCONF. Which filtering technique is most efficient?

Question 2mediummultiple choice
Read the full REST/YANG explanation →

You need to commit a candidate configuration change on a Junos device via NETCONF with a confirmed commit timeout of 5 minutes. Which XML payload structure is correct?

Question 3mediummultiple choice
Read the full REST/YANG explanation →

You are troubleshooting a NETCONF session where the client sent an improperly formatted XML payload. Where would you expect to find detailed error logging related to this malformed XML request on the Junos device?

Question 4easymultiple choice
Read the full REST/YANG explanation →

Which command or tool on a Junos device verifies that the NETCONF subsystem is enabled and listening for SSH connections?

Question 5easymultiple choice
Read the full REST/YANG explanation →

In Junos XML API, what is the XML namespace associated with Junos-specific RPCs and operational tags?

Question 6hardmultiple choice
Read the full REST/YANG explanation →

You are configuring NETCONF traceoptions on a Junos device to debug an XML parsing issue. Which configuration statement enables logging of all NETCONF protocol messages to a file named 'netconf-debug.log'?

Question 7mediummultiple choice
Read the full REST/YANG explanation →

When you issue a NETCONF <get-config> request for the running configuration, why might the request fail or return empty on certain Junos platforms?

Question 8mediummultiple choice
Read the full REST/YANG explanation →

You need to execute a Junos CLI command (such as 'show version') as an XML RPC request via NETCONF. Which RPC tag encapsulates raw Junos CLI operational commands?

Question 9mediummultiple choice
Read the full REST/YANG explanation →

You want to validate a candidate configuration on a Junos device without committing it using NETCONF. Which RPC accomplishes this?

Question 10easymultiple choice
Read the full REST/YANG explanation →

Which Junos XML API output format option allows requesting the output as plain text instead of structured XML?

Question 11mediummultiple choice
Read the full REST/YANG explanation →

When retrieving operational data using the Junos XML API, how do you request pretty-printed or indented XML output?

Question 12hardmultiple choice
Read the full REST/YANG explanation →

An administrator issues a NETCONF <get-config> request targeting the candidate datastore and includes a namespace prefix that does not match the device's loaded YANG/XML schema namespace. How does Junos respond?

Question 13easymultiple choice
Read the full REST/YANG explanation →

Which NETCONF capability URI indicates that the server supports rolling back configuration changes to previous commit points?

Question 14mediummultiple choice
Read the full REST/YANG explanation →

You want to retrieve the software version and hardware inventory of a Junos device in a single NETCONF request. Which RPC tag combines both hardware and software details?

Question 15hardmultiple choice
Read the full REST/YANG explanation →

An automation script executes a NETCONF <edit-config> transaction that updates multiple routing protocols. You need to ensure that the changes take effect immediately without requiring a manual commit. Does NETCONF require a separate commit for candidate changes?

Question 16mediummulti select
Read the full REST/YANG explanation →

Which TWO configuration datastores are commonly supported and utilized when interacting with Junos devices via NETCONF? (Choose two)

Question 17easymulti select
Read the full REST/YANG explanation →

Which TWO attributes or parameters can be used within a NETCONF <edit-config> operation to control how configuration data is merged or replaced? (Choose two)

Question 18mediummulti select
Read the full REST/YANG explanation →

Which TWO elements are mandatory components of every valid NETCONF RPC request sent to a Junos device? (Choose two)

Question 19easymulti select
Read the full REST/YANG explanation →

Which TWO tools or protocols can be used to interact with the Junos XML API besides NETCONF over SSH? (Choose two)

Question 20mediummulti select
Read the full REST/YANG explanation →

Which TWO operations are valid targets for the NETCONF <get-config> RPC on a Junos device? (Choose two)

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused NETCONF And XML API sessions

Start a NETCONF And XML API only practice session

Every question in these sessions is drawn from the NETCONF And XML API domain — nothing else.

Related practice questions

Related JNCIA-DevOps topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the JNCIA-DevOps exam test about NETCONF And XML API?
Be able to open a NETCONF session to Junos, read the hello capabilities, lock the candidate datastore, push an XML configuration edit, and parse the XML reply in Python. The key detail is targeting the correct datastore and locking it before changes.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just NETCONF And XML API questions in a focused session?
Yes — the session launcher on this page draws every question from the NETCONF And XML API domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other JNCIA-DevOps topics?
Use the topic links above to move to related areas, or go back to the JNCIA-DevOps question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the JNCIA-DevOps exam covers. They are not copied from any real exam or dump site.