JNCIA-DevOps Junos REST API Practice Question
When comparing error handling between NETCONF and the Junos REST API, how are protocol-level errors communicated back to the client?
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
✓
NETCONF embeds error details inside XML <rpc-error> tags, whereas REST API uses standard HTTP status codes accompanied by structured error response bodies.
NETCONF communicates errors via XML <rpc-error> elements embedded in the response envelope. The Junos REST API leverages standard HTTP status codes (such as 400 Bad Request, 401, 403, 404, 500) combined with detailed error payloads in the response body.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
NETCONF embeds error details inside XML <rpc-error> tags, whereas REST API uses standard HTTP status codes accompanied by structured error response bodies.
Why this is correct
NETCONF relies on XML RPC error tags, while REST uses standard HTTP status codes and response bodies.
- ✗
NETCONF uses HTTP status codes, while REST API uses XML <rpc-error> tags.
Why it's wrong here
This statement has the transport mechanisms reversed.
- ✗
NETCONF and REST API both use identical JSON error envelopes defined by RFC 7807.
Why it's wrong here
NETCONF natively uses XML RPC structures, not RFC 7807 JSON error envelopes.
- ✗
Both protocols rely exclusively on system syslog files to report errors to the client API.
Why it's wrong here
Errors are returned directly in the API response payload and status codes, not just syslogs.
About these practice questions
This JNCIA-DevOps question is part of Courseiva's 306-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.