1|Page
CISCO DEVNET Associate|
Comprehensive Q&A For Certification
Success 2026
What is nornir? - correct-answer-An extendable, multithreaded framework with
inventory management to work with large numbers of network devices
What is pyats? - correct-answer-pyats is an incredible framework for constructing
automated testing for infrastructure as code.
When opening a file with open('filename.txt', 'a') - what does 'a' stand for? -
correct-answer-Open for writing, appending to the end of the file if it exists
,2|Page
How is JSON made up? - correct-answer-It is made up of key/value pairs, with {}
and [] There is no comma at the end of a block
What command imports native JSON and convert it to a Python dictionary (from
JSON module)? - correct-answer-load()
What command imports JSON data from a string for parsing and manipulating
within your program (from JSON module)? - correct-answer-loads()
What command writes JSON data from Python objects to a file (from JSON
module)? - correct-answer-dump()
What command takes JSON dictionary data and convert it into a serialized string
for parsing and manipulating within Python. (from JSON module)? - correct-
answer-dumps()
,3|Page
How is XML made up? - correct-answer-"XML has a tree structure, with the root
element being at the very top, parent/child relationship between elements
Elements have a start tag (<>)and a closing tag (</>)."
Using the XMLTODICT module, how do you convert the data? - correct-answer-
".parse
with open(""xml_sample.xml"") as data:
xml_example = data.read()
xml_dict = xmltodict.parse(xml_example)"
How do you convert back to XML? - correct-answer-"with unparse (and use
pretty=True to make easier to read).
>>> print(xmltodict.unparse(xml_dict, pretty=True))
<?xml version=""1.0"" encoding=""utf-8""?>"
, 4|Page
How is YAML made up? - correct-answer-uses Python-like indentation to
differentiate blocks of information, with JSON syntax (but features like comments
which aren't available in JSON). Related data is at the same indent
Which module would you import for YAML? - correct-answer-PyYaml
How do you convert from YAML to Python and back? - correct-answer-yaml.load
to convert from YAML objects into Python and yaml.dump to convert back to
YAML.
What safety feature exists when you convert YAML to Python? - correct-answer-
"yaml.load Requires that you add an argument to tell it which loader you want to
use. This is a security precaution.
with open(""yaml_sample.yaml"") as data:
yaml_sample = data.read()
CISCO DEVNET Associate|
Comprehensive Q&A For Certification
Success 2026
What is nornir? - correct-answer-An extendable, multithreaded framework with
inventory management to work with large numbers of network devices
What is pyats? - correct-answer-pyats is an incredible framework for constructing
automated testing for infrastructure as code.
When opening a file with open('filename.txt', 'a') - what does 'a' stand for? -
correct-answer-Open for writing, appending to the end of the file if it exists
,2|Page
How is JSON made up? - correct-answer-It is made up of key/value pairs, with {}
and [] There is no comma at the end of a block
What command imports native JSON and convert it to a Python dictionary (from
JSON module)? - correct-answer-load()
What command imports JSON data from a string for parsing and manipulating
within your program (from JSON module)? - correct-answer-loads()
What command writes JSON data from Python objects to a file (from JSON
module)? - correct-answer-dump()
What command takes JSON dictionary data and convert it into a serialized string
for parsing and manipulating within Python. (from JSON module)? - correct-
answer-dumps()
,3|Page
How is XML made up? - correct-answer-"XML has a tree structure, with the root
element being at the very top, parent/child relationship between elements
Elements have a start tag (<>)and a closing tag (</>)."
Using the XMLTODICT module, how do you convert the data? - correct-answer-
".parse
with open(""xml_sample.xml"") as data:
xml_example = data.read()
xml_dict = xmltodict.parse(xml_example)"
How do you convert back to XML? - correct-answer-"with unparse (and use
pretty=True to make easier to read).
>>> print(xmltodict.unparse(xml_dict, pretty=True))
<?xml version=""1.0"" encoding=""utf-8""?>"
, 4|Page
How is YAML made up? - correct-answer-uses Python-like indentation to
differentiate blocks of information, with JSON syntax (but features like comments
which aren't available in JSON). Related data is at the same indent
Which module would you import for YAML? - correct-answer-PyYaml
How do you convert from YAML to Python and back? - correct-answer-yaml.load
to convert from YAML objects into Python and yaml.dump to convert back to
YAML.
What safety feature exists when you convert YAML to Python? - correct-answer-
"yaml.load Requires that you add an argument to tell it which loader you want to
use. This is a security precaution.
with open(""yaml_sample.yaml"") as data:
yaml_sample = data.read()