nerdexam
Cisco

200-901 · Question #580

Refer to the exhibit. A network engineer wants to change the name of a device. The engineer submits a NETCONF request and receives a response. Which NETCONF request did the engineer submit? A. B. C…

The correct answer is D. <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>. To modify the hostname of a device via NETCONF, the <edit-config> operation is used to apply configuration changes to the running datastore.

Understanding and Using APIs

Question

Refer to the exhibit. A network engineer wants to change the name of a device. The engineer submits a NETCONF request and receives a response. Which NETCONF request did the engineer submit? A. B. C. D.

Exhibits

200-901 question #580 exhibit 1
200-901 question #580 exhibit 2
200-901 question #580 exhibit 3
200-901 question #580 exhibit 4
200-901 question #580 exhibit 5

Options

  • A<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <new-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </new-config> </rpc>
  • B<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>
  • C<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <copy-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </copy-config> </rpc>
  • D<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    13% (5)
  • C
    8% (3)
  • D
    75% (30)

Why each option

To modify the hostname of a device via NETCONF, the `<edit-config>` operation is used to apply configuration changes to the `running` datastore.

A<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <new-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </new-config> </rpc>

The `<new-config>` operation is not a valid standard NETCONF RPC as defined in RFC 6241.

B<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>

This option is identical to option D, which is the correct answer and represents a valid NETCONF `<edit-config>` request.

C<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <copy-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </copy-config> </rpc>

The `<copy-config>` operation is used to copy an entire configuration datastore (e.g., from `running` to `startup`), not for making incremental edits to specific configuration elements like a hostname.

D<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> <edit-config> <target> <running/> </target> <config> <native xmlns="urn:ios"> <hostname>CSSTORM-TESTDEVICE</hostname> </native> </config> </edit-config> </rpc>Correct

The `<edit-config>` operation is the standard NETCONF RPC used to modify configuration data in a target configuration datastore, such as the `running` configuration. By embedding the `<hostname>` element within the `<config>` tag, the engineer specifies the desired change to the device's name.

Concept tested: NETCONF edit-config operation

Source: https://www.rfc-editor.org/rfc/rfc6241#section-7.2

Topics

#NETCONF#Network Automation#Device Configuration#API Interaction

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice