Courseiva
Cisco Platforms and DevelopmenthardMultiple ChoiceObjective-mapped

200-901 Cisco Platforms and Development Practice Question

In Cisco IOS XE, a network engineer wants to retrieve the hostname of a device using RESTCONF. Which URI and method should be used? Assume RESTCONF is enabled and the base URL is https://device/restconf.

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/Cisco-IOS-XE-native:native/hostname

The hostname is part of the native YANG model. The correct path is /restconf/data/Cisco-IOS-XE-native:native/hostname with GET.

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/hostname

    Why it's wrong here

    The correct path requires the model namespace prefix.

  • GET /restconf/data/Cisco-IOS-XE-native:native/hostname

    Why this is correct

    The RESTCONF protocol maps directly to NETCONF YANG data models via HTTP methods; here, GET retrieves the native hostname leaf under the Cisco-IOS-XE-native YANG module. This satisfies the stem’s requirement to retrieve the device hostname using RESTCONF, as the URI targets the exact data node in the running configuration datastore.

  • GET /restconf/data/Cisco-IOS-XE-interfaces:interfaces

    Why it's wrong here

    This path retrieves interfaces, not hostname.

  • POST /restconf/data/Cisco-IOS-XE-native:native/hostname

    Why it's wrong here

    POST would attempt to create a new hostname, not retrieve it.

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 →

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.