easyMultiple ChoiceObjective-mapped
350-401 Practice Question: A developer sends a RESTCONF request to retrieve…
A developer sends a RESTCONF request to retrieve interface statistics from a Cisco IOS-XE device:
Request: ``` GET /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1/statistics HTTP/1.1 Host: 192.168.1.1 Accept: application/yang-data+json ```
Response: ```json
{"ietf-interfaces:statistics": {
"discontinuity-time": "2023-01-01T00:00:00Z",
"in-octets": 1000000,
"in-errors": 0,
"out-octets": 500000,
"out-errors": 0
}
}```
What is the correct way to interpret this response?
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 response indicates the interface has 1,000,000 bytes received and 500,000 bytes transmitted.
The response shows the statistics for the interface, including in-octets and out-octets. The data is in JSON format with the namespace prefix 'ietf-interfaces:'. The engineer can use this data to monitor interface utilization.
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 response indicates the interface has 1,000,000 bytes received and 500,000 bytes transmitted.
Why this is correct
in-octets is received bytes, out-octets is transmitted bytes.
- ✗
The response shows the interface has 1,000,000 packets received and 500,000 packets transmitted.
Why it's wrong here
The fields are in-octets and out-octets, which count bytes, not packets.
- ✗
The response indicates the interface has errors, so it is malfunctioning.
Why it's wrong here
in-errors and out-errors are both 0, indicating no errors.
- ✗
The response is invalid because the namespace should be 'ietf-interfaces:interfaces-state'.
Why it's wrong here
The namespace 'ietf-interfaces' is correct for the interfaces model.
Go deeper
Related to this question
Learn chapter
SDN Controllers and Cisco ACI
Key term
NETCONF Protocol
NETCONF is a network management protocol that uses a structured data format to configure, retrieve, and modify network devices in a standard, programmatic way.
Key term
REST API for Network Devices
A REST API for network devices is a set of rules that allows software applications to communicate with routers, switches, and firewalls using standard web methods like GET, POST, PUT, and DELETE over HTTP or HTTPS.
About these practice questions
This 350-401 question is part of Courseiva's 1,175-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-401 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-401 exam.