JNCIA-DevOps Junos REST API Practice Question
An automation script makes a REST API request to modify a Junos configuration. To ensure that the changes are validated and committed in a single workflow step without leaving dangling candidate changes, how can the commit parameter be handled?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Include the 'action=commit' query parameter or commit body flag with the configuration request.
The Junos REST API allows query parameters or header flags (such as '?action=commit' or dedicated commit instructions) to automatically commit changes made during a configuration modification request.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Issue an HTTP GET request to /api/configuration/commit.
Why it's wrong here
Committing changes requires a state-changing method (like POST or PUT with commit action), not a GET request.
- ✗
Set the Transfer-Encoding header to 'commit'.
Why it's wrong here
Transfer-Encoding is an HTTP protocol mechanism for chunked data transfer, not commits.
- ✓
Include the 'action=commit' query parameter or commit body flag with the configuration request.
Why this is correct
Commit query parameters or action flags instruct the REST API daemon to commit the candidate changes immediately.
- ✗
Send a separate SSH command because REST cannot commit configurations.
Why it's wrong here
REST API fully supports committing configurations via API calls.
About these practice questions
This JNCIA-DevOps question is part of Courseiva's 307-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint
This JNCIA-DevOps practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIA-DevOps exam.