Exams > Cisco > 350-401: Implementing Cisco Enterprise Network Core Technologies (ENCOR)
350-401: Implementing Cisco Enterprise Network Core Technologies (ENCOR)
Page 26 out of 62 pages Questions 251-260 out of 614 questions
Question#251

Which data is properly formatted with JSON?
A.

B.

C.

D.

Discover Answer Hide Answer

B

Question#252

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'])
Discover Answer Hide Answer

C

Question#253

Which exhibit displays a valid JSON file?
A.

B.

C.

D.

Discover Answer Hide Answer

D

Question#254

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ג€]}
Discover Answer Hide Answer

B

Question#255

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'])}
Discover Answer Hide Answer

C

Question#256

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
Discover Answer Hide Answer

A
Reference:
https://auth0.com/docs/tokens/references/jwt-structure

Question#257

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.
Discover Answer Hide Answer

C
Reference:
https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/application-policy-infrastructure-controller-enterprise-module/1-2-x/config-guide/ b_apic-em_config_guide_v_1-2-x/b_apic-em_config_guide_v_1-2-x_chapter_01001.html

Question#258

Which two operations are valid for RESTCONF? (Choose two.)

  • A. PULL
  • B. PUSH
  • C. PATCH
  • D. REMOVE
  • E. ADD
  • F. HEAD
Discover Answer Hide Answer

CF
Reference:
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/b_166_programmability_cg_chapter_01011.html

Question#259


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.
Discover Answer Hide Answer

C

Question#260

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
Discover Answer Hide Answer

C

chevron rightPrevious Nextchevron right