200-901 Understanding and Using APIs Practice Question
A developer is configuring a RESTCONF request to retrieve the configuration of an interface on a Cisco device. Which URL path and Content-Type header are correct?
⚠ Common exam trap
Cisco often tests the distinction between the generic 'application/json' and the RESTCONF-specific 'application/yang-data+json', leading candidates to choose the familiar but incorrect generic type.
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
✓
GET /restconf/data/interface with Content-Type: application/yang-data+json
RESTCONF uses the '/restconf/data' base path to retrieve configuration data (the 'data' resource), and the correct Content-Type for RESTCONF with JSON encoding is 'application/yang-data+json', as defined in RFC 8040. This combination ensures the request targets the operational or configuration datastore and specifies the YANG-encoded JSON media type.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
GET /restconf/data/interface with Content-Type: application/yang-data+json
Why this is correct
Correct path and Content-Type for RESTCONF data retrieval in JSON.
- ✗
GET /restconf/data/interface with Content-Type: application/xml
Why it's wrong here
Path is correct but Content-Type is not JSON; RESTCONF supports both but the question implies JSON.
- ✗
GET /restconf/data/interface with Content-Type: application/json
Why it's wrong here
RESTCONF uses application/yang-data+json, not generic application/json.
- ✗
GET /restconf/operations/interface with Content-Type: application/yang-data+json
Why it's wrong here
Operations path is for RPCs, not data retrieval.
Go deeper
Related to this question
About these practice questions
One of 989 original 200-901 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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-901 practice question is part of Courseiva's free Cisco 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 200-901 exam.