
CiscoCertified Network Associate Automation (CCNA Automation)
Domain 1Objective 2
2. Describe Parsing of Common Data Format (XML, JSON, and YAML) to Python Data Structures 200-901 Practice Questions (Page 4)
Part of the 1.0 Software Development and Design domain, which accounts for 15% of the 200-901 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~8–12 in this domain), expect 1–2 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)
23questions here
5free pages
4concepts
15%of the exam
Questions 16–20
- 16
A Python script reads a JSON file that contains a top-level object with a key 'vlans' whose value is an array of VLAN objects. Each VLAN object has 'id' and 'name'. The script must create a dictionary mapping VLAN ID to VLAN name. Which code snippet correctly builds this mapping?
Select an answer first - 17
A network device exports its configuration as an XML document. A Python script must extract the value of the 'name' attribute from every 'interface' element. Which approach using xml.etree.ElementTree is appropriate?
Select an answer first - 18
A network automation script receives a REST API response from a controller. The response body is a JSON string with nested objects and arrays. The script must convert this string into a Python dictionary so that the script can access the value of a nested key. Which Python code snippet correctly performs this conversion?
Select an answer first - 19
A Python script uses yaml.safe_load() to read a configuration file. The YAML contains a key 'mtu' with value 1500. What Python type will the value 1500 be?
Select an answer first - 20
A Python script must parse a configuration file that may be either JSON or YAML. The script should automatically detect the format and parse accordingly. Which approach is most robust?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Cisco. “200-901” is a trademark of its owner, used for identification only.