What does the <enabled>true</enabled> tag achieve for a loopback interface?

Refer to the exhibit. What is achieved by this code? - image

  1. It unshuts the loopback interface. Source Reference Answer
  2. It displays the loopback interface.
  3. It renames the loopback interface.
  4. It deletes the loopback interface.

Community Votes

A
85%
B
15%

85% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The question tests your understanding of how modern network automation frameworks represent administrative states, while the common trap involves misreading XML as display output or relying on legacy knowledge that loopbacks cannot be administratively shut down.

This question evaluates your ability to translate declarative XML/YANG configuration payloads into traditional Cisco IOS CLI commands. The community consensus confirms that setting <enabled>true</enabled> directly maps to the no shutdown command, effectively unshutting the interface.

Option B is frequently selected when candidates mistake the XML snippet for show command output rather than a configuration payload. Some also hesitate because classic IOS treats loopbacks as always-up, but IOS XE YANG models explicitly support interface enable/disable states, making A the technically correct translation.

Community Discussion (7 comments)

ferdomravec87 👍 2
This is not a piece of code, this is a static XML, we see nothing about how/what is being executed here. weid question, I would answer B as a programmer.
NetworkJanitor 👍 2
Actually, a Loopback CAN be admin shut: Loopback0 unassigned YES unset administratively down down Tunnel0 10.100.100.2 YES NVRAM up up R20(config-if)# R20#sh ver | s Version Cisco IOS Software [Dublin], Linux Software (X86_64BI_LINUX-ADVENTERPRISEK9-M), Version 17.12.1, RELEASE SOFTWARE (fc5) Low quality Q in my opinion. <enable> would have to be <no shutdown>
zbeugene7 👍 2
Bad language.... One can't unshut something that can not be shutdown ever. loopback interface can't be shutdown , there is no need to unshut it, unless in CISCO vrsion of english being shut is the same as being disabled.....
chiacche 👍 1 Selected: A
<enabled>true</enabled> -> no shut
supershysherlock 👍 4 Selected: A
A. It unshuts the loopback interface. The configuration indicates that the loopback interface is being enabled with <enabled>true</enabled>. In networking terms, particularly Cisco, "no shutdown" is the command used to enable an interface, which is equivalent to setting the enabled state to true. So, this would be the equivalent of "unshutting" the loopback interface. The snippet doesn't display, rename, or delete an interface; it configures it to be enable
slacker_at_work 👍 4 Selected: A
I was mistaken: A. It unshuts the loopback interface. The <interface> element specifies the configuration of an interface. The <Loopback> element represents the loopback interface configuration. <name>100</name> specifies the name of the loopback interface, which is "100". <enabled>true</enabled> indicates that the loopback interface is enabled. The value "true" signifies that the interface is enabled. The provided XML code configures and enables a loopback interface with the name "100". This means that it unshuts (enables) the loopback interface.
slacker_at_work 👍 2 Selected: B
In my humble view it is B, but I can be mistaken.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Mapping Declarative Syntax to CLI Verbs

Modern network automation relies on data models like YANG, which serialize configurations into structured formats such as XML via NETCONF or RESTCONF. In these models, the <enabled>true</enabled> tag explicitly sets the administrative state of an object to active. When mapped to Cisco IOS XE, this directly corresponds to the imperative CLI command no shutdown. As highlighted by community members chiacche and supershysherlock, interpreting <enabled>true</enabled> as no shut is the standard automation-to-CLI translation.

Loopback Interface State Management

While traditional IOS versions treat loopback interfaces as virtual, always-up logical constructs, Cisco IOS XE's YANG interface model treats them uniformly with physical ports. This means they possess both an administrative state (enabled) and an operational state (oper-status). Setting <enabled>true</enabled> ensures the interface is administratively brought up, aligning perfectly with option A. NetworkJanitor and zbeugene7 correctly pointed out that loopbacks can indeed have an admin state in modern IOS XE environments, dispelling older misconceptions.

Eliminating Incorrect Options

Option B incorrectly assumes the snippet is read-only output, ignoring that the structure targets a configuration container rather than a data node. Option C is invalid because renaming requires modifying the <name> or id attribute, not the enabled flag. Option D would require a delete operation or setting the state to false, not enabling it. Mastering this translation between declarative tags and CLI verbs is essential for successfully navigating the programmability sections of the 350-401 exam.

Official Reference

Exam Strategy

When encountering XML, JSON, or YAML snippets on the 350-401 exam, immediately look for state-changing keywords like <enabled>, <state>, or <config> and mentally translate them to their CLI equivalents (no shutdown, ip address, etc.). Always verify whether the snippet is structured as a configuration payload or read-only output by checking for container elements versus list/data nodes.

Related Analysis

Practice All 350-401 Questions

Access 218 questions with complete answers and detailed explanations.

View Full 350-401 Practice Test →

← Back to 350-401 Study Guide