Practice JNCIA-DevOps NETCONF And XML API questions with full explanations on every answer.
Start practicing
NETCONF And XML API — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
Which NETCONF RPC tag is used to gracefully terminate an active NETCONF session with a Junos device?
2While 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?
3Which XML tag encapsulates the entire response returned by a Junos device in reply to a valid NETCONF RPC request?
4You want to retrieve only the system hostname from the Junos running configuration using NETCONF. Which filtering technique is most efficient?
5You need to lock the candidate configuration datastore in your NETCONF script to prevent concurrent modifications by other administrators. Which XML element accomplishes this?
6You 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?
7An 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?
8An 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?
9An engineer executes a NETCONF <discard-changes> RPC. What is the precise effect of this operation on the Junos device?
10An 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?
11You 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?
12When establishing a NETCONF session over SSH, which standard capability announcement is exchanged during the initial hello message phase?
13You 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?
14Which command or tool on a Junos device verifies that the NETCONF subsystem is enabled and listening for SSH connections?
15When executing a NETCONF <get-config> request, you specify <source><candidate/></source> but omit any filtering tags. What is returned in the <rpc-reply>?
16In Junos XML API, what is the XML namespace associated with Junos-specific RPCs and operational tags?
17Which tool or library is commonly used in Python to simplify interacting with Junos NETCONF APIs by abstracting low-level XML handling?
18You 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?
19An 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?
20You 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'?
21When you issue a NETCONF <get-config> request for the running configuration, why might the request fail or return empty on certain Junos platforms?
22What is the purpose of the <hello> element exchanged immediately after establishing a NETCONF SSH session?
23An 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?
24You send an edit-config RPC with an invalid XML tag name. What is the standard structure of the error returned in the <rpc-reply>?
25What is the role of the <rpc> element in a NETCONF message exchange?
26You 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?
27Which Junos configuration statement enables the NETCONF service over SSH for remote automation clients?
28When using NETCONF to edit a Junos configuration, you include the attribute operation="create" on an existing configuration leaf. What behavior does the device exhibit?
29You want to validate a candidate configuration on a Junos device without committing it using NETCONF. Which RPC accomplishes this?
30An 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?
31You are writing a script that parses NETCONF responses from Junos. You encounter an element named <ok/> inside an <rpc-reply>. What does this indicate?
32Which Junos XML API output format option allows requesting the output as plain text instead of structured XML?
33What is the standard IETF RFC that defines the core NETCONF protocol architecture and operations?
34An 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?
35When retrieving operational data using the Junos XML API, how do you request pretty-printed or indented XML output?
36An 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?
37Which NETCONF capability URI indicates that the server supports rolling back configuration changes to previous commit points?
38You 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?
39An 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?
40Which python module is part of the standard library that can be used to parse XML responses returned by NETCONF?
41Which TWO actions occur during the initial NETCONF session establishment phase between a client and a Junos device? (Choose two)
42Which TWO configuration datastores are commonly supported and utilized when interacting with Junos devices via NETCONF? (Choose two)
43Which THREE error-type values are defined in the NETCONF protocol specification (RFC 6241) for categorizing <rpc-error> messages? (Choose three)
44Which THREE distinct operational states or configuration views can be queried using specific Junos XML API RPCs? (Choose three)
45Which TWO tools or protocols can be used to interact with the Junos XML API besides NETCONF over SSH? (Choose two)
46Which TWO statements are true regarding NETCONF locking mechanisms on Junos devices? (Choose two)
47Which TWO operations are valid targets for the NETCONF <get-config> RPC on a Junos device? (Choose two)
48Which 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)
49Which TWO benefits does NETCONF provide over traditional screen-scraping CLI automation? (Choose two)
50Which THREE parameters can be included within a Junos NETCONF <commit> RPC request to customize commit behavior? (Choose three)
51Which TWO methods can an administrator use to verify that a Python script successfully established a NETCONF session with a Junos device? (Choose two)
52Which TWO conditions will cause a NETCONF <edit-config> transaction to fail on a Junos device? (Choose two)
53A 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?
54Which THREE attributes are available within the <edit-config> operation element in NETCONF to specify the modification action on a target node? (Choose three)
55An 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?
56An 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?
57During 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?
58An 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?
59Which transport protocol is mandated by RFC 6241 as the standard secure connection mechanism for NETCONF when operating in typical Junos enterprise automation environments?
60An 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?
61Which TWO statements are true regarding the NETCONF protocol hello message exchange? (Choose two.)
62An 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.)
63When 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.)
The NETCONF And XML API domain covers the key concepts tested in this area of the JNCIA-DevOps exam blueprint published by Juniper Networks. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all JNCIA-DevOps domains — no account required.
The Courseiva JNCIA-DevOps question bank contains 63 questions in the NETCONF And XML API domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the NETCONF And XML API domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included