JNCIA-DevOps · domain
NETCONF And XML API
Practise Juniper Networks Automation and DevOps, Associate (JNCIA-DevOps, JN0-224) (JNCIA-DevOps) NETCONF And XML API practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.
Focused practice
Practice NETCONF And XML API questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about NETCONF And XML API
NETCONF And XML API questions test whether you can apply the concept in context, not just recognise a definition.
How the topic appears in realistic exam-style scenarios.
Which detail in the question changes the correct answer.
How to eliminate plausible but wrong options.
How to connect the question back to the wider exam objective.
Watch out for
Common NETCONF And XML API exam traps
- ▸Answering from memory before reading the full scenario.
- ▸Missing a constraint such as cost, availability, security, scope or command context.
- ▸Choosing a broad answer when the question asks for the most specific fix.
- ▸Ignoring why the wrong options are tempting.
Question index
All NETCONF And XML API questions (63)
Click any question to see the full explanation, or start a practice session above.
You want to retrieve only the system hostname from the Junos running configuration using NETCONF. Which filtering technique is most efficient?
Medium2When executing a NETCONF transaction on a Junos device, an automation script encounters an error or needs to discard changes made in the candidate datastore. Which THREE RPC elements or concepts apply to discarding or rolling back changes in Junos NETCONF workflows? (Choose three.)
Hard3You 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?
Medium4You need to lock the candidate configuration datastore in your NETCONF script to prevent concurrent modifications by other administrators. Which XML element accomplishes this?
Medium5You need to load a set of configuration changes into the Junos candidate datastore from an inline XML string using NETCONF. Which RPC element is used to load configuration data?
Medium6An 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?
Hard7When retrieving operational data using the Junos XML API, how do you request pretty-printed or indented XML output?
Medium8Which TWO methods can an administrator use to verify that a Python script successfully established a NETCONF session with a Junos device? (Choose two)
Easy9Which Junos configuration statement enables the NETCONF service over SSH for remote automation clients?
Easy10When executing a NETCONF <get-config> request, you specify <source><candidate/></source> but omit any filtering tags. What is returned in the <rpc-reply>?
Hard11You 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?
Medium12You 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?
Medium13An administrator issues an edit-config RPC with default-operation="replace" targeting the candidate datastore. What is the impact on the existing configuration on the Junos device?
Hard14An 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?
Medium15You want to validate a candidate configuration on a Junos device without committing it using NETCONF. Which RPC accomplishes this?
Medium16An engineer writes a Python script using ncclient to push changes to a Junos device. After sending the configuration via <edit-config>, the script needs to make the changes active without dropping the NETCONF session lock prematurely or requiring a separate explicit commit RPC if candidate workflows are bypassed. However, using standard candidate datastore workflow, what is the exact RPC required to activate the candidate configuration?
Medium17Which TWO operations are valid targets for the NETCONF <get-config> RPC on a Junos device? (Choose two)
Medium18An engineer executes a NETCONF <discard-changes> RPC. What is the precise effect of this operation on the Junos device?
Hard19An automation script connects to a Junos device using NETCONF over SSH and retrieves the running configuration. The engineer notices that the retrieved XML elements contain attributes like 'operation="inherit"'. What do these attributes represent in the context of Junos XML API?
Medium20An engineer needs to establish a NETCONF session with a Junos device securely. Which underlying transport protocol does NETCONF use by default according to RFC 6242?
Easy21Which TWO conditions will cause a NETCONF <edit-config> transaction to fail on a Junos device? (Choose two)
Medium22An 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?
Hard23Which TWO statements are true regarding NETCONF locking mechanisms on Junos devices? (Choose two)
Medium24An automation script performs a NETCONF transaction that triggers an alarm. You want to retrieve current system alarms using the Junos XML API. Which RPC tag represents this request?
Hard25During troubleshooting of a Python script using the ncclient library to interact with a Junos device, an automation engineer observes a 'rpc-error' response containing an error-tag of 'operation-failed'. Upon examining the Junos system logs, it is discovered that the candidate configuration had syntax errors introduced by an uncommitted previous session. Which NETCONF capability negotiation mechanism ensures that the client is aware of the exact XML schema constraints before sending the RPC?
Hard26You 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?
Medium27When you issue a NETCONF <get-config> request for the running configuration, why might the request fail or return empty on certain Junos platforms?
Medium28Which python module is part of the standard library that can be used to parse XML responses returned by NETCONF?
Easy29A network engineer is establishing a NETCONF session with a Junos device and needs to lock the candidate configuration to prevent concurrent modifications by other administrators. Which NETCONF operation should be executed?
Easy30Which TWO actions occur during the initial NETCONF session establishment phase between a client and a Junos device? (Choose two)
Easy31Which THREE attributes are available within the <edit-config> operation element in NETCONF to specify the modification action on a target node? (Choose three)
Hard32You are writing a Python script to retrieve the operational state of interfaces from a Junos device using NETCONF. Which XML RPC element must be enclosed within the <rpc> tag to request operational data?
Medium33In Junos XML API, what is the XML namespace associated with Junos-specific RPCs and operational tags?
Easy34Which TWO tools or protocols can be used to interact with the Junos XML API besides NETCONF over SSH? (Choose two)
Easy35Which THREE error-tag values defined in NETCONF RFC 6241 may be returned by a Junos device when an edit-config operation fails validation? (Choose three)
Hard36Which TWO benefits does NETCONF provide over traditional screen-scraping CLI automation? (Choose two)
Easy37Which THREE error-type values are defined in the NETCONF protocol specification (RFC 6241) for categorizing <rpc-error> messages? (Choose three)
Hard38What is the standard IETF RFC that defines the core NETCONF protocol architecture and operations?
Easy39Which THREE parameters can be included within a Junos NETCONF <commit> RPC request to customize commit behavior? (Choose three)
Hard40An automation script attempts to load a configuration snippet using NETCONF <edit-config> with operation="delete" on a container statement. What happens if the specified container does not currently exist in the candidate configuration?
Hard41What is the purpose of the <hello> element exchanged immediately after establishing a NETCONF SSH session?
Easy42Which THREE distinct operational states or configuration views can be queried using specific Junos XML API RPCs? (Choose three)
Hard43Which transport protocol is mandated by RFC 6241 as the standard secure connection mechanism for NETCONF when operating in typical Junos enterprise automation environments?
Easy44Which Junos XML API output format option allows requesting the output as plain text instead of structured XML?
Easy45You are writing a script that parses NETCONF responses from Junos. You encounter an element named <ok/> inside an <rpc-reply>. What does this indicate?
Medium46An automation script attempts to unlock a candidate configuration datastore that was previously locked by a different NETCONF session. Which RPC is required to force-terminate that session and release the lock?
Hard47What is the role of the <rpc> element in a NETCONF message exchange?
Easy48Which command or tool on a Junos device verifies that the NETCONF subsystem is enabled and listening for SSH connections?
Easy49While executing a NETCONF edit-config operation, you want to ensure that any syntax errors or invalid statements immediately cause the device to roll back the entire transaction without applying partial changes. Which parameter achieves this?
Hard50An 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?
Hard51Which NETCONF capability URI indicates that the server supports rolling back configuration changes to previous commit points?
Easy52When using NETCONF to edit a Junos configuration, you include the attribute operation="create" on an existing configuration leaf. What behavior does the device exhibit?
Hard53An automation engineer is designing a Junos XML API workflow that uses the <get-config> operation. Which THREE parameters or filtering methods are valid when retrieving configuration data from a Junos device using NETCONF? (Choose three.)
Medium54An automation script executes a NETCONF <get-config> query with a specific subtree filter for interface statistics. However, the response contains configuration data instead of operational statistics. Why did this occur?
Hard55You 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'?
Hard56Which tool or library is commonly used in Python to simplify interacting with Junos NETCONF APIs by abstracting low-level XML handling?
Easy57Which NETCONF RPC tag is used to gracefully terminate an active NETCONF session with a Junos device?
Easy58Which XML tag encapsulates the entire response returned by a Junos device in reply to a valid NETCONF RPC request?
Easy59Which TWO configuration datastores are commonly supported and utilized when interacting with Junos devices via NETCONF? (Choose two)
Medium60An engineer applies a configuration change using NETCONF with <edit-config> and specifies default-operation="replace" at the top level, but includes an element with operation="merge". How does Junos evaluate this?
Hard61You send an edit-config RPC with an invalid XML tag name. What is the standard structure of the error returned in the <rpc-reply>?
Medium62Which TWO statements are true regarding the NETCONF protocol hello message exchange? (Choose two.)
Easy63When establishing a NETCONF session over SSH, which standard capability announcement is exchanged during the initial hello message phase?
EasyOther domains
All JNCIA-DevOps exam domains
Frequently asked questions
- What does the NETCONF And XML API domain cover on the JNCIA-DevOps exam?
- NETCONF And XML API questions test whether you can apply the concept in context, not just recognise a definition.
- How many questions are in this domain?
- This page lists all 63 NETCONF And XML API questions in the JNCIA-DevOps question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only NETCONF And XML API questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.