JNCIA-DevOps Junos REST API Practice Question
An engineer is troubleshooting a script that updates Junos configuration via the REST API. The payload is sent as JSON, but the device returns a 415 Unsupported Media Type error. What is the root cause?
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
✓
The Content-Type header provided in the HTTP request is missing or specifies an unsupported media type.
A 415 Unsupported Media Type error indicates that the Content-Type header sent in the HTTP request does not match what the Junos REST API daemon expects for processing configuration payloads (such as application/vnd.juniper.netconf.config+json or application/json).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The device is running out of memory buffers.
Why it's wrong here
Resource exhaustion typically results in 503 Service Unavailable or 500 Internal Server Error.
- ✗
The user account does not have permission to execute PUT requests.
Why it's wrong here
Permission issues result in 403 Forbidden, not 415.
- ✓
The Content-Type header provided in the HTTP request is missing or specifies an unsupported media type.
Why this is correct
415 Unsupported Media Type is explicitly caused by missing or invalid Content-Type headers.
- ✗
The target resource URI path does not exist on the device.
Why it's wrong here
Non-existent resource URIs result in 404 Not Found.
About these practice questions
One of 307 original JNCIA-DevOps practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.