nerdexam
CiscoCisco

300-435 · Question #93

300-435 Question #93: Real Exam Question with Answer & Explanation

Sign in or unlock 300-435 to reveal the answer and full explanation for question #93. The question stem and answer options stay visible for context.

Device-Level Network Automation

Question

Given the following `rpc-reply` data structure, which Python expression correctly parses this data into `py_dict`? <rpc-reply message-id="urn:uuid:5842f8f1-f911-483c-839d-2bda5cf486cb" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <data> <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> <interface> <name>GigabitEthernet1/0/0</name> <description>DO NOT TOUCH ME!</description> <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type> <enabled>false</enabled> <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> <address> <ip>10.18.26.40</ip> <netmask>255.255.255.0</netmask> </address> </ipv4> </interface> <interface> <name>GigabitEthernet1/0/1</name> <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"/> </interface> </interfaces> </data> </rpc-reply>

Options

  • Apy_dict = xmitodict.parse(example)
  • Bpy_dict = csv.read(example)
  • Cpy_dict = json.loads(example)
  • Dpy_dict = yaml.load(example)

Unlock 300-435 to see the answer

You've previewed enough free 300-435 questions. Unlock 300-435 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#XML parsing#Python libraries#NETCONF#Data formats
Full 300-435 PracticeBrowse All 300-435 Questions