Automation and DevOps, Specialist (JNCIS-DevOps) Free Sample Questions

Description

Covers management- and service-process platform automation and Terraform, gRPC and gNMI for Junos automation and telemetry, Ansible fundamentals, commit, and YANG and OpenConfig data modeling.

20 free sample questions197 in the full practice test

Try simulator

JN0-423 Sample Questions

  1. Question 1

    Advanced

    Junos Automation Scripts · Event Scripts Troubleshooting

    An automation engineer is developing a Junos event script to automatically disable an interface upon receiving a specific BGP notification log message. The script is written in Python and uses the jcs.invoke() function to execute the set interfaces disable command. During testing, the event policy triggers the script correctly, but the interface is not disabled. What is the most likely cause of this issue?

    Answer and explanation

    Correct answer: C

    Event scripts execute in an environment that does not have an open configuration session by default. To make a configuration change, the script must explicitly open a database connection (e.g., using Junos_Context['user-context']['jcs:open']), load the configuration change, and then commit it. Simply invoking a set command does not alter the persistent configuration.

  2. Question 2

    Intermediate

    gRPC · gNMI Sensor Paths

    A DevOps team is using the TIG stack (Telegraf, InfluxDB, Grafana) to monitor Junos devices via gNMI. They have configured a sensor path /interfaces/interface[name='ge-0/0/0']/state/counters/ to stream all counters for a specific interface. However, they only want to receive updates for the in-octets and out-octets counters to reduce the load on the telemetry collector. Which gNMI mechanism should be used to achieve this selective data streaming?

    Answer and explanation

    Correct answer: B

    The correct way to subscribe to specific data points is to list each full sensor path in the gNMI Subscribe RPC. Instead of using a wildcard path like /interfaces/interface[name='ge-0/0/0']/state/counters/, the client should request /interfaces/interface[name='ge-0/0/0']/state/counters/in-octets and /interfaces/interface[name='ge-0/0/0']/state/counters/out-octets explicitly. This ensures the device only streams the requested data, which is the most efficient method.

  3. Question 3

    Beginner

    YANG · YANG Syntax and Data Types

    When defining a custom YANG module, which statement correctly describes the purpose and relationship between the grouping and uses keywords?

    Answer and explanation

    Correct answer: C

    In YANG, grouping is used to define a collection of nodes (containers, lists, leaves) that can be reused in multiple places. It acts like a template or a macro. The uses statement then references a grouping to place that defined block of nodes into the current position in the schema tree. This promotes modularity and avoids repetition in the data model.

  4. Question 4

    IntermediateMultiple answers

    Platform Automation Overview · Terraform for Junos

    A network engineer is using Terraform to manage a fleet of Junos devices. They need to ensure that a specific BGP peer configuration is applied to a group of routers defined in the Terraform configuration. Which components are essential for this task? (Select TWO).

    Answer and explanation

    Correct answers: A, C

    The provider block is essential as it tells Terraform how to interact with the target API. For Junos devices, the juniper/junos provider must be declared and configured with connection details like the host and credentials.

    A resource block defines a piece of infrastructure. To apply configuration, a resource like junos_config_set or junos_config_object is used to specify the desired Junos configuration in set command format or another structured format.

  5. Question 5

    Intermediate

    Junos Automation Scripts · Commit Scripts

    A developer is writing a Junos commit script in SLAX to prevent configurations where a logical interface (unit) is assigned to a VLAN that is not defined under the [edit vlans] hierarchy. Which type of change does the script need to analyze to perform this validation?

    Answer and explanation

    Correct answer: C

    Commit scripts operate on the candidate configuration after it has been merged with the running configuration but before it is validated by the system. The script should parse this post-inheritance candidate configuration to check for the logical inconsistency between the interface's VLAN membership and the defined VLANs.

  6. Question 6

    Advanced

    gRPC · gNMI OpenConfig

    True or False: When using the gNMI Set RPC with OpenConfig models to configure a Junos device, the operation is atomic by default, meaning that if any part of the requested configuration change fails, the entire transaction is rolled back.

    Answer and explanation

    Correct answer: A

    True. Junos OS implements gNMI Set RPCs as atomic operations. The device treats the entire set of updates, replaces, and deletes within a single Set request as a single transaction. It performs a syntax check, and if successful, commits the changes. If any part of the transaction fails, the device rejects the entire change and rolls back to the previous state, ensuring configuration consistency.

  7. Question 7

    Beginner

    YANG · OpenConfig

    A financial services company needs to automate the deployment of standardized BGP configurations across its multi-vendor data center, which includes Juniper and Arista devices. A key requirement is to use a single, vendor-neutral data model to define the BGP policies and peerings to ensure consistency and simplify automation scripts. Which technology is specifically designed to address this requirement?

    Answer and explanation

    Correct answer: D

    OpenConfig is an industry initiative to define vendor-neutral YANG data models for network configuration and telemetry. By using the OpenConfig BGP models, the company can create a single, standardized representation of their BGP configuration that can be applied to both Juniper and Arista devices (assuming they both support the required OpenConfig models), fulfilling the core requirement.

  8. Question 8

    Intermediate

    Junos Automation Scripts · Op Scripts

    An administrator created a Junos op script named get-high-cpu.slax to identify processes with high CPU utilization. To make it easier to run, they want to create a CLI alias. Which configuration stanza is used to map the command show high-cpu to the execution of this op script?

    Answer and explanation

    Correct answer: D

    The correct hierarchy to create a CLI alias for an op script is [edit cli]. Within this stanza, the op-script-alias statement is used. The command would be set cli op-script-alias show-high-cpu script get-high-cpu.slax. This maps the user-friendly operational command show high-cpu to the specified op script file.

  9. Question 9

    Advanced

    Platform Automation Overview · MGD-based vs JSD-based Automation

    A consultant is tasked with choosing between MGD-based and JSD-based automation for a new project on a Junos device. The project requires running a persistent, on-box application that listens for external API calls, performs complex stateful logic, and then modifies the Junos configuration. Which automation approach is better suited for these requirements and why?

    Answer and explanation

    Correct answer: B

    JSD (Junos Service Daemon)-based automation, using the Juniper Extension Toolkit (JECT), is designed for creating custom, on-box applications (daemons) that run independently and persistently. This architecture is ideal for stateful applications that need to maintain logic over time and listen for external events, which aligns perfectly with the project requirements. MGD-based automation (like commit scripts) is typically stateless and event-triggered.

  10. Question 10

    Intermediate

    gRPC · Protocol Buffers

    A network automation engineer is building a gRPC client in Python to subscribe to telemetry data from a Junos device. What is the primary role of the Protocol Buffer (.proto) file in this process?

    sequenceDiagram participant Dev as Developer participant ProtoC as protoc Compiler participant Client as Python Client participant Server as Junos gRPC Server Dev->>ProtoC: Input .proto file ProtoC-->>Dev: Generate Python stubs (.py) Dev->>Client: Import generated stubs Client->>Server: Use stubs for RPC calls Server-->>Client: Return structured data
    Answer and explanation

    Correct answer: C

    The .proto file is the Interface Definition Language (IDL) for gRPC. It defines the API contract, including the available RPC methods (services) and the format of the data messages being exchanged. The protoc compiler uses this file to generate language-specific client and server code (stubs), which simplifies the development process by providing pre-built functions and classes for interacting with the gRPC service.

Register free for 10 more questions

Or unlock all 197 JN0-423 questions with explanations, timed mode and flashcards.