JNCIA-DevOps Junos REST API Practice Question
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?
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
✓
Send a request to the configuration discard/rollback endpoint or invoke the discard-changes RPC via the REST API.
Discarding candidate changes in the Junos REST API is performed by invoking the discard configuration RPC or action endpoint equivalent to the NETCONF <discard-changes/> RPC.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Send an HTTP GET request with ?action=reset.
Why it's wrong here
?action=reset is not a valid standard Junos REST discard parameter.
- ✗
Issue an HTTP DELETE request to the root /api/configuration path.
Why it's wrong here
Deleting the root configuration path would delete the entire configuration tree rather than discarding uncommitted changes.
- ✗
Restart the routing engine process (RE switchover).
Why it's wrong here
Restarting the RE is a disruptive operational action, not an API discard mechanism.
- ✓
Send a request to the configuration discard/rollback endpoint or invoke the discard-changes RPC via the REST API.
Why this is correct
Discarding changes via REST maps to the discard-changes RPC or configuration discard action.
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.