350-501 Automation and Assurance Practice Question
Exhibit
Refer to the exhibit.
! RESTCONF GET request
! GET /restconf/data/Cisco-IOS-XE-interfaces-oper:interfaces/interface=GigabitEthernet0/0/0
! Response:
HTTP/1.1 200 OK
{
"Cisco-IOS-XE-interfaces-oper:interface": [
{
"name": "GigabitEthernet0/0/0",
"admin-status": "up",
"oper-status": "up",
"statistics": {
"input-bps": 1500000,
"output-bps": 2000000
}
}
]
}Refer to the exhibit. An engineer makes a RESTCONF request to retrieve operational data for all interfaces, but the response shows only one interface. What is the most likely cause?
⚠ Common exam trap
Cisco often tests the nuance that RESTCONF URIs are resource-addressable and that including a key in the path (e.g., /interface=GigabitEthernet0/0/0) filters the result to a single entry, which candidates may misinterpret as a device limitation or configuration issue.
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 request path includes a specific interface key, filtering the result
If the RESTCONF request path includes a specific interface key (e.g., /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet0/0/0), the API will return only that single interface's operational data, even if the engineer intended to retrieve all interfaces. RESTCONF uses URI-encoded keys to filter resources; omitting the key returns the entire list, while including a key narrows the response to that specific instance.
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 interfaces are in different VRFs
Why it's wrong here
RESTCONF retrieves interface data from the global VRF by default; VRFs do not affect the interface list.
- ✗
The device does not support the YANG model
Why it's wrong here
The 200 OK response confirms the model is supported.
- ✓
The request path includes a specific interface key, filtering the result
Why this is correct
The path '/interface=GigabitEthernet0/0/0' selects only that interface; to get all, use '/interfaces'.
- ✗
The engineer used the wrong HTTP method
Why it's wrong here
GET is the correct method to retrieve data; a wrong method would return an error.
- ✗
The collector is not subscribed to telemetry
Why it's wrong here
RESTCONF is a synchronous API, unrelated to telemetry subscriptions.
Go deeper
Related to this question
About these practice questions
This 350-501 question is part of Courseiva's 971-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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 350-501 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 350-501 exam.