ExamGecko
Home Home / Cisco / 200-901

Cisco 200-901 Practice Test - Questions Answers, Page 4

Question list
Search
Search

List of questions

Search

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”?

A.

data[‘items’][‘host’][‘value’]

A.

data[‘items’][‘host’][‘value’]

Answers
B.

data[‘items’][1][‘host’][‘value’]

B.

data[‘items’][1][‘host’][‘value’]

Answers
C.

data[‘items’][0][‘host’][‘value’]

C.

data[‘items’][0][‘host’][‘value’]

Answers
D.

data[‘items’][‘host’][1]

D.

data[‘items’][‘host’][1]

Answers
Suggested answer: C

Refer to the exhibit.

What does the Python function do?

A.

It returns HTTP Basic Authentication.

A.

It returns HTTP Basic Authentication.

Answers
B.

It returns DNAC user and password.

B.

It returns DNAC user and password.

Answers
C.

It reads a token from a local JSON file and posts the token to the DNAC URL.

C.

It reads a token from a local JSON file and posts the token to the DNAC URL.

Answers
D.

It returns an authorization token.

D.

It returns an authorization token.

Answers
Suggested answer: A

Explanation:


Reference: https://community.cisco.com/t5/cisco-digital-network/how-can-i-make-this-script-to-run/td-p/3882782

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?

A.

The server is running out of disk space.

A.

The server is running out of disk space.

Answers
B.

The Internet connection is too slow.

B.

The Internet connection is too slow.

Answers
C.

The Internet is down at the moment, which causes the local server to not be able to respond.

C.

The Internet is down at the moment, which causes the local server to not be able to respond.

Answers
D.

The update utility is trying to use a proxy to access the internal resource.

D.

The update utility is trying to use a proxy to access the internal resource.

Answers
Suggested answer: D

Explanation:

Topic 2, Understanding and Using APIs

Which status code is used by a REST API to indicate that the submitted payload is incorrect?

A.

400

A.

400

Answers
B.

403

B.

403

Answers
C.

405

C.

405

Answers
D.

429

D.

429

Answers
Suggested answer: A

Explanation:


Reference: https://community.cisco.com/t5/application-centric/apic-rest-api-produces-inconsistent-response/td-p/2758230

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?

A.

pagination

A.

pagination

Answers
B.

payload limit

B.

payload limit

Answers
C.

service timeouts

C.

service timeouts

Answers
D.

rate limiting

D.

rate limiting

Answers
Suggested answer: A

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?

A.

body

A.

body

Answers
B.

headers

B.

headers

Answers
C.

link

C.

link

Answers
D.

URL

D.

URL

Answers
E.

status code

E.

status code

Answers
Suggested answer: E

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])

A.

{‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}

A.

{‘color’: ‘green’, ‘items’: [‘kiwi’, ‘grape’]}

Answers
B.

[‘kiwi’, ‘grape’]

B.

[‘kiwi’, ‘grape’]

Answers
C.

lettuce

C.

lettuce

Answers
D.

kiwi

D.

kiwi

Answers
Suggested answer: D

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

A.

The server cannot process the request as it has detected an issue in the request syntax or body.

A.

The server cannot process the request as it has detected an issue in the request syntax or body.

Answers
B.

The request has not been accepted because it requires authentication.

B.

The request has not been accepted because it requires authentication.

Answers
C.

The sever accepted the request but the client is not authorized for this content.

C.

The sever accepted the request but the client is not authorized for this content.

Answers
D.

The server cannot find the requested resource because the path specified is incorrect.

D.

The server cannot find the requested resource because the path specified is incorrect.

Answers
Suggested answer: B

Explanation:


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?

A.

Option A

A.

Option A

Answers
B.

Option B

B.

Option B

Answers
C.

Option C

C.

Option C

Answers
D.

Option D

D.

Option D

Answers
Suggested answer: 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?

A.

API documentation

A.

API documentation

Answers
B.

Code Exchange

B.

Code Exchange

Answers
C.

Learning Labs

C.

Learning Labs

Answers
D.

Sandbox

D.

Sandbox

Answers
Suggested answer: A
Total 471 questions
Go to page: of 48