Courseiva

JNCIA-DevOps · topic practice

Junos REST API practice questions

This domain covers the Junos REST API on Junos devices: enabling the REST service with the 'set system services rest' hierarchy, authenticating requests, choosing JSON or XML payloads, and issuing HTTP GET, POST, PUT, and DELETE calls against RPCs and configuration endpoints. Questions test headers, authentication handling, and safe configuration workflows.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Junos REST API

What the exam tests

What to know about Junos REST API

Be able to enable the Junos REST API, authenticate with HTTP Basic Auth, set Accept and Content-Type headers for JSON or XML, and issue GET, POST, PUT, and DELETE requests to retrieve operational data and manage configuration safely.

Enabling the Junos REST API via 'set system services rest http' or 'https' and verifying reachability

Using HTTP Basic Authentication with valid Junos user credentials for REST requests

Setting Accept and Content-Type headers to application/json or application/xml for payloads

Retrieving operational data with GET RPCs and configuration with /rpc/get-configuration or config endpoints

Watch out for

Common Junos REST API exam traps

  • ▸Sending requests without the correct Accept header, so Junos returns XML instead of the expected JSON payload
  • ▸Assuming a 401 means bad credentials when the REST service or user permissions are actually misconfigured
  • ▸Using HTTP methods incorrectly, such as POST when GET is required for read-only operational RPCs

Practice set

Junos REST API questions

20 questions · select your answer, then reveal the explanation

An administrator wishes to secure their Junos REST API connections by configuring HTTPS instead of plain HTTP. Which command under 'system services jpagent' accomplishes this?

Question 2easymultiple choice
Review the full routing breakdown →

Which service daemon must be explicitly enabled in the Junos CLI configuration to allow REST API requests to be processed by the routing engine?

Question 3mediummultiple choice
Read the full Junos REST API explanation →

An automation engineer is trying to retrieve operational data from a Junos device using the REST API. They send an HTTP GET request to the URI path 'http://192.168.1.1:3000/api/font/operational/system/information', but the request fails with a 404 Not Found error. What is the cause of this failure?

Question 4mediummultiple choice
Read the full REST/YANG explanation →

When comparing NETCONF and the Junos REST API workflows, which statement accurately describes how configuration locks are handled?

An engineer needs to modify a configuration parameter using the Junos REST API via an HTTP PUT request. They include the Content-Type header as 'application/json'. However, the device rejects the payload. What is the correct Content-Type or Accept header requirement for configuration manipulation payload representation in Junos REST API?

Question 6hardmultiple choice
Read the full REST/YANG explanation →

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

Question 7mediummultiple choice
Read the full Junos REST API explanation →

An automation engineer needs to check if the Junos REST API is actively running and responsive on a managed device without querying heavy configuration data. Which lightweight endpoint can be queried?

Question 8mediummultiple choice
Read the full Junos REST API explanation →

An administrator wants to retrieve the configuration of a specific interface (e.g., ge-0/0/0) using the Junos REST API. Which URI structure is appropriate for fetching this configuration resource in JSON format?

When configuring the Junos REST API, an administrator restricts access to a specific port and enables SSL. Which configuration statement sets the secure HTTPS port to 8443?

Question 10easymultiple choice
Read the full Junos REST API explanation →

What is the default TCP port used by the Junos jpagent for unencrypted HTTP REST API connections?

Question 11easymultiple choice
Read the full Junos REST API explanation →

An administrator wants to disable the Junos REST API daemon entirely. Which CLI command achieves this?

Question 12mediummultiple choice
Read the full Junos REST API explanation →

When sending an HTTP POST request to create a new configuration resource via the Junos REST API, what happens if the resource already exists in the candidate configuration?

Question 13mediummulti select
Read the full REST/YANG explanation →

When comparing the workflow and capabilities of the Junos REST API versus NETCONF, which THREE statements are correct? (Choose three)

Which TWO configuration steps are required to enable the Junos REST API with basic security settings? (Choose two)

When troubleshooting Junos REST API integration issues, which THREE factors should an engineer examine if API requests return connection timeouts or refused errors? (Choose three)

Question 16hardmultiple choice
Read the full Junos REST API explanation →

An engineer is designing an automated failover script that needs to discard candidate configuration changes made via the Junos REST API. How should this discard action be performed?

Question 17easymultiple choice
Read the full Junos REST API explanation →

Which Junos configuration command enables the REST API daemon to start automatically upon device boot?

When configuring advanced options for the Junos REST API jpagent, which THREE parameters or sub-statements can be configured under the 'set system services jpagent' hierarchy? (Choose three)

Question 19easymultiple choice
Read the full Junos REST API explanation →

An automation engineer needs to enable and configure the Junos REST API service on an SRX Series device using the CLI. Which configuration hierarchy must be used to enable the service and configure its transport protocol?

Question 20hardmultiple choice
Read the full Junos REST API explanation →

An administrator wants to fetch operational data representing interface statistics using the Junos REST API by issuing an HTTP GET request. Which URI structure correctly targets the 'get-interface-information' RPC via the REST API endpoint?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Junos REST API sessions

Start a Junos REST API only practice session

Every question in these sessions is drawn from the Junos REST API domain — nothing else.

Related practice questions

Related JNCIA-DevOps topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the JNCIA-DevOps exam test about Junos REST API?
Be able to enable the Junos REST API, authenticate with HTTP Basic Auth, set Accept and Content-Type headers for JSON or XML, and issue GET, POST, PUT, and DELETE requests to retrieve operational data and manage configuration safely.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Junos REST API questions in a focused session?
Yes — the session launcher on this page draws every question from the Junos REST API domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other JNCIA-DevOps topics?
Use the topic links above to move to related areas, or go back to the JNCIA-DevOps question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the JNCIA-DevOps exam covers. They are not copied from any real exam or dump site.