Courseiva

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.

63 questions21 easy21 medium21 hard

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.

1

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

Medium
2

When 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.)

Hard
3

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?

Medium
4

You need to lock the candidate configuration datastore in your NETCONF script to prevent concurrent modifications by other administrators. Which XML element accomplishes this?

Medium
5

You 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?

Medium
6

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?

Hard
7

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

Medium
8

Which TWO methods can an administrator use to verify that a Python script successfully established a NETCONF session with a Junos device? (Choose two)

Easy
9

Which Junos configuration statement enables the NETCONF service over SSH for remote automation clients?

Easy
10

When executing a NETCONF <get-config> request, you specify <source><candidate/></source> but omit any filtering tags. What is returned in the <rpc-reply>?

Hard
11

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?

Medium
12

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?

Medium
13

An 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?

Hard
14

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?

Medium
15

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

Medium
16

An 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?

Medium
17

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

Medium
18

An engineer executes a NETCONF <discard-changes> RPC. What is the precise effect of this operation on the Junos device?

Hard
19

An 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?

Medium
20

An 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?

Easy
21

Which TWO conditions will cause a NETCONF <edit-config> transaction to fail on a Junos device? (Choose two)

Medium
22

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?

Hard
23

Which TWO statements are true regarding NETCONF locking mechanisms on Junos devices? (Choose two)

Medium
24

An 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?

Hard
25

During 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?

Hard
26

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?

Medium
27

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

Medium
28

Which python module is part of the standard library that can be used to parse XML responses returned by NETCONF?

Easy
29

A 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?

Easy
30

Which TWO actions occur during the initial NETCONF session establishment phase between a client and a Junos device? (Choose two)

Easy
31

Which THREE attributes are available within the <edit-config> operation element in NETCONF to specify the modification action on a target node? (Choose three)

Hard
32

You 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?

Medium
33

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

Easy
34

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

Easy
35

Which 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)

Hard
36

Which TWO benefits does NETCONF provide over traditional screen-scraping CLI automation? (Choose two)

Easy
37

Which THREE error-type values are defined in the NETCONF protocol specification (RFC 6241) for categorizing <rpc-error> messages? (Choose three)

Hard
38

What is the standard IETF RFC that defines the core NETCONF protocol architecture and operations?

Easy
39

Which THREE parameters can be included within a Junos NETCONF <commit> RPC request to customize commit behavior? (Choose three)

Hard
40

An 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?

Hard
41

What is the purpose of the <hello> element exchanged immediately after establishing a NETCONF SSH session?

Easy
42

Which THREE distinct operational states or configuration views can be queried using specific Junos XML API RPCs? (Choose three)

Hard
43

Which transport protocol is mandated by RFC 6241 as the standard secure connection mechanism for NETCONF when operating in typical Junos enterprise automation environments?

Easy
44

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

Easy
45

You are writing a script that parses NETCONF responses from Junos. You encounter an element named <ok/> inside an <rpc-reply>. What does this indicate?

Medium
46

An 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?

Hard
47

What is the role of the <rpc> element in a NETCONF message exchange?

Easy
48

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

Easy
49

While 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?

Hard
50

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?

Hard
51

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

Easy
52

When using NETCONF to edit a Junos configuration, you include the attribute operation="create" on an existing configuration leaf. What behavior does the device exhibit?

Hard
53

An 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.)

Medium
54

An 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?

Hard
55

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'?

Hard
56

Which tool or library is commonly used in Python to simplify interacting with Junos NETCONF APIs by abstracting low-level XML handling?

Easy
57

Which NETCONF RPC tag is used to gracefully terminate an active NETCONF session with a Junos device?

Easy
58

Which XML tag encapsulates the entire response returned by a Junos device in reply to a valid NETCONF RPC request?

Easy
59

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

Medium
60

An 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?

Hard
61

You send an edit-config RPC with an invalid XML tag name. What is the standard structure of the error returned in the <rpc-reply>?

Medium
62

Which TWO statements are true regarding the NETCONF protocol hello message exchange? (Choose two.)

Easy
63

When establishing a NETCONF session over SSH, which standard capability announcement is exchanged during the initial hello message phase?

Easy

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.
juniper-jncia-devops JUNIPER-JNCIA-DEVOPS netconf and xml api Practice Questions