Courseiva
Question 812 of 989
Infrastructure and AutomationhardMultiple ChoiceObjective-mapped

200-901 Infrastructure and Automation Practice Question

Network Topology
rw interfaces+rw GigabitEthernet* [name]rw name stringrw description? stringrw iprw shutdown? boolean| +rw address?rw primaryrw address inet:ipv4-addressrw mask inet:ipv4-addressRefer to the exhibit.module: Cisco-IOS-XE-interface

A network engineer wants to programmatically enable an interface using the YANG model shown. Which XPath expression correctly targets the 'shutdown' leaf for GigabitEthernet0/1?

⚠ Common exam trap

Cisco often tests the distinction between using a key-based predicate (e.g., [name='0/1']) versus a positional index (e.g., [0/1]) or a concatenated name (e.g., GigabitEthernet0/1), which are invalid in YANG XPath expressions.

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

/interfaces/GigabitEthernet[name='0/1']/shutdown

It uses the correct XPath syntax to target the 'shutdown' leaf under a specific GigabitEthernet interface instance. The path starts from the root, navigates to the 'interfaces' container, selects the 'GigabitEthernet' list entry where the 'name' key equals '0/1', and then accesses the 'shutdown' leaf. This matches the YANG model structure where list entries are filtered using a predicate with the key leaf.

Answer analysis

Option-by-option breakdown

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

  • //shut

    Why it's wrong here

    Leaf name is shutdown, not shut.

  • /interfaces/GigabitEthernet[name='0/1']/shutdown

    Why this is correct

    Correctly uses list instance selection.

  • /Cisco-IOS-XE-interface:interfaces/GigabitEthernet[0/1]/shutdown

    Why it's wrong here

    Incorrect predicate syntax; should use key.

  • /native/interface/GigabitEthernet0/1/shutdown

    Why it's wrong here

    Not matching the module structure.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.