Courseiva

JNCIA-DevOps · domain

troubleshooting

Practise Juniper Networks Automation and DevOps, Associate (JNCIA-DevOps, JN0-224) (JNCIA-DevOps) troubleshooting practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

306 questions95 easy109 medium102 hard

Focused practice

Practice troubleshooting 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 troubleshooting

troubleshooting 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 troubleshooting 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 troubleshooting questions (306)

Click any question to see the full explanation, or start a practice session above.

1

In a Jinja2 template designed for Junos configuration, how do you correctly output the value of a variable named 'hostname'?

Medium
2

Which PyEZ utility module should you import if you need to upgrade the Junos operating system on a remote device via a Python script?

Easy
3

Your CI/CD pipeline includes a linters step before deployment. Why is running a linter against YAML or Jinja2 template files critical in a Junos automation workflow?

Medium
4

An engineer needs to convert an existing YAML-formatted inventory file into JSON format using a Python script. Which workflow accomplishes this transformation?

Medium
5

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

Medium
6

An engineer is troubleshooting a script that updates Junos configuration via the REST API. The payload is sent as JSON, but the device returns a 415 Unsupported Media Type error. What is the root cause?

Hard
7

You are writing a Python automation tool that reads telemetry data from a Junos device. The data is received as a JSON string containing forward slashes escaped as '\/'. When you load this string using json.loads(), how does Python handle the escaped slashes?

Hard
8

When troubleshooting REST API authentication and authorization on Junos devices, which THREE log files or diagnostic tools can an administrator inspect? (Choose three)

Hard
9

Which TWO statements are true regarding PyEZ Table and View definitions? (Choose two)

Medium
10

You are building a custom PyEZ application and need to catch exceptions specific to configuration parsing failures returned by Junos. Which exception class should your script import?

Hard
11

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
12

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
13

Which THREE mechanisms are valid methods for authenticating and establishing a NETCONF session with a Junos device? (Choose three)

Medium
14

Which THREE advanced features or methods are available on a PyEZ Device instance for session management and inspection? (Choose three)

Hard
15

An administrator wishes to secure their Junos REST API connections by configuring HTTPS instead of plain HTTP. Which command under 'system services jpagent' accomplishes this?

Easy
16

In the context of network DevOps, what is the purpose of implementing idempotency in automation scripts or playbooks targeting Junos devices?

Medium
17

Which symbol represents the beginning of a single YAML document stream?

Easy
18

When using PyEZ to push a configuration, you want to log out all NETCONF XML traffic exchanged between the script and the Junos device for debugging purposes. How do you enable this logging in Python?

Hard
19

An engineer needs to execute a custom Junos RPC (such as 'get-route-information') using the REST API. Which HTTP method and general URI structure should be used?

Medium
20

What is JSNAPy primarily used for in Junos network automation?

Easy
21

Which TWO Python exceptions might be raised when attempting to parse a malformed JSON string using the standard 'json' module? (Choose two)

Medium
22

Which TWO advantages does structured telemetry and data streaming offer over traditional SNMP polling in Junos automation? (Choose two)

Easy
23

An automation engineer wants to log structured data from a Junos device automation run. The Python script formats a dictionary into a JSON string and prints it. However, the engineer wants all keys sorted alphabetically to ensure consistent log diffing. Which parameter accomplishes this in json.dumps()?

Medium
24

An enterprise network is adopting a CI/CD pipeline for Junos network changes using GitLab CI. A developer wants to ensure that a test job automatically runs whenever a merge request is opened against the main branch. In which configuration file must this pipeline behavior be defined, and what is the primary keyword used to control branch execution?

Hard
25

What Jinja2 feature allows you to include the contents of another template file into your main configuration template?

Easy
26

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
27

When writing a Python script to interact with a Junos device via PyEZ, you receive an object representing RPC output. You want to serialize a custom Python class instance containing device metadata into JSON, but calling json.dumps() raises a TypeError. What is the standard approach to resolve this?

Hard
28

You are writing a Python script to convert a complex Juniper device inventory from YAML format into JSON format using PyYAML and the built-in json module. Which THREE considerations must you keep in mind regarding differences between YAML and JSON during this conversion? (Choose three)

Hard
29

An automation script attempts to connect to the Junos REST API via HTTPS, but the Python script throws an SSL certificate verification error. What is the most appropriate way to resolve this in a development environment while maintaining security best practices?

Medium
30

Which of the following primitive data types is NOT supported natively in JSON?

Easy
31

In a Git repository managing Junos configurations, which TWO files or directories are typically added to the '.gitignore' file to prevent sensitive or temporary files from being tracked? (Choose two)

Hard
32

An automation engineer is using Git and needs to undo the last local commit while keeping the modified changes in their working directory as unstaged changes. Which command should they execute?

Hard
33

An automation script needs to compare pre- and post-change states on a Junos device using JSNAPy (Junos Snapshot Administrator). Which configuration file format is used by JSNAPy to define snapshot checks and test assertions?

Medium
34

Which Jinja2 construct is used to define reusable blocks of template code that can be called with arguments like a function?

Easy
35

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
36

An engineer is comparing how NETCONF and the Junos REST API handle candidate configuration validation. In NETCONF, the client can issue a <validate> RPC. How is configuration validation typically handled in the Junos REST API workflow?

Hard
37

A DevOps engineer is implementing a CI/CD pipeline for automated testing of Junos configurations. During the build stage, the pipeline executes a syntax check on candidate configurations before staging them for deployment. Which tool natively provides configuration syntax validation against the Junos schema without applying the configuration to the routing engine?

Medium
38

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
39

An automation scripter needs to load a YAML configuration file in Python. To prevent arbitrary code execution vulnerabilities associated with untrusted files, which function should always be called?

Medium
40

Which THREE features are provided by the Junos REST API daemon (jpagent) when running on a Junos device? (Choose three)

Medium
41

Which TWO characters or sequences are valid in YAML for representing lists or sequences? (Choose two)

Easy
42

When sending an HTTP POST request to create a new configuration resource via the Junos REST API, what happens if the resource already exists in the candidate configuration?

Medium
43

Which TWO benefits are provided by implementing automated CI/CD pipelines for Junos network changes? (Choose two)

Easy
44

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

Medium
45

An automation script connects to a Junos device and attempts to load a candidate configuration using NETCONF. The script needs to ensure that if any part of the configuration fails validation, the entire transaction is discarded and the candidate database is left untouched. Which NETCONF capability or tag should be utilized?

Medium
46

Which TWO characteristics describe declarative network automation compared to imperative scripting? (Choose two)

Easy
47

An enterprise uses Git for tracking Junos configurations. An engineer wants to see the exact line-by-line history of changes made to a specific routing policy file over the past month, including who made each change. Which Git command should they use?

Hard
48

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
49

An engineer compares NETCONF and Junos REST API when fetching operational state via RPCs. How does the REST API transmit an RPC request compared to a NETCONF <rpc> wrapper?

Hard
50

An automation engineer writes a Python script that reads a Junos configuration file serialized in JSON. The file opens successfully, but parsing fails with a JSONDecodeError due to trailing commas at the end of object lists. How does standard JSON handle trailing commas compared to YAML?

Medium
51

When converting a deeply nested JSON data structure representing Junos device health metrics into YAML using PyYAML, the output uses complex block styles that are difficult for team members to read. Which parameter in yaml.safe_dump() can force scalar values or containers to prefer flow style (JSON-like curly braces and brackets) instead?

Hard
52

You are writing a script that uses PyEZ to load a Junos configuration file, but you want to replace an entire hierarchy level (e.g., protocols bgp) rather than merging the changes. Which parameter should you pass to the load method?

Hard
53

When troubleshooting Junos REST API integration issues, which THREE factors should an engineer examine if API requests return connection timeouts or refused errors? (Choose three)

Hard
54

When comparing the Junos REST API workflow to the NETCONF protocol workflow, which characteristic is unique to the REST API?

Easy
55

You are rendering a Jinja2 template in Python that includes a loop over a list of VLANs. Which Jinja2 block syntax correctly iterates over a list named 'vlan_list'?

Hard
56

An automation engineer is writing a Python script to parse a Juniper Junos NETCONF reply received in XML format and needs to convert it into a JSON structure for easier manipulation in a web application. Which built-in Python module is primarily used to handle JSON data serialization and deserialization?

Easy
57

Why is it considered a best practice to store sensitive secrets (such as SNMP community strings or API tokens) outside of plaintext Jinja2 templates in a Git repository?

Medium
58

When writing Jinja2 templates for Junos configurations, which THREE control flow or filtering constructs are valid? (Choose three)

Hard
59

You are writing a Python script that parses a multi-document YAML stream containing Junos device site configurations. One of the documents contains a custom YAML tag. When parsing with yaml.safe_load_all(), how does the safe loader handle custom tags?

Hard
60

Which term describes the practice of continuously building, testing, and validating software or network configurations in an automated pipeline?

Easy
61

Which TWO error response categories or HTTP status codes are commonly returned by the Junos REST API when client requests are malformed or unauthorized? (Choose two)

Medium
62

An automation script reads interface names and VLAN IDs from a CSV file and converts each row into a JSON object before sending it to a Junos device REST API. Which Python module is specifically designed to parse CSV (Comma-Separated Values) files?

Medium
63

You are writing a Python automation script that reads a Junos configuration file in JSON format. The JSON file contains duplicate keys within the same object scope. According to the JSON specification RFC 8259, how should a conforming JSON parser handle duplicate keys?

Hard
64

Which TWO commands or tools are associated with running JSNAPy snapshot verifications from a CLI environment? (Choose two)

Medium
65

You are writing a script that performs multiple configuration changes inside a single PyEZ Config context. How can you verify that the candidate configuration has syntax errors before committing it?

Hard
66

When interacting with Junos devices via NETCONF, which TWO RPC operations are part of standard NETCONF protocol capabilities? (Choose two)

Hard
67

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

Easy
68

An engineer needs to explain the primary advantage of treating network configurations as code in a modern DevOps workflow. Which principle best describes this approach?

Easy
69

An engineer receives a YAML configuration snippet for a PyEZ automation script, but the script fails with a parser error. Upon inspection, the error is caused by improper indentation levels. Which rule must be strictly followed regarding indentation in YAML syntax?

Medium
70

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
71

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
72

When configuring a JSNAPy test file, which section defines the specific RPCs or CLI commands that should be executed to gather operational data?

Medium
73

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
74

An automation engineer needs to convert a JSON payload representing Junos interface configurations into equivalent YAML format to reuse in an Ansible playbook. Which fundamental structural relationship between JSON and YAML makes this conversion straightforward?

Medium
75

An automation engineer is reviewing data serialization formats used within Junos automation workflows. Which TWO statements are correct regarding JSON syntax and data types? (Choose two)

Medium
76

Which protocol is natively used by Junos XML management APIs to provide structured, session-oriented configuration and operational data exchange?

Easy
77

When managing configuration changes via PyEZ Config utility, which context manager ensures that changes are automatically rolled back if an exception occurs within the block?

Easy
78

During script development, an engineer encounters a YAML file containing comments and multiple configuration documents separated by document markers. Which characters are used to denote the start of a new document within a single YAML file stream?

Medium
79

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
80

When designing a version control workflow for Junos configurations using Git, which THREE practices are considered industry best standards? (Choose three)

Medium
81

A network architect is designing a version control strategy for multi-vendor network operations. They need a system that tracks changes to text-based configuration files, allows multiple engineers to work on separate feature branches concurrently, and merges changes systematically. Which category of tool is being utilized?

Easy
82

An engineer needs to modify a configuration parameter using the Junos REST API via an HTTP PUT request. They include the Content-Type header as 'application/json'. However, the device rejects the payload. What is the correct Content-Type or Accept header requirement for configuration manipulation payload representation in Junos REST API?

Hard
83

A Python script retrieves interface statistics from a Junos device in JSON format, modifies a threshold value, and needs to output it back into a formatted JSON string with an indentation level of 4 spaces for readability. Which Python snippet achieves this?

Medium
84

Which user credential validation mechanism does the Junos REST API use by default when authenticating incoming API calls?

Easy
85

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
86

You are reviewing a pull request that updates Junos interface configurations using Jinja2 templates. The template contains a conditional statement checking an interface speed variable. What happens if the variable is undefined during template rendering?

Hard
87

Which statement best describes the primary architectural difference between NETCONF and the Junos REST API?

Easy
88

Which TWO actions can be performed using the JSNAPy command-line interface (CLI) tool during network verification workflows?

Medium
89

An automation engineer needs to pretty-print a JSON payload in the Linux terminal for debugging Junos telemetry. Which built-in Python command-line utility can be invoked to validate and pretty-print a JSON file?

Medium
90

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

Medium
91

When configuring the Junos REST API, an administrator restricts access to a specific port and enables SSL. Which configuration statement sets the secure HTTPS port to 8443?

Hard
92

An automation engineer wants to verify the syntax of a large YAML playbook before executing it against a production Junos device. Which python one-liner command can be run in the terminal to quickly check if the file is syntactically valid YAML?

Medium
93

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
94

A Python automation script extracts routing table entries from a Junos device. The data structure contains deeply nested dictionaries and lists. The engineer needs to perform a deep copy of this deserialized JSON structure before modifying it. Which Python module provides the deepcopy function needed to duplicate nested containers safely?

Hard
95

When writing Python automation scripts for Junos using PyEZ, which THREE objects or methods are commonly used for device interaction and configuration management? (Choose three)

Medium
96

In a CI/CD pipeline for network changes, what is the role of automated unit testing?

Medium
97

A network automation script is reading a YAML configuration file containing Junos device credentials. The script encounters an unhandled exception when attempting to load the file using PyYAML. Upon inspection, the error is caused by a tab character used for indentation instead of spaces. Which YAML specification rule does this violate?

Medium
98

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

Medium
99

What is a primary characteristic of a DevOps culture when applied to network operations (NetOps)?

Easy
100

Which TWO configuration steps are required to enable the Junos REST API with basic security settings? (Choose two)

Easy
101

An automation engineer is writing a Python script using Junos PyEZ to connect to a device. Which module and class must be imported to instantiate a device object representing the Junos target?

Easy
102

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

Hard
103

When executing a PyEZ RPC call that returns a large dataset (e.g., massive routing table), how can you handle the output efficiently without exhausting local memory?

Hard
104

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
105

Which Python library does PyEZ depend on under the hood for managing secure SSH connections and NETCONF framing?

Easy
106

When retrieving configuration data in JSON format from the Junos REST API, how are Junos hierarchical container statements represented in the JSON payload structure?

Medium
107

Which statement accurately describes how the Junos REST API handles configuration locking compared to NETCONF workflows?

Easy
108

An engineer executes an HTTP GET request to retrieve interface operational details using the Junos REST API, but receives a 403 Forbidden status code. What is the most likely reason?

Medium
109

You are configuring a CI/CD pipeline for Junos network deployments. The pipeline must validate the syntax of generated candidate configurations against a physical or virtual Junos device before committing them to production. Which stage of the CI/CD pipeline does this validation step represent?

Medium
110

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
111

Which TWO of the following are valid scalar values in a YAML document? (Choose two)

Easy
112

Which TWO benefits are gained by using the Junos REST API instead of traditional CLI screen-scraping in automation workflows? (Choose two)

Easy
113

When configuring advanced options for the Junos REST API jpagent, which THREE parameters or sub-statements can be configured under the 'set system services jpagent' hierarchy? (Choose three)

Hard
114

Which of the following valid JSON values represents a boolean true state?

Easy
115

Which command is used in Git to save staged changes to the local repository with a descriptive commit message?

Easy
116

You have captured a baseline snapshot using JSNAPy and want to compare a newly taken snapshot against that baseline. Which JSNAPy command-line action executes this comparison?

Medium
117

An automation developer is writing a script to modify candidate configuration data on a Junos device using the REST API. Which HTTP method and request body format should be used to replace an existing configuration hierarchy?

Medium
118

An automation developer is examining a JSON response payload returned by a Juniper device via a REST API call. Which valid JSON data type is used to represent an ordered list of values enclosed within square brackets?

Easy
119

What is the primary templating engine used alongside Python for generating structured Junos configuration text in network automation workflows?

Easy
120

An automation script reads a multi-document YAML file containing configuration templates for various Junos router models. To process each document individually in Python using PyYAML, which function should the engineer invoke?

Hard
121

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

Medium
122

Which file extension is conventionally used for YAML data serialization files?

Easy
123

An engineer is applying a candidate configuration using PyEZ and needs to load it from an external text file named 'interfaces.conf'. Which Config method should be used?

Medium
124

A Python script reads a Junos configuration snippet stored in YAML. The configuration uses YAML anchors and aliases to duplicate common routing policy definitions across multiple VRFs. When the script parses the file using yaml.safe_load(), what happens to the anchors and aliases?

Hard
125

Which of the following characters is used to start a comment line in a YAML document?

Easy
126

Which THREE architectural features distinguish the Junos REST API from traditional CLI screen-scraping (CLI automation via expect scripts)? (Choose three)

Hard
127

An automation engineer is writing a script that saves operational telemetry data gathered from a Junos router. The data needs to be written directly to an open file stream in JSON format. Which method from the Python 'json' module should be used?

Medium
128

Which data serialization formats are natively supported by the Junos REST API for both input and output payloads?

Easy
129

An engineer needs to represent an ordered list of IP addresses in a YAML configuration file for a Junos automation playbook. Which valid YAML syntax correctly defines a sequence of items?

Easy
130

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
131

Which TWO methods are valid for loading configuration data into the PyEZ Config utility from different sources? (Choose two)

Medium
132

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

Medium
133

Which THREE exceptions can be raised by PyEZ during script execution when interacting with a Junos device? (Choose three)

Hard
134

You are writing a Python automation script that processes JSON output from a Junos device's 'show interfaces' operational command via PyEZ. One of the interface descriptions contains raw control characters. When the script attempts to dump this data to a JSON string using json.dumps(), it raises a ValueError. Which parameter should you pass to json.dumps() to handle non-printable or out-of-range character encoding gracefully?

Hard
135

When implementing Jinja2 templates for Junos configuration generation, which THREE features or syntax constructs are natively supported by the Jinja2 engine?

Hard
136

Which Python function deserializes a JSON-formatted string into a native Python dictionary?

Easy
137

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
138

An engineer is designing an automated failover script that needs to discard candidate configuration changes made via the Junos REST API. How should this discard action be performed?

Hard
139

An organization is implementing a Git-based version control strategy for Junos network configurations. Which THREE practices are considered standard DevOps workflows when managing network configurations in Git? (Choose THREE)

Medium
140

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
141

When configuring JSNAPy, which THREE components or sections are typically required within a YAML check/snapshot file? (Choose three)

Hard
142

An automation engineer is writing a Python script that takes a complex nested Python dictionary containing Junos telemetry parameters and converts it into a YAML string. Which PyYAML function should be used?

Medium
143

Which TWO features are supported by YAML but are notably absent in standard JSON? (Choose two)

Medium
144

Which Junos configuration command enables the REST API daemon to start automatically upon device boot?

Easy
145

You need to retrieve operational data from a Junos device using a PyEZ RPC call that equates to the CLI command 'show system information'. Which Python statement correctly invokes this RPC?

Medium
146

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
147

When serializing complex nested Python dictionaries to JSON, which THREE data types will cause a TypeError unless handled by a custom default encoder function? (Choose three)

Hard
148

When writing an automation script that converts data formats between YAML and JSON for Junos configuration pipelines, which THREE potential pitfalls should an engineer account for? (Choose three)

Hard
149

When an automation engineer queries operational data using the Junos REST API, how does the API format the returned structure if the 'Accept: application/json' header is supplied?

Medium
150

An engineer needs to retrieve the entire candidate configuration in JSON format from a Junos device using the Junos REST API. Which HTTP header must be included in the GET request to ensure the response is returned in JSON format?

Hard
151

When designing an automation workflow that uses the Junos REST API for configuration management, which THREE practices ensure robust execution? (Choose three)

Medium
152

Which TWO HTTP response status codes indicate a successful Junos REST API request where data was successfully retrieved or modified? (Choose two)

Easy
153

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
154

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

Easy
155

During a NETCONF session with a Junos device, an automation script issues an RPC to load a configuration. The device returns a response containing an <rpc-error> tag. What does this indicate?

Hard
156

A network engineer is establishing a version control workflow for network configurations using Git. Which Git command should the engineer use to stage newly created configuration template files in the local repository working directory so they are included in the next commit?

Easy
157

An automation script reads a configuration template where boolean values are represented as 'yes' and 'no' in YAML. When parsed using PyYAML in Python, how are these values interpreted?

Medium
158

When serializing Python data structures to JSON for Junos automation payloads, which THREE parameters can be passed to json.dumps() to control formatting and readability? (Choose three)

Hard
159

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
160

Which TWO characteristics describe JSNAPy snapshot operations? (Choose two)

Medium
161

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

Easy
162

When working with the PyEZ Config utility, which THREE actions can be performed using the configuration context manager or its methods? (Choose three)

Hard
163

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
164

An automation engineer needs to include comments explaining complex network parameters inside a Junos automation data file. Which serialization format should the engineer select?

Medium
165

Which TWO of the following methods or attributes are valid ways to handle rollback operations or commit errors when using the PyEZ Config utility (cu)?

Hard
166

An operations team is applying DevOps principles to network automation on Junos devices. They want to ensure that all changes to device operational states and configurations are treated as disposable and repeatable. Which DevOps practice best describes rebuilding device configurations completely from centralized version-controlled templates rather than performing manual incremental hot-patches?

Medium
167

A DevOps engineer is designing a CI/CD pipeline for validating Junos configuration changes prior to deployment. Which THREE actions are typically performed during the automated CI pipeline 'test' or 'validate' stage? (Choose THREE)

Hard
168

Which statement correctly identifies the relationship between Junos REST API and NETCONF data models?

Easy
169

Which THREE advantages are associated with using the Junos REST API over NETCONF in lightweight automation scripts? (Choose three)

Medium
170

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
171

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

Easy
172

You are writing a Python script using the PyEZ library to retrieve interface facts from a Juniper EX Series switch. The resulting data structure is stored in a Python dictionary. You need to dump this dictionary into a YAML file so it can be read by an Ansible playbook later. Which PyYAML function should you use to convert the Python dictionary into a YAML-formatted string or file stream?

Hard
173

What is the native data format returned by Junos devices when queried via REST API or NETCONF operations configured with JSON output formatting?

Easy
174

Which THREE actions can be performed using the Junos REST API operational endpoints? (Choose three)

Medium
175

When using Jinja2 templates in Python to generate configurations, how can you load a template file from disk prior to rendering it with variables?

Medium
176

When working with PyYAML in Python for Junos automation scripts, which THREE of the following practices enhance script security and robustness? (Choose three)

Hard
177

When modifying a Junos device configuration using the PyEZ Config table-driven or Context manager (with Config(dev) as cu:), what is the default behavior regarding locking the candidate configuration?

Hard
178

Which THREE principles are foundational to the DevOps movement when applied to network engineering? (Choose three)

Medium
179

A network engineer is exploring the core components of the Junos automation architecture. Which TWO components are native Junos daemons or automation frameworks directly involved in script execution or API processing? (Choose TWO)

Easy
180

An automation engineer is writing a Python script to push configurations to a Junos device. The script loads a YAML data file containing interface descriptions. One description contains a colon without a following space (e.g., 'Interface:Primary'). What error will PyYAML raise when attempting to parse this file?

Medium
181

Which Junos automation architecture component provides standardized, model-driven interfaces using NETCONF and gRPC/gNMI to manage and monitor Junos devices?

Easy
182

You are utilizing PyEZ Table and View abstractions to parse interface statistics. Which base class must your custom Table class inherit from to map to Junos XML output?

Medium
183

An automation script needs to convert a JSON string containing Juniper interface statistics into a YAML format to maintain consistency with existing Ansible variable files. When performing this conversion, which structural capability does YAML support that standard JSON does not?

Hard
184

Which THREE tasks are typical responsibilities of a network DevOps engineer managing a Junos infrastructure? (Choose three)

Medium
185

You want to run a JSNAPy verification test via Python code. Which Python class should you import and instantiate to execute the snapshot comparison programmatically?

Hard
186

When loading configuration changes via PyEZ using cu.load(format='xml', action='update'), what is the precise impact of the 'update' action compared to 'merge' or 'override'?

Hard
187

In JSNAPy, what file format is used to define test cases and expected operational states?

Easy
188

Which TWO of the following are valid primitive data types in JSON? (Choose two)

Easy
189

When comparing error handling between NETCONF and the Junos REST API, how are protocol-level errors communicated back to the client?

Hard
190

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

Easy
191

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
192

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

Easy
193

Which TWO characteristics are true regarding the Junos REST API? (Choose two)

Easy
194

An automation script makes a REST API request to modify a Junos configuration. To ensure that the changes are validated and committed in a single workflow step without leaving dangling candidate changes, how can the commit parameter be handled?

Hard
195

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

Hard
196

What is the primary delimiter used to separate key-value pairs in a JSON object?

Easy
197

An automation developer is designing a tool that interacts with multiple network vendors, including Juniper Junos. They evaluate using Junos REST API versus NETCONF. Which workflow advantage does the REST API offer over NETCONF in web-centric application environments?

Hard
198

A Python script processes a YAML configuration template for Junos BGP neighbors. The configuration contains a multi-line banner string description. Which YAML block scalar indicator preserves newlines exactly as written in the text block?

Hard
199

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

Easy
200

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

Hard
201

You are writing a Python automation script that processes configuration data. The script reads a YAML file containing Junos firewall filters, modifies them, and writes them back out. However, you notice that all the original comments in the file are stripped out in the output. What is the fundamental reason for this behavior in standard PyYAML dump operations?

Hard
202

You are writing a script that uses PyEZ to load a partial configuration merge. By default, what configuration database mode does the Config utility lock and load into?

Hard
203

When managing Junos configuration changes in a team environment, why is atomic configuration rollback capability crucial during automated deployments?

Medium
204

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
205

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

Easy
206

What is the primary function of a version control system (VCS) like Git in a Junos automation workflow?

Easy
207

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

Hard
208

In a CI/CD pipeline configured for Junos network changes, which THREE automated testing steps are typically performed before production deployment? (Choose three)

Medium
209

What type of brackets enclose an array in a JSON document?

Easy
210

When an automation script issues a POST request to create a new static route via the Junos REST API, what HTTP status code indicates that the resource was successfully created?

Medium
211

When writing a Python script that connects to multiple Junos devices concurrently using PyEZ, which Python module is commonly used to manage thread pooling and parallel execution?

Medium
212

An automation engineer is writing a Python script using Juniper PyEZ to connect to a Junos device. Which context manager approach is best practice to ensure the Device session is properly closed even if an exception occurs?

Easy
213

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
214

When executing a configuration change via the Junos REST API, what is the role of the HTTP DELETE method?

Medium
215

When writing a Python script using PyEZ, how should you handle connection timeout exceptions when attempting to connect to an unreachable Junos device?

Hard
216

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

Easy
217

In a Junos NETCONF automation workflow, what happens during a lock operation on the configuration database? (Choose two)

Hard
218

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
219

Which TWO tools or platforms are commonly used for version control and hosting of Junos automation code repositories? (Choose two)

Easy
220

When using Jinja2 inheritance, which tag is placed in a base template to indicate where child templates can insert their custom content?

Medium
221

An automation engineer is writing a Python script to parse a Juniper Junos NETCONF reply received in XML format and needs to convert it into a native Python dictionary for internal processing. Which built-in library should the engineer use to convert the structured XML tree?

Easy
222

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
223

Which of the following describes the fundamental structural difference between JSON and YAML regarding syntax design?

Easy
224

Which TWO tasks are typically automated using Python and PyEZ in a network DevOps pipeline? (Choose two)

Medium
225

Which TWO file formats are commonly used for structuring network configuration data and automation templates in Junos DevOps pipelines? (Choose two)

Easy
226

An engineer writes a Python script that loads a JSON configuration file using the json.load() method. The file contains configuration parameters for a Junos device. If the JSON file contains a trailing comma at the end of the last element in an array, what will happen when the script executes?

Medium
227

When comparing NETCONF and the Junos REST API workflows, which statement accurately describes how configuration locks are handled?

Medium
228

You are writing a Python script that converts a Junos operational state output from XML (via NETCONF) into JSON. The XML structure contains sibling elements with the same tag name. When converted naively, how do standard XML-to-JSON conversion libraries (like xmltodict) typically represent these repeated sibling elements in the resulting JSON dictionary?

Hard
229

An engineer wants to inspect the differences between two committed configurations on a Junos device using the CLI or automation tools. Which operation does this correspond to in Junos configuration management?

Medium
230

In a Junos automation environment, what role does a schema (such as YANG or Junos XSD) play when interacting with NETCONF?

Medium
231

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

Easy
232

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

Easy
233

You are writing a script that uses Jinja2 to dynamically render a Junos interface configuration. Which Python module and function are required to load a template from the local filesystem and render it with a dictionary of variables?

Easy
234

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
235

When using the Junos REST API to configure static routes, how does the JSON payload structure represent list items that can have multiple instances (such as multiple next-hops or static routes)?

Medium
236

You are using the PyEZ SW utility to install a new Junos image on a device. Which method parameter allows the script to automatically reboot the device after a successful installation?

Medium
237

Which TWO methods are provided by the Python standard library 'json' module for deserializing JSON data? (Choose two)

Medium
238

Which TWO methods or attributes are valid when using the PyEZ SW utility to manage Junos software? (Choose two)

Medium
239

You need to write a Python script that extracts interface status from a Junos device using PyEZ and converts the XML output directly into a Python dictionary. Which utility or function can assist with this conversion?

Medium
240

A network engineer is using Git for version control of Junos configurations. During a peer review on a pull request, a merge conflict arises because two engineers modified the same interface description line in different branches. What is the correct procedure to resolve this conflict in Git?

Hard
241

When parsing a Junos configuration snippet in YAML, an engineer notices a string value starting with a zero (e.g., '01234') that is unquoted. How do YAML parsers typically interpret this value?

Hard
242

You are writing a Python script to retrieve interface statistics from a Junos device using the REST API. You use HTTP Basic Authentication. Which HTTP header must be included to pass the encoded credentials correctly?

Hard
243

What is the primary benefit of decoupling network configuration data (YAML/JSON) from presentation templates (Jinja2) in network automation?

Medium
244

A network engineer writes a Python script using Junos PyEZ to push a configuration change. The script uses the ConfigTable or Config class. What mechanism does PyEZ use under the hood to ensure the configuration lock is released even if the script encounters an unhandled exception?

Hard
245

Which TWO of the following are valid ways to instantiate a PyEZ Device object in Python, providing connection parameters? (Choose two)

Medium
246

Which Junos automation toolset relies heavily on XML over NETCONF and provides robust Python libraries tailored specifically for Junos network devices?

Easy
247

An automation engineer wants to retrieve information about all software packages installed on a Junos device using the REST API. Which operational RPC endpoint category is typically targeted?

Medium
248

Which TWO data serialization formats can an automation engineer request using the 'Accept' header in a Junos REST API GET request? (Choose two)

Easy
249

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
250

An automation engineer is trying to retrieve operational data from a Junos device using the REST API. They send an HTTP GET request to the URI path 'http://192.168.1.1:3000/api/font/operational/system/information', but the request fails with a 404 Not Found error. What is the cause of this failure?

Medium
251

Which TWO characteristics distinguish the Junos REST API from NETCONF when interacting with Junos devices? (Choose two)

Medium
252

An administrator wants to disable the Junos REST API daemon entirely. Which CLI command achieves this?

Easy
253

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

Easy
254

In a Python script utilizing PyEZ, what method must be called on the Device instance after all configuration and operational tasks are complete to properly terminate the NETCONF session?

Easy
255

What is the primary benefit of using PyEZ Table and View abstractions over raw RPC XML parsing in Python scripts?

Easy
256

Which service daemon must be explicitly enabled in the Junos CLI configuration to allow REST API requests to be processed by the routing engine?

Easy
257

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
258

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
259

Which character is used to indicate a mapping key-value pair in YAML syntax?

Easy
260

An automation pipeline tests Junos configuration changes against a virtual Junos device (such as vSRX or cRPD) in a CI environment before deploying to physical hardware. What is this practice called?

Hard
261

Which TWO Python standard library modules are commonly combined when a script needs to fetch web content (such as Junos REST API data) and parse the resulting payload? (Choose two)

Medium
262

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
263

You need to execute a custom remote procedure call (RPC) in PyEZ to retrieve the Ethernet switching table. The tag in Junos XML API is get-ethernet-switching-table-information. How should you write this method call in Python?

Hard
264

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
265

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

Easy
266

Which TWO components are essential parts of a model-driven network automation architecture on Junos devices? (Choose two)

Hard
267

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

Easy
268

Which TWO benefits are gained by applying DevOps principles to Junos network management? (Choose two)

Easy
269

An automation engineer is designing a deployment strategy for Junos devices using Git branches. Which branching strategy model aligns best with continuous delivery where feature branches are merged frequently into a shared integration branch that automatically triggers staging tests?

Hard
270

Which TWO benefits are gained by using Python virtual environments when developing PyEZ and Jinja2 automation scripts? (Choose two)

Medium
271

When executing a configuration commit in Junos via NETCONF, which TWO commit parameters or modifiers can be specified in the RPC? (Choose two)

Hard
272

An automation developer is designing a script that reads routing policy parameters from a configuration file. Which TWO data formats are natively supported and commonly used across Junos automation toolchains like PyEZ, Ansible, and REST APIs for data serialization? (Choose two)

Easy
273

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

Easy
274

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

Medium
275

A Python automation script parses a Junos telemetry stream in JSON. The JSON payload uses integer keys in a dictionary (e.g., {443: 'HTTPS'}). When loaded into Python using json.loads(), what data type do the dictionary keys become?

Hard
276

When developing Python scripts that utilize PyEZ and Jinja2, which THREE best practices ensure robust and maintainable automation code? (Choose three)

Hard
277

When executing an RPC call in PyEZ, what format is typically returned by default if you do not parse it into another structure?

Easy
278

A network automation engineer is writing a Python script using the Junos PyEZ library to retrieve operational state from a QFX Series switch. The script needs to retrieve interface statistics using an RPC instead of raw CLI text parsing. Which PyEZ method should the engineer execute to invoke the 'get-interface-information' RPC and receive the structured XML response?

Hard
279

Which Junos automation tool utilizes NETCONF over SSH by default to manage network devices using Python libraries or configuration management frameworks?

Easy
280

Which of the following data types is natively supported in JSON without requiring custom serialization handlers?

Easy
281

A network automation engineer is utilizing the Junos PyEZ library in Python to manage device configurations. Which THREE methods or classes are part of the core Junos PyEZ library functionality? (Choose THREE)

Hard
282

When comparing the workflow and capabilities of the Junos REST API versus NETCONF, which THREE statements are correct? (Choose three)

Medium
283

An automation engineer is designing a Junos network automation workflow and needs to select the component of the Junos automation architecture responsible for parsing XML and JSONRPC client requests and interacting directly with the Junos kernel and daemons. Which component fulfills this role?

Easy
284

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
285

A Python script receives a JSON payload from a Junos device containing 64-bit interface counter integers. When loaded using the standard 'json' module, the script experiences precision loss on counter values exceeding standard integer limits. Which alternative JSON parser package for Python should be used to handle high-precision integers without data degradation?

Hard
286

An administrator configures the Junos REST API service. By default, which TCP port does the device listen on for secure HTTPS REST requests?

Easy
287

An administrator wants to retrieve the configuration of a specific interface (e.g., ge-0/0/0) using the Junos REST API. Which URI structure is appropriate for fetching this configuration resource in JSON format?

Medium
288

What is the primary benefit of using structured data formats (such as XML, JSON, or YAML) over unstructured CLI text output in Junos automation?

Easy
289

Which Junos configuration hierarchy is used to configure system services parameters related to the REST API agent?

Easy
290

Which THREE statements correctly contrast the session handling of NETCONF versus the Junos REST API? (Choose three)

Hard
291

You are configuring a webhook in your version control system to trigger an automated CI/CD pipeline whenever a developer pushes a configuration commit to the main branch of your Junos automation repository. What security mechanism should be implemented on the receiving pipeline webhook endpoint?

Hard
292

Which TWO of the following are valid extensions commonly used for YAML files? (Choose two)

Easy
293

When designing a custom PyEZ Table and View mapping in Python, what configuration parameter in the YAML definition file specifies the RPC or CLI command executed to gather the raw data?

Hard
294

What is the default TCP port used by the Junos jpagent for unencrypted HTTP REST API connections?

Easy
295

In a DevOps pipeline managing Junos devices, an engineer implements 'Infrastructure as Code' (IaC). Which practice best exemplifies this methodology when applied to Junos routing policies?

Hard
296

When writing a Python script to interact with Junos devices, you want to ensure that password credentials are not hardcoded in the source code. What is a recommended best practice supported by PyEZ?

Medium
297

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
298

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

Easy
299

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

Easy
300

How does the Junos REST API handle configuration commits compared to NETCONF workflow behavior?

Hard
301

In Git version control, which TWO commands are used to integrate changes from one branch into another? (Choose two)

Hard
302

You are writing a Python script to gather operational state information from a Junos device using PyEZ. Which method should you call on an open Device instance to retrieve standard hardware and OS inventory facts into a dictionary?

Medium
303

An automation script needs to check if a Junos device supports a specific feature before executing an RPC. Which PyEZ property can be checked to inspect the software version loaded on the device?

Medium
304

Which THREE HTTP methods are commonly used within the Junos REST API for managing configuration and operational resources? (Choose three)

Hard
305

Which Python module is part of the standard library and provides functions to serialize and deserialize JSON data?

Easy
306

An engineer is automating Junos device deployments using Ansible. They need to push a set of hierarchical configuration changes to a cluster of MX Series routers and ensure the changes are committed only if there are no syntax errors, while keeping the connection open for subsequent tasks. Which Ansible module and parameter combination should be used?

Medium

Frequently asked questions

What does the troubleshooting domain cover on the JNCIA-DevOps exam?
troubleshooting 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 306 troubleshooting 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 troubleshooting questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.