Cisco 200-901 Practice Test - Questions Answers, Page 4
List of questions
Related questions
Refer to the exhibit.
The JSON data in the exhibit has been parsed and stored into a variable “data”. What returns the value “172.16.0.11”?
data[‘items’][‘host’][‘value’]
data[‘items’][1][‘host’][‘value’]
data[‘items’][0][‘host’][‘value’]
data[‘items’][‘host’][1]
Refer to the exhibit.
What does the Python function do?
It returns HTTP Basic Authentication.
It returns DNAC user and password.
It reads a token from a local JSON file and posts the token to the DNAC URL.
It returns an authorization token.
Package updates from a local server fail to download. However, the same updates work when a much slower external repository is used. Why are local updates failing?
The server is running out of disk space.
The Internet connection is too slow.
The Internet is down at the moment, which causes the local server to not be able to respond.
The update utility is trying to use a proxy to access the internal resource.
Which status code is used by a REST API to indicate that the submitted payload is incorrect?
400
403
405
429
An application calls a REST API and expects a result set of more than 550 records, but each time the call is made, only 25 are returned. Which feature limits the amount of data that is returned by the API?
pagination
payload limit
service timeouts
rate limiting
A developer is writing an application that uses a REST API and the application requires a valid response from the API. Which element of the response is used in the conditional check?
body
headers
link
URL
status code
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])
{‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}
[‘kiwi’, ‘grape’]
lettuce
kiwi
A 401 HTTP response code is returned when calling a REST API. What is the error state identified by this response code?
The server cannot process the request as it has detected an issue in the request syntax or body.
The request has not been accepted because it requires authentication.
The sever accepted the request but the client is not authorized for this content.
The server cannot find the requested resource because the path specified is incorrect.
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?
Option A
Option B
Option C
Option D
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?
API documentation
Code Exchange
Learning Labs
Sandbox
Question