Courseiva
Cisco Platforms and DevelopmentmediumMultiple ChoiceObjective-mapped

200-901 Cisco Platforms and Development Practice Question

An administrator needs to retrieve the hostname of an IOS XE device using RESTCONF. Which URL and data path should they use?

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

RESTCONF on IOS XE uses the native YANG model; the hostname is under /Cisco-IOS-XE-native:native/hostname.

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

    Why this is correct

    This is the correct RESTCONF path for the hostname.

  • GET /api/v1/device/hostname

    Why it's wrong here

    This is not a RESTCONF path.

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

    Why it's wrong here

    Hostname is retrieved via GET, not POST.

  • GET /restconf/data/ietf-interfaces:interfaces

    Why it's wrong here

    This retrieves interfaces, not hostname.

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.