Cisco 200-901 - DevNet Associate (DEVASC) Exam
Page: 3 / 127
Total 631 questions
Question #11 (Topic: Single Topic)
Refer to the exhibit.

Which Python data structure does my_json contain?

Which Python data structure does my_json contain?
A. map
B. list
C. json
D. dict
Answer: D
Question #12 (Topic: Single Topic)
When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?
A. JSON
B. YAML
C. XML
D. x-form-encoding
Answer: C
Question #13 (Topic: Single Topic)
Refer to the exhibit.

Which JSON is equivalent to the XML-encoded data?
A.

B.

C.

D.


Which JSON is equivalent to the XML-encoded data?
A.

B.

C.

D.

Answer: B
Question #14 (Topic: Single Topic)
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)
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)
Answer:
Question #15 (Topic: Single Topic)
Which two statements about JSON and XML are true? (Choose two.)
A. The syntax of JSON contains tags, elements, and attributes.
B. XML objects are collections of key-value pairs.
C. JSON objects are collections of key-value pairs.
D. JSON arrays are an unordered set of key-value pairs.
E. The syntax of XML contains tags, elements, and attributes.
Answer: CE