200-901 Practice Test

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?

  1. map
  2. list
  3. json
  4. dict

Question 12

When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?

  1. JSON
  2. YAML
  3. XML
  4. 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.)

  1. The syntax of JSON contains tags, elements, and attributes.
  2. XML objects are collections of key-value pairs.
  3. JSON objects are collections of key-value pairs.
  4. JSON arrays are an unordered set of key-value pairs.
  5. The syntax of XML contains tags, elements, and attributes.