Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

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 2)

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 6–10

  1. 6expert · hard

    A Python script receives a JSON response from a network device. The response contains a field 'interfaces' that is sometimes a list and sometimes a single dictionary, depending on the device model. The script must handle both cases. Which code snippet correctly normalizes the data into a list?

    Select an answer first
  2. 7expert · medium

    A Python script must load a YAML configuration file that contains a mix of strings, integers, booleans, and nested lists. The script also needs to ensure that no arbitrary Python objects are instantiated during parsing for security reasons. Which parsing method is the most appropriate?

    Select an answer first
  3. 8application · medium

    A team maintains configuration files that are read by both humans and Python scripts. The files contain nested structures and occasional comments. The team wants to minimize syntax errors while keeping the files readable. Which format should they use?

    Select an answer first
  4. 9expert · hard

    A Python script must parse an XML file that uses namespaces. The script needs to extract all elements with the local name 'interface' regardless of the namespace prefix. Which approach using xml.etree.ElementTree is correct?

    Select an answer first
  5. 10expert · hard

    A Python script uses yaml.safe_load() to parse a YAML file. The file contains a key 'enabled' with value 'yes'. What Python value will 'enabled' have?

    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.