Cisco® 200-901 Exam (page: 11)
Cisco® DevNet Associate (DEVASC)
Updated on: 01-Sep-2025

Viewing Page 11 of 106

Refer to the exhibit.


A REST API returns this JSON output for a GET HTTP request, which has been assigned to a variable called “vegetables”. Using Python, which output is the result of this command?

print(filter(lambda 1: 1[‘type’] == ‘fruit’, vegetables) [0][‘items’][0][‘items’] [0])

  1. {‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}
  2. [‘kiwi’, ‘grape’]
  3. lettuce
  4. kiwi

Answer(s): D



DRAG DROP (Drag and Drop is not supported)
Drag and drop the Python code from the left onto the correct step on the right to call a REST API.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



A 401 HTTP response code is returned when calling a REST API. What is the error state identified by this response code?

  1. The server cannot process the request as it has detected an issue in the request syntax or body.
  2. The request has not been accepted because it requires authentication.
  3. The sever accepted the request but the client is not authorized for this content.
  4. The server cannot find the requested resource because the path specified is incorrect.

Answer(s): B


Reference:

https://blog.restcase.com/rest-api-error-codes-101/#:~:text=A%20401%20error%20response%20indicates,credentials%20or%20none%20at%20all.



A developer is creating a script to interact with a REST API service which requires basic authentication. The credentials are "devnet:391665405" and the Base64 encoding of the credentials is "GV2bmV0dXNlcjpDaXNj=". Which payload and header combination must be used for authentication?





Answer(s): B



A developer needs a list of clients connected to a specific device in a Meraki network. After making a REST API call, the developer receives an unfamiliar response code. Which Cisco DevNet resource should be used to identify the meaning of the response code?

  1. API documentation
  2. Code Exchange
  3. Learning Labs
  4. Sandbox

Answer(s): A



Viewing Page 11 of 106



Share your comments for Cisco® 200-901 exam with other users:

Edrick GOP 10/24/2023 6:00:00 AM

it was a good experience and i got 90% in the 200-901 exam.
Anonymous