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.
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.
In a Jinja2 template designed for Junos configuration, how do you correctly output the value of a variable named 'hostname'?
Medium2Which PyEZ utility module should you import if you need to upgrade the Junos operating system on a remote device via a Python script?
Easy3Your 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?
Medium4An engineer needs to convert an existing YAML-formatted inventory file into JSON format using a Python script. Which workflow accomplishes this transformation?
Medium5You want to retrieve only the system hostname from the Junos running configuration using NETCONF. Which filtering technique is most efficient?
Medium6An 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?
Hard7You 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?
Hard8When troubleshooting REST API authentication and authorization on Junos devices, which THREE log files or diagnostic tools can an administrator inspect? (Choose three)
Hard9Which TWO statements are true regarding PyEZ Table and View definitions? (Choose two)
Medium10You 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?
Hard11When 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.)
Hard12You 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?
Medium13Which THREE mechanisms are valid methods for authenticating and establishing a NETCONF session with a Junos device? (Choose three)
Medium14Which THREE advanced features or methods are available on a PyEZ Device instance for session management and inspection? (Choose three)
Hard15An administrator wishes to secure their Junos REST API connections by configuring HTTPS instead of plain HTTP. Which command under 'system services jpagent' accomplishes this?
Easy16In the context of network DevOps, what is the purpose of implementing idempotency in automation scripts or playbooks targeting Junos devices?
Medium17Which symbol represents the beginning of a single YAML document stream?
Easy18When 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?
Hard19An 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?
Medium20What is JSNAPy primarily used for in Junos network automation?
Easy21Which TWO Python exceptions might be raised when attempting to parse a malformed JSON string using the standard 'json' module? (Choose two)
Medium22Which TWO advantages does structured telemetry and data streaming offer over traditional SNMP polling in Junos automation? (Choose two)
Easy23An 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()?
Medium24An 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?
Hard25What Jinja2 feature allows you to include the contents of another template file into your main configuration template?
Easy26You need to lock the candidate configuration datastore in your NETCONF script to prevent concurrent modifications by other administrators. Which XML element accomplishes this?
Medium27When 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?
Hard28You 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)
Hard29An 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?
Medium30Which of the following primitive data types is NOT supported natively in JSON?
Easy31In 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)
Hard32An 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?
Hard33An 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?
Medium34Which Jinja2 construct is used to define reusable blocks of template code that can be called with arguments like a function?
Easy35You 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?
Medium36An 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?
Hard37A 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?
Medium38An 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?
Hard39An 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?
Medium40Which THREE features are provided by the Junos REST API daemon (jpagent) when running on a Junos device? (Choose three)
Medium41Which TWO characters or sequences are valid in YAML for representing lists or sequences? (Choose two)
Easy42When 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?
Medium43Which TWO benefits are provided by implementing automated CI/CD pipelines for Junos network changes? (Choose two)
Easy44When retrieving operational data using the Junos XML API, how do you request pretty-printed or indented XML output?
Medium45An 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?
Medium46Which TWO characteristics describe declarative network automation compared to imperative scripting? (Choose two)
Easy47An 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?
Hard48Which TWO methods can an administrator use to verify that a Python script successfully established a NETCONF session with a Junos device? (Choose two)
Easy49An 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?
Hard50An 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?
Medium51When 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?
Hard52You 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?
Hard53When troubleshooting Junos REST API integration issues, which THREE factors should an engineer examine if API requests return connection timeouts or refused errors? (Choose three)
Hard54When comparing the Junos REST API workflow to the NETCONF protocol workflow, which characteristic is unique to the REST API?
Easy55You 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'?
Hard56An 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?
Easy57Why 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?
Medium58When writing Jinja2 templates for Junos configurations, which THREE control flow or filtering constructs are valid? (Choose three)
Hard59You 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?
Hard60Which term describes the practice of continuously building, testing, and validating software or network configurations in an automated pipeline?
Easy61Which 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)
Medium62An 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?
Medium63You 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?
Hard64Which TWO commands or tools are associated with running JSNAPy snapshot verifications from a CLI environment? (Choose two)
Medium65You 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?
Hard66When interacting with Junos devices via NETCONF, which TWO RPC operations are part of standard NETCONF protocol capabilities? (Choose two)
Hard67Which Junos configuration statement enables the NETCONF service over SSH for remote automation clients?
Easy68An engineer needs to explain the primary advantage of treating network configurations as code in a modern DevOps workflow. Which principle best describes this approach?
Easy69An 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?
Medium70When executing a NETCONF <get-config> request, you specify <source><candidate/></source> but omit any filtering tags. What is returned in the <rpc-reply>?
Hard71You 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?
Medium72When configuring a JSNAPy test file, which section defines the specific RPCs or CLI commands that should be executed to gather operational data?
Medium73You 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?
Medium74An 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?
Medium75An 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)
Medium76Which protocol is natively used by Junos XML management APIs to provide structured, session-oriented configuration and operational data exchange?
Easy77When managing configuration changes via PyEZ Config utility, which context manager ensures that changes are automatically rolled back if an exception occurs within the block?
Easy78During 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?
Medium79An 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?
Hard80When designing a version control workflow for Junos configurations using Git, which THREE practices are considered industry best standards? (Choose three)
Medium81A 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?
Easy82An 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?
Hard83A 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?
Medium84Which user credential validation mechanism does the Junos REST API use by default when authenticating incoming API calls?
Easy85An 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?
Medium86You 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?
Hard87Which statement best describes the primary architectural difference between NETCONF and the Junos REST API?
Easy88Which TWO actions can be performed using the JSNAPy command-line interface (CLI) tool during network verification workflows?
Medium89An 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?
Medium90You want to validate a candidate configuration on a Junos device without committing it using NETCONF. Which RPC accomplishes this?
Medium91When 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?
Hard92An 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?
Medium93An 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?
Medium94A 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?
Hard95When writing Python automation scripts for Junos using PyEZ, which THREE objects or methods are commonly used for device interaction and configuration management? (Choose three)
Medium96In a CI/CD pipeline for network changes, what is the role of automated unit testing?
Medium97A 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?
Medium98Which TWO operations are valid targets for the NETCONF <get-config> RPC on a Junos device? (Choose two)
Medium99What is a primary characteristic of a DevOps culture when applied to network operations (NetOps)?
Easy100Which TWO configuration steps are required to enable the Junos REST API with basic security settings? (Choose two)
Easy101An 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?
Easy102An engineer executes a NETCONF <discard-changes> RPC. What is the precise effect of this operation on the Junos device?
Hard103When 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?
Hard104An 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?
Medium105Which Python library does PyEZ depend on under the hood for managing secure SSH connections and NETCONF framing?
Easy106When retrieving configuration data in JSON format from the Junos REST API, how are Junos hierarchical container statements represented in the JSON payload structure?
Medium107Which statement accurately describes how the Junos REST API handles configuration locking compared to NETCONF workflows?
Easy108An 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?
Medium109You 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?
Medium110An 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?
Easy111Which TWO of the following are valid scalar values in a YAML document? (Choose two)
Easy112Which TWO benefits are gained by using the Junos REST API instead of traditional CLI screen-scraping in automation workflows? (Choose two)
Easy113When 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)
Hard114Which of the following valid JSON values represents a boolean true state?
Easy115Which command is used in Git to save staged changes to the local repository with a descriptive commit message?
Easy116You 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?
Medium117An 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?
Medium118An 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?
Easy119What is the primary templating engine used alongside Python for generating structured Junos configuration text in network automation workflows?
Easy120An 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?
Hard121Which TWO conditions will cause a NETCONF <edit-config> transaction to fail on a Junos device? (Choose two)
Medium122Which file extension is conventionally used for YAML data serialization files?
Easy123An 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?
Medium124A 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?
Hard125Which of the following characters is used to start a comment line in a YAML document?
Easy126Which THREE architectural features distinguish the Junos REST API from traditional CLI screen-scraping (CLI automation via expect scripts)? (Choose three)
Hard127An 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?
Medium128Which data serialization formats are natively supported by the Junos REST API for both input and output payloads?
Easy129An 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?
Easy130An 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?
Hard131Which TWO methods are valid for loading configuration data into the PyEZ Config utility from different sources? (Choose two)
Medium132Which TWO statements are true regarding NETCONF locking mechanisms on Junos devices? (Choose two)
Medium133Which THREE exceptions can be raised by PyEZ during script execution when interacting with a Junos device? (Choose three)
Hard134You 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?
Hard135When implementing Jinja2 templates for Junos configuration generation, which THREE features or syntax constructs are natively supported by the Jinja2 engine?
Hard136Which Python function deserializes a JSON-formatted string into a native Python dictionary?
Easy137An 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?
Hard138An 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?
Hard139An 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)
Medium140During 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?
Hard141When configuring JSNAPy, which THREE components or sections are typically required within a YAML check/snapshot file? (Choose three)
Hard142An 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?
Medium143Which TWO features are supported by YAML but are notably absent in standard JSON? (Choose two)
Medium144Which Junos configuration command enables the REST API daemon to start automatically upon device boot?
Easy145You 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?
Medium146You 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?
Medium147When 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)
Hard148When 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)
Hard149When 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?
Medium150An 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?
Hard151When designing an automation workflow that uses the Junos REST API for configuration management, which THREE practices ensure robust execution? (Choose three)
Medium152Which TWO HTTP response status codes indicate a successful Junos REST API request where data was successfully retrieved or modified? (Choose two)
Easy153When you issue a NETCONF <get-config> request for the running configuration, why might the request fail or return empty on certain Junos platforms?
Medium154Which python module is part of the standard library that can be used to parse XML responses returned by NETCONF?
Easy155During 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?
Hard156A 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?
Easy157An 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?
Medium158When 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)
Hard159A 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?
Easy160Which TWO characteristics describe JSNAPy snapshot operations? (Choose two)
Medium161Which TWO actions occur during the initial NETCONF session establishment phase between a client and a Junos device? (Choose two)
Easy162When working with the PyEZ Config utility, which THREE actions can be performed using the configuration context manager or its methods? (Choose three)
Hard163Which THREE attributes are available within the <edit-config> operation element in NETCONF to specify the modification action on a target node? (Choose three)
Hard164An automation engineer needs to include comments explaining complex network parameters inside a Junos automation data file. Which serialization format should the engineer select?
Medium165Which TWO of the following methods or attributes are valid ways to handle rollback operations or commit errors when using the PyEZ Config utility (cu)?
Hard166An 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?
Medium167A 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)
Hard168Which statement correctly identifies the relationship between Junos REST API and NETCONF data models?
Easy169Which THREE advantages are associated with using the Junos REST API over NETCONF in lightweight automation scripts? (Choose three)
Medium170You 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?
Medium171In Junos XML API, what is the XML namespace associated with Junos-specific RPCs and operational tags?
Easy172You 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?
Hard173What is the native data format returned by Junos devices when queried via REST API or NETCONF operations configured with JSON output formatting?
Easy174Which THREE actions can be performed using the Junos REST API operational endpoints? (Choose three)
Medium175When using Jinja2 templates in Python to generate configurations, how can you load a template file from disk prior to rendering it with variables?
Medium176When working with PyYAML in Python for Junos automation scripts, which THREE of the following practices enhance script security and robustness? (Choose three)
Hard177When 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?
Hard178Which THREE principles are foundational to the DevOps movement when applied to network engineering? (Choose three)
Medium179A 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)
Easy180An 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?
Medium181Which Junos automation architecture component provides standardized, model-driven interfaces using NETCONF and gRPC/gNMI to manage and monitor Junos devices?
Easy182You 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?
Medium183An 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?
Hard184Which THREE tasks are typical responsibilities of a network DevOps engineer managing a Junos infrastructure? (Choose three)
Medium185You want to run a JSNAPy verification test via Python code. Which Python class should you import and instantiate to execute the snapshot comparison programmatically?
Hard186When 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'?
Hard187In JSNAPy, what file format is used to define test cases and expected operational states?
Easy188Which TWO of the following are valid primitive data types in JSON? (Choose two)
Easy189When comparing error handling between NETCONF and the Junos REST API, how are protocol-level errors communicated back to the client?
Hard190Which TWO tools or protocols can be used to interact with the Junos XML API besides NETCONF over SSH? (Choose two)
Easy191Which 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)
Hard192Which TWO benefits does NETCONF provide over traditional screen-scraping CLI automation? (Choose two)
Easy193Which TWO characteristics are true regarding the Junos REST API? (Choose two)
Easy194An 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?
Hard195Which THREE error-type values are defined in the NETCONF protocol specification (RFC 6241) for categorizing <rpc-error> messages? (Choose three)
Hard196What is the primary delimiter used to separate key-value pairs in a JSON object?
Easy197An 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?
Hard198A 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?
Hard199What is the standard IETF RFC that defines the core NETCONF protocol architecture and operations?
Easy200Which THREE parameters can be included within a Junos NETCONF <commit> RPC request to customize commit behavior? (Choose three)
Hard201You 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?
Hard202You 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?
Hard203When managing Junos configuration changes in a team environment, why is atomic configuration rollback capability crucial during automated deployments?
Medium204An 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?
Hard205What is the purpose of the <hello> element exchanged immediately after establishing a NETCONF SSH session?
Easy206What is the primary function of a version control system (VCS) like Git in a Junos automation workflow?
Easy207Which THREE distinct operational states or configuration views can be queried using specific Junos XML API RPCs? (Choose three)
Hard208In a CI/CD pipeline configured for Junos network changes, which THREE automated testing steps are typically performed before production deployment? (Choose three)
Medium209What type of brackets enclose an array in a JSON document?
Easy210When 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?
Medium211When 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?
Medium212An 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?
Easy213Which transport protocol is mandated by RFC 6241 as the standard secure connection mechanism for NETCONF when operating in typical Junos enterprise automation environments?
Easy214When executing a configuration change via the Junos REST API, what is the role of the HTTP DELETE method?
Medium215When writing a Python script using PyEZ, how should you handle connection timeout exceptions when attempting to connect to an unreachable Junos device?
Hard216Which Junos XML API output format option allows requesting the output as plain text instead of structured XML?
Easy217In a Junos NETCONF automation workflow, what happens during a lock operation on the configuration database? (Choose two)
Hard218You are writing a script that parses NETCONF responses from Junos. You encounter an element named <ok/> inside an <rpc-reply>. What does this indicate?
Medium219Which TWO tools or platforms are commonly used for version control and hosting of Junos automation code repositories? (Choose two)
Easy220When using Jinja2 inheritance, which tag is placed in a base template to indicate where child templates can insert their custom content?
Medium221An 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?
Easy222An 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?
Hard223Which of the following describes the fundamental structural difference between JSON and YAML regarding syntax design?
Easy224Which TWO tasks are typically automated using Python and PyEZ in a network DevOps pipeline? (Choose two)
Medium225Which TWO file formats are commonly used for structuring network configuration data and automation templates in Junos DevOps pipelines? (Choose two)
Easy226An 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?
Medium227When comparing NETCONF and the Junos REST API workflows, which statement accurately describes how configuration locks are handled?
Medium228You 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?
Hard229An 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?
Medium230In a Junos automation environment, what role does a schema (such as YANG or Junos XSD) play when interacting with NETCONF?
Medium231What is the role of the <rpc> element in a NETCONF message exchange?
Easy232Which command or tool on a Junos device verifies that the NETCONF subsystem is enabled and listening for SSH connections?
Easy233You 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?
Easy234While 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?
Hard235When 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)?
Medium236You 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?
Medium237Which TWO methods are provided by the Python standard library 'json' module for deserializing JSON data? (Choose two)
Medium238Which TWO methods or attributes are valid when using the PyEZ SW utility to manage Junos software? (Choose two)
Medium239You 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?
Medium240A 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?
Hard241When 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?
Hard242You 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?
Hard243What is the primary benefit of decoupling network configuration data (YAML/JSON) from presentation templates (Jinja2) in network automation?
Medium244A 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?
Hard245Which TWO of the following are valid ways to instantiate a PyEZ Device object in Python, providing connection parameters? (Choose two)
Medium246Which Junos automation toolset relies heavily on XML over NETCONF and provides robust Python libraries tailored specifically for Junos network devices?
Easy247An 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?
Medium248Which TWO data serialization formats can an automation engineer request using the 'Accept' header in a Junos REST API GET request? (Choose two)
Easy249An 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?
Hard250An 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?
Medium251Which TWO characteristics distinguish the Junos REST API from NETCONF when interacting with Junos devices? (Choose two)
Medium252An administrator wants to disable the Junos REST API daemon entirely. Which CLI command achieves this?
Easy253Which NETCONF capability URI indicates that the server supports rolling back configuration changes to previous commit points?
Easy254In 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?
Easy255What is the primary benefit of using PyEZ Table and View abstractions over raw RPC XML parsing in Python scripts?
Easy256Which service daemon must be explicitly enabled in the Junos CLI configuration to allow REST API requests to be processed by the routing engine?
Easy257When using NETCONF to edit a Junos configuration, you include the attribute operation="create" on an existing configuration leaf. What behavior does the device exhibit?
Hard258An 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.)
Medium259Which character is used to indicate a mapping key-value pair in YAML syntax?
Easy260An 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?
Hard261Which 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)
Medium262An 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?
Hard263You 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?
Hard264You 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'?
Hard265Which tool or library is commonly used in Python to simplify interacting with Junos NETCONF APIs by abstracting low-level XML handling?
Easy266Which TWO components are essential parts of a model-driven network automation architecture on Junos devices? (Choose two)
Hard267Which NETCONF RPC tag is used to gracefully terminate an active NETCONF session with a Junos device?
Easy268Which TWO benefits are gained by applying DevOps principles to Junos network management? (Choose two)
Easy269An 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?
Hard270Which TWO benefits are gained by using Python virtual environments when developing PyEZ and Jinja2 automation scripts? (Choose two)
Medium271When executing a configuration commit in Junos via NETCONF, which TWO commit parameters or modifiers can be specified in the RPC? (Choose two)
Hard272An 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)
Easy273Which XML tag encapsulates the entire response returned by a Junos device in reply to a valid NETCONF RPC request?
Easy274Which TWO configuration datastores are commonly supported and utilized when interacting with Junos devices via NETCONF? (Choose two)
Medium275A 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?
Hard276When developing Python scripts that utilize PyEZ and Jinja2, which THREE best practices ensure robust and maintainable automation code? (Choose three)
Hard277When executing an RPC call in PyEZ, what format is typically returned by default if you do not parse it into another structure?
Easy278A 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?
Hard279Which Junos automation tool utilizes NETCONF over SSH by default to manage network devices using Python libraries or configuration management frameworks?
Easy280Which of the following data types is natively supported in JSON without requiring custom serialization handlers?
Easy281A 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)
Hard282When comparing the workflow and capabilities of the Junos REST API versus NETCONF, which THREE statements are correct? (Choose three)
Medium283An 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?
Easy284An 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?
Hard285A 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?
Hard286An administrator configures the Junos REST API service. By default, which TCP port does the device listen on for secure HTTPS REST requests?
Easy287An 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?
Medium288What is the primary benefit of using structured data formats (such as XML, JSON, or YAML) over unstructured CLI text output in Junos automation?
Easy289Which Junos configuration hierarchy is used to configure system services parameters related to the REST API agent?
Easy290Which THREE statements correctly contrast the session handling of NETCONF versus the Junos REST API? (Choose three)
Hard291You 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?
Hard292Which TWO of the following are valid extensions commonly used for YAML files? (Choose two)
Easy293When 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?
Hard294What is the default TCP port used by the Junos jpagent for unencrypted HTTP REST API connections?
Easy295In 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?
Hard296When 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?
Medium297You send an edit-config RPC with an invalid XML tag name. What is the standard structure of the error returned in the <rpc-reply>?
Medium298Which TWO statements are true regarding the NETCONF protocol hello message exchange? (Choose two.)
Easy299When establishing a NETCONF session over SSH, which standard capability announcement is exchanged during the initial hello message phase?
Easy300How does the Junos REST API handle configuration commits compared to NETCONF workflow behavior?
Hard301In Git version control, which TWO commands are used to integrate changes from one branch into another? (Choose two)
Hard302You 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?
Medium303An 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?
Medium304Which THREE HTTP methods are commonly used within the Junos REST API for managing configuration and operational resources? (Choose three)
Hard305Which Python module is part of the standard library and provides functions to serialize and deserialize JSON data?
Easy306An 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?
MediumOther domains
All JNCIA-DevOps exam domains
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.