JN0-423 Sample Questions

JN0-423 Sample Questions & Answers

gRPC and gNMI telemetry, platform automation and Terraform, Ansible basics, Junos scripting such as commit and event scripts, and OpenConfig and YANG data modeling each carry an equal share of the exam.

Launch the full JN0-423 simulator →

Showing 10 of 20 free samples.

  1. Question 1Advanced

    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.

    Show answer & 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.

  2. Question 2Beginner

    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?

    Show answer & 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.

  3. Question 3Intermediate

    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?

    Show answer & 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.

  4. Question 4Advanced

    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?

    Show answer & 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.

  5. Question 5Intermediate

    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
    Show answer & 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.

  6. Question 6Beginner

    YANG · YANG Syntax and Data Types

    You are creating a YANG model for a proprietary firewall feature. You need to define a leaf node named timeout that must be an integer between 60 and 3600, inclusive. Which YANG statement correctly defines this constraint?

    Show answer & explanation

    Correct answer: B

    The range statement is a substatement to the type definition in YANG. It is used to restrict the value space for integer and decimal types. The correct syntax uses two dots (..) to separate the minimum and maximum values of the inclusive range.

  7. Question 7Beginner

    Ansible · JSNAPy

    An organization is automating its network change validation process. The requirements are to capture the state of routing tables and interface statistics before a configuration change, and then compare this with the state after the change to verify operational health. Which Juniper automation tool is specifically designed for this pre- and post-change snapshot and comparison workflow?

    Show answer & explanation

    Correct answer: B

    JSNAPy (Junos Snapshot Administrator in Python) is the tool purpose-built for capturing operational state snapshots of a Junos device before and after a change. It uses YAML or JSON test files to define what data to collect and the conditions to test (e.g., route count is_equal, interface is_up). It can then generate a diff report highlighting any deviations from the expected state.

  8. Question 8IntermediateSelect 2

    gRPC · gRPC Security

    A team is setting up gRPC-based telemetry for a set of core routers. They need to ensure that the communication between the Junos devices and the collector is secure and encrypted. Which technologies or components are required to achieve this? (Select TWO).

    Show answer & explanation

    Correct answers: B, D

    gRPC leverages TLS for transport security. For robust security, mutual TLS (mTLS) is often used, where both the client (collector) and the server (Junos device) present certificates to authenticate each other, ensuring both parties are trusted.

    TLS and mTLS rely on X.509 certificates to establish identity and enable encryption. Both the Junos device and the collector must be configured with a certificate and private key, and they must trust the Certificate Authority (CA) that signed each other's certificates.

  9. Question 9Intermediate

    Junos Automation Scripts · Event Scripts

    A Junos event policy is configured to trigger a script whenever a UI_COMMIT_COMPLETED event occurs. The operations team reports that the script is being triggered too frequently, causing excessive load. They want to ensure the script runs at most once every 5 minutes, even if multiple commit events occur within that window. Which event policy configuration statement accomplishes this?

    Show answer & explanation

    Correct answer: D

    The correlate action within an event policy is used for event damping. The time-period option specifies, in seconds, the window during which subsequent identical events will be suppressed after the first one triggers the action. A value of 300 seconds (5 minutes) will ensure that after one UI_COMMIT_COMPLETED event triggers the script, all other UI_COMMIT_COMPLETED events are ignored for the next 5 minutes.

  10. Question 10Beginner

    YANG · YANG Syntax and Data Types

    True or False: In a YANG data model, a leaf-list node is used to define an ordered sequence of unique values of a simple data type.

    Show answer & explanation

    Correct answer: A

    True. A leaf-list is a YANG node type that defines a sequence of leaf nodes, each containing a value of a particular simple type (e.g., string, integer). By default, the values in a leaf-list must be unique, and their order is significant.

Ready for the real thing?

The full JN0-423 simulator has every exam-style question, timed mode, and instant scoring.