200-901 Practice Test practice questions, page 3 of 26, with answer review and explanations.
Question 11
Refer to the exhibit. Which Python data structure does my_json contain?
map
list
json
dict
Question 12
When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?
JSON
YAML
XML
x-form-encoding
Question 13
Refer to the exhibit. Which JSON is equivalent to the XML-encoded data? A. B. C. D.
Question 14
FILL BLANK - Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user `devnetuser`. import requests import json controller = 'devnetapi.cisco.com/sandbox/apic_em' url = `https://` + controller + `api/va/ticket` payload = {'username': '_________________', 'password': '370940885'} header = {'Content-type': 'application.json'} response = _______________________.post(url, data=json.dumps(payload), \ headers= ______________________, verify=False) r_json = response.json() print(r_json) ticket = r_json[`response`][`serviceTicket`] print(ticket)
Question 15
Which two statements about JSON and XML are true? (Choose two.)
The syntax of JSON contains tags, elements, and attributes.
XML objects are collections of key-value pairs.
JSON objects are collections of key-value pairs.
JSON arrays are an unordered set of key-value pairs.
The syntax of XML contains tags, elements, and attributes.