Courseiva
easyMultiple ChoiceObjective-mapped

CCNP 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.

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 →

How Courseiva writes practice questions · Editorial policy

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.