JNCIA-DevOps Junos REST API Practice Question
You are writing a Python script to retrieve interface statistics from a Junos device using the REST API. You use HTTP Basic Authentication. Which HTTP header must be included to pass the encoded credentials correctly?
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
✓
Authorization
HTTP Basic Authentication requires the 'Authorization' header containing the keyword 'Basic' followed by the Base64-encoded username:password string.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Proxy-Authenticate
Why it's wrong here
Proxy-Authenticate is a response header sent by proxies, not a request header for device authentication.
- ✓
Authorization
Why this is correct
The 'Authorization' header is standard for passing Basic Authentication credentials in HTTP requests.
- ✗
Junos-Auth-Token
Why it's wrong here
Junos REST API does not use a header named Junos-Auth-Token for basic auth.
- ✗
X-API-Key
Why it's wrong here
Junos REST API uses standard HTTP Basic Authentication rather than custom X-API-Key headers by default.
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.