Question 311
Which data is properly formatted with JSON?
A.
B.
C.
D.
Question 312
Based on the output below, which Python code shows the value of the "upTime" key?
A. json_data = response.json() print(json_data['response'][0]['upTime'])
B. json_data = response.json() print(json_data[response][0][upTime])
C. json_data = json.loads(response.text) print(json_data['response']['family']['upTime'])
D. json_data = response.json() print(json_data['response'][family]['upTime'])
Question 313
Which exhibit displays a valid JSON file?
A.
B.
C.
D.
Question 314
Refer to the exhibit.
What is the JSON syntax that is formed from the data?
A. {Name: Bob Johnson, Age: 75, Alive: true, Favorite Foods: [Cereal, Mustard, Onions]}
B. {"Name": "Bob Johnson", "Age": 75, "Alive": true, "Favorite Foods": ["Cereal", "Mustard", "Onions"]}
C. {'Name': 'Bob Johnson', 'Age': 75, 'Alive': True, 'Favorite Foods': 'Cereal', 'Mustard', 'Onions'}
D. {"Name": "Bob Johnson", "Age": Seventyfive, "Alive": true, "Favorite Foods": ["Cereal", "Mustard", "Onions"]}
Question 315
Which JSON syntax is valid?
A. {"switch": "name": "dist1", "interfaces": ["gig1", "gig2", "gig3"]}
B. {/"switch/": {/"name/": "dist1", /"interfaces/": ["gig1", "gig2", "gig3"]}}
C. {"switch": {"name": "dist1", "interfaces": ["gig1", "gig2", "gig3"]}}
D. {'switch': ('name': 'dist1', 'interfaces': ['gig1', 'gig2', 'gig3'])}
Question 316
What is the structure of a JSON web token?
A. three parts separated by dots: header, payload, and signature
B. three parts separated by dots: version, header, and signature
C. header and payload
D. payload and signature
Question 317
A response code of 404 is received while using the REST API on Cisco DNA Center to POST to this URI:
/dna/intent/api/v1/template-programmer/project
What does the code mean?
A. The POST/PUT request was fulfilled and a new resource was created. Information about the resource is in the response body.
B. The request was accepted for processing, but the processing was not completed.
C. The client made a request for a resource that does not exist.
D. The server has not implemented the functionality that is needed to fulfill the request.
Question 318
Which two operations are valid for RESTCONF? (Choose two.)
A. PULL
B. PUSH
C. PATCH
D. REMOVE
E. ADD
F. HEAD
Question 319
Refer to the exhibit. An engineer is using XML in an application to send information to a RESTCONF-enabled device. After sending the request, the engineer gets this response message and an HTTP response code of 400. What do these responses tell the engineer?
A. The Accept header sent was application/xml.
B. POST was used instead of PUT to update.
C. The Content-Type header sent was application/xml.
D. A JSON body was used.
Question 320
What is used to validate the authenticity of client and is sent in HTTP requests as a JSON object?
A. SSH
B. HTTPS
C. JWT
D. TLS