Juniper JN0-223 Automation and DevOps, Associate Exam Practice Test

Page: 1 / 14
Total 48 questions
Question 1

Junos PyEZ tables are formatted using which file type?



Answer : B

Junos PyEZ uses YAML (YAML Ain't Markup Language) files to define the format for tables and views when working with operational and configuration data. YAML is a human-readable data format that is commonly used for configuration files, making it suitable for defining data structures in PyEZ.

Option B (YAML) is correct because PyEZ tables are defined using YAML files.

Options A (JSON), C (txt), and D (IXML) are incorrect in this context, as YAML is the standard format used.

Supporting Reference:

Junos PyEZ Tables Documentation: Explains the use of YAML files for formatting tables and views in Junos PyEZ.


Question 2

What are two Junos PyEZ configuration object methods? (Choose two.)



Answer : C, D

In Junos PyEZ, the Config object provides various methods for interacting with device configurations. Two of the key methods are:

lock(): This method locks the candidate configuration database to prevent other users or processes from making changes while you are modifying the configuration.

config(): This method is used to create a Config object that represents the configuration database, allowing you to load, modify, and commit configuration changes.

Option C (lock) and Option D (config) are correct because they are valid methods provided by the PyEZ Config object.

Option A (commie) and Option B (device) are incorrect as they are not methods of the Config object.

Supporting Reference:

Junos PyEZ Documentation: Details the methods available in the Config object, including lock() and config().


Question 3

You are asked to write an on-box script that will be triggered when a specific interface on a Junos device goes down.

Which type of on-box script should you use to accomplish this task?



Answer : B

An event script is used to automate responses to system events in Junos, such as an interface going down. These scripts are triggered automatically when a specified event occurs, making them suitable for tasks like monitoring interface status and executing actions when the status changes.

Option B (event) is correct because event scripts are designed for reacting to system events like an interface going down.

Option A (commit) is used for configuration changes, Option C (operation) is used for operational tasks, and Option D (SNMP) is not applicable in this context.

Supporting Reference:

Juniper Networks Event Scripts Documentation: Details how event scripts are used to automate responses to specific system events in Junos


Question 4

Which Junos configuration database is updated by PyEZ by default?



Answer : C

An event script is used to automate responses to system events in Junos, such as an interface going down. These scripts are triggered automatically when a specified event occurs, making them suitable for tasks like monitoring interface status and executing actions when the status changes.

Option B (event) is correct because event scripts are designed for reacting to system events like an interface going down.

Option A (commit) is used for configuration changes, Option C (operation) is used for operational tasks, and Option D (SNMP) is not applicable in this context.

Supporting Reference:

Juniper Networks Event Scripts Documentation: Details how event scripts are used to automate responses to specific system events in Junos


Question 5

Which process is responsible for XML automation requests?



Answer : B

The mgd (Management Daemon) process in Junos is responsible for handling XML automation requests. This daemon manages the configuration and operational commands received via NETCONF, which uses XML for data exchange. The mgd process parses the XML data and applies the necessary configuration or retrieves the requested information.

Option B is correct because mgd is the process that handles XML-based requests in Junos.

Options A (jsrpd), C (rpd), and D (jsd) are incorrect because they are responsible for different functions, such as routing protocols and services, not XML automation.

Supporting Reference:

Juniper Networks Management Daemon (mgd) Documentation: Provides an overview of the responsibilities of the mgd process, including handling XML requests.


Question 6

Which two statements about NETCONF layers are correct? (Choose two.)



Answer : B, C

NETCONF (Network Configuration Protocol) is a standard protocol defined for managing network devices. NETCONF operates in a layered architecture, which includes the following key layers:

Operations Layer: This layer deals with the actual operations like <get-config>, <edit-config>, <copy-config>, and others. It receives RPC (Remote Procedure Call) requests from a remote NETCONF client and processes these requests.

Messages Layer: This layer is responsible for encoding the RPCs and sending them over the network. It handles the communication between the NETCONF client and server, ensuring that the RPC messages are correctly formatted (usually in XML) and transmitted.

Statement B is correct because the Messages layer is responsible for sending RPCs to a remote NETCONF server.

Statement C is correct because the Operations layer is where the NETCONF server receives and processes the RPCs sent by the client.

Supporting Reference:

Juniper Networks NETCONF Documentation: Provides a detailed breakdown of the NETCONF protocol layers and their functions.

RFC 6241: The official specification for NETCONF, which describes the layered architecture, including the operations and messages layers.


Question 7

Junos supports which two APIs for on-box scripting? (Choose two.)



Answer : A, C

Juniper Networks' Junos operating system supports several APIs for on-box scripting, two of which are:

JET (Juniper Extension Toolkit): JET is a modern API framework that provides a programmable interface for interacting with Junos. It allows developers to create custom applications that run directly on Junos devices, enabling the automation of network operations. JET provides both a gRPC and a REST API interface, allowing for flexible integration with external systems.

XML API: The Junos XML API allows direct interaction with the Junos OS through XML-based requests. This API can be used to retrieve information, configure devices, and execute commands on Junos devices. The XML API is crucial for automation tasks as it provides a structured and consistent way to interact with the device's configuration and operational data.

Detailed Explanation:

JET (A) provides high-performance access to Junos routing, switching, and service elements via programmable interfaces. It is highly used for creating custom applications that require tight integration with the Junos OS.

XML (C), on the other hand, is a well-established method for interacting with Junos, especially for legacy systems or when working within environments where XML is the standard data format.

Other options like Puppet (B) and Chef (D) are not APIs provided by Junos for on-box scripting but are configuration management tools used externally to manage Junos devices.


Juniper Networks JET Documentation: Provides details on how to leverage JET APIs for automation.

Junos XML Management Protocol Guide: Describes how to use XML for scripting and automating tasks in Junos.

These APIs are key components of Juniper's automation strategy, allowing for scalable, flexible, and efficient network operations.

Page:    1 / 14   
Total 48 questions