Courseiva

Juniper Networks Automation and DevOps, Associate (JNCIA-DevOps, JN0-224) (JNCIA-DevOps) (JNCIA-DevOps) — Questions 301307

307 questions total · 5pages · All types, answers revealed

Page 4

Page 5 of 5

301
MCQhard

How does the Junos REST API handle configuration commits compared to NETCONF workflow behavior?

A.REST API does not support committing configurations; it is strictly read-only for operational data.
B.NETCONF utilizes explicit lock, candidate modification, and commit RPC workflows, while REST API provides resource-based endpoints where configuration changes can trigger auto-commits or be committed via dedicated commit URIs.
C.NETCONF requires an explicit <commit> RPC, whereas the Junos REST API executes modifications directly against the running configuration with optional commit flags.
D.Both protocols bypass the candidate datastore entirely and write directly to NVRAM.
AnswerB

This correctly highlights the contrast between NETCONF's rigid RPC sequence and REST's resource-oriented transaction handling.

Why this answer

In NETCONF, changes are made to the candidate datastore and must be explicitly committed using the <commit> RPC. In the Junos REST API, configuration changes made via PUT, POST, or DELETE can either auto-commit depending on the API call parameters or require a separate commit action, but unlike NETCONF's explicit candidate/running model, REST abstracts transactions into resource endpoints where commit behaviors are managed via query parameters or dedicated commit endpoints.

302
Multi-Selecthard

In Git version control, which TWO commands are used to integrate changes from one branch into another? (Choose two)

Select 2 answers
A.git init
B.git merge
C.git status
D.git clone
E.git rebase
AnswersB, E

Correct. git merge joins branch histories together.

Why this answer

Git uses 'merge' and 'rebase' to integrate changes between branches.

303
MCQmedium

You 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?

A.dev.facts
B.dev.rpc.get_system_inventory()
C.dev.gather_facts()
D.dev.get_facts()
AnswerA

Correct. dev.facts is a property dictionary that returns the gathered facts of the device.

Why this answer

The .facts method populates a dictionary with system inventory details such as model, serial number, and version.

304
MCQmedium

An 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?

A.dev.get_version()
B.dev.version
C.dev.os_version
D.dev.facts['version']
AnswerD

Correct. dev.facts contains system details including the software version string.

Why this answer

dev.facts['version'] holds the Junos OS version string.

305
Multi-Selecthard

Which THREE HTTP methods are commonly used within the Junos REST API for managing configuration and operational resources? (Choose three)

Select 3 answers
A.TRACE
B.POST
C.GET
D.CONNECT
E.DELETE
AnswersB, C, E

POST is used to create new configuration resources or execute RPCs.

Why this answer

The Junos REST API uses HTTP GET for retrieving data, HTTP POST/PUT for creating or modifying resources, and HTTP DELETE for removing configuration elements.

306
MCQeasy

Which Python module is part of the standard library and provides functions to serialize and deserialize JSON data?

A.requests
B.yaml
C.junos-eznc
D.json
AnswerD

Correct. The json module is built into the Python standard library.

Why this answer

The 'json' module is part of the Python standard library and requires no external installation.

307
MCQmedium

An 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?

A.junipernetworks.junos.junos_command with 'commands: ["configure", "commit check"]'
B.junipernetworks.junos.junos_config with 'update: merge' and 'diff: true'
C.ansible.builtin.template with 'dest: /config/juniper.conf'
D.netconf_config with 'provider: junos'
AnswerB

junos_config with update: merge applies hierarchical configuration blocks and diff: true displays configuration changes.

Why this answer

The junipernetworks.junos.junos_config module manages Junos configurations, and the 'confirm' or 'diff' parameters manage operational validation, while the transport connection is handled automatically by the collection.

Page 4

Page 5 of 5

All pages