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

Create a free account to browse all 20 sample questions. The full practice test includes 197 questions. Use the simulator for timed and flashcard mode.

Try Simulator

JN0-423 Sample Questions

  1. Question 1

    Q1

    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?

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

    Q2

    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?

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

    Q3

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

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

    Q4Multiple answers

    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).

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

    Q5

    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?

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

    Q6

    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.

  7. Question 7

    Q7

    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.

  8. Question 8

    Q8

    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.

  9. Question 9

    Q9

    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.

  10. Question 10

    Q10

    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.

Register free to unlock 10 more sample questions

Create a free account to continue with the rest of the JN0-423 sample set.

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 197 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon