Free 200-901 Exam Braindumps (page: 19)

Page 18 of 132

FILL BLANK
Fill in the blanks to complete the statement.

Given a username of “devnet” and a password of “cisco123”, applications must create a base64 encoding of the string “________________” when sending HTTP requests to an API that uses _______________ authentication.

  1. See Explanation section for answer.

Answer(s): A

Explanation:

YWRtaW46Y2lzY28xMjM
Basic


Reference:

https://www.cisco.com/c/en/us/td/docs/net_mgmt/elastic_services_controller/4-1/install/guide/Cisco-Elastic-Services-Controller-Install-Upgrade-Guide-4-1/Cisco-Elastic-Services-Controller-Install-Upgrade-Guide- 3-0_chapter_01011.html



Refer to the exhibit.


An administrator attempts to perform a GET using the Cisco IOS XE RESTCONF API to return the hostname of a device. The sequence diagram illustrates the HTTP messages observed. Which change to the API request resolves the issue?

  1. Remove the –H ‘Accept: application/yang-data+json’ HTTP header because it is not required.
  2. Add –‘u cisco:cisco’ in the end of the cURL command
  3. Change the request method from –X “GET” to –X “POST”
  4. Add Content-Type HTTP header with ‘application/yang-data+json’ using –H ‘Content-Type: application/ yang-data+json’

Answer(s): B



What are two benefits of managing network configuration via APIs? (Choose two.)

  1. more security due to locking out manual device configuration
  2. configuration on devices becomes less complex
  3. eliminates the need of legacy management protocols like SNMP
  4. reduction in network changes performed manually
  5. increased scalability and consistency of network changes

Answer(s): D,E



FILL BLANK
Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth.

curl –X ____________ -H “ __________: application/json” \
-H “ _______: Bearer AbCdEf123456” https://localhost/api/myresource

  1. See Explanation section for answer.

Answer(s): A

Explanation:

GET
Accept
Authorization


Reference:

https://webcache.googleusercontent.com/search?q=cache:Se6d2trvMsEJ:https://blogs.cisco.com/developer/security-api-best-practices+&cd=4&hl=en&ct=clnk&gl=pk&client=firefox-b-d






Post your Comments and Discuss Cisco® 200-901 exam with other Community members:

200-901 Discussions & Posts