Courseiva

200-901 Understanding and Using APIs Practice Question

What is the correct URL path for retrieving the configuration of a network interface using RESTCONF on a Cisco device?

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

✓

/restconf/data/ietf-interfaces:interfaces

RESTCONF uses /restconf/data/ followed by the YANG module path. The standard path for interfaces is /restconf/data/ietf-interfaces:interfaces.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    /restconf/data/ietf-interfaces:interfaces

    Why this is correct

    The path `/restconf/data/ietf-interfaces:interfaces` satisfies RESTCONF's mandatory structure: the `/restconf/data` root, followed by the YANG module name (`ietf-interfaces`) and its container. This retrieves interface configuration from the Cisco device's datastore, matching the IETF standard model rather than a vendor-proprietary path.

  • ✗

    /restconf/data/interfaces

    Why it's wrong here

    RESTCONF requires the media type and resource path to follow the YANG module hierarchy, so /restconf/data/interfaces omits the module name and any interface identifier. It is tempting because it mirrors the familiar RESTCONF prefix, but the correct path includes the ietf-interfaces module and specific interface node.

  • ✗

    /api/restconf/data/interfaces

    Why it's wrong here

    The /api segment is not part of the RESTCONF specification; Cisco's RESTCONF endpoint begins at /restconf, so this path returns an error. It is tempting because /api appears in other Cisco programmatic interfaces, but RESTCONF mandates the standard /restconf/data prefix followed by the YANG module path.

  • ✗

    /restconf/operations/get-config

    Why it's wrong here

    RESTCONF retrieves configuration through the data resource, not an operations container; /restconf/operations invokes RPCs such as reset or clear. It is tempting because operations is a real RESTCONF path, and it is correct when calling a YANG-modelled action instead of reading interface configuration.

About these practice questions

This 200-901 question is part of Courseiva's 975-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 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.