ExamGecko
Home Home / Cisco / 200-901

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

Question list
Search
Search

List of questions

Search

Which two use cases are supported by Meraki APIs? (Choose two.)

A.

Build location-aware apps from Wi-Fi and LoRaWAN devices.

A.

Build location-aware apps from Wi-Fi and LoRaWAN devices.

Answers
B.

Build a custom Captive Portal for Mobile Apps.

B.

Build a custom Captive Portal for Mobile Apps.

Answers
C.

Configure network devices via the Dashboard API.

C.

Configure network devices via the Dashboard API.

Answers
D.

Deploy applications onto the devices.

D.

Deploy applications onto the devices.

Answers
E.

Retrieve live streams from a Meraki Camera.

E.

Retrieve live streams from a Meraki Camera.

Answers
Suggested answer: B, C

Which API is used to obtain data about voicemail ports?

A.

Webex Teams

A.

Webex Teams

Answers
B.

Cisco Unified Communications Manager

B.

Cisco Unified Communications Manager

Answers
C.

Finesse Gadgets

C.

Finesse Gadgets

Answers
D.

Webex Devices

D.

Webex Devices

Answers
Suggested answer: A

What is a difference between a synchronous API and an asynchronous API?

A.

Synchronous API calls require an authentication header to be sent while asynchronous calls do not require authentication.

A.

Synchronous API calls require an authentication header to be sent while asynchronous calls do not require authentication.

Answers
B.

Synchronous API calls are returned immediately while asynchronous calls do not guarantee an immediate response.

B.

Synchronous API calls are returned immediately while asynchronous calls do not guarantee an immediate response.

Answers
C.

An asynchronous API can make offline calls while synchronous APIs do not have this capability.

C.

An asynchronous API can make offline calls while synchronous APIs do not have this capability.

Answers
D.

An asynchronous API can make a larger number of calls in a specified time period than a synchronous API.

D.

An asynchronous API can make a larger number of calls in a specified time period than a synchronous API.

Answers
Suggested answer: B

Explanation:


Reference: https://stackoverflow.com/questions/36213948/what-is-the-difference-between-asynchronous-calls-and-callbacks

Refer to the exhibit. A network engineer must manage the network devices. The engineer prepares a Python script to authenticate to the Cisco DNA Center API and request a device list. The device request, fails and returns error code 401.

Which action solves the problem?

A.

Update the credentials that are already supplied and retry the request.

A.

Update the credentials that are already supplied and retry the request.

Answers
B.

Send the request to another network in case there are reachability issues.

B.

Send the request to another network in case there are reachability issues.

Answers
C.

Send the Authentication header in the request with a valid configuration.

C.

Send the Authentication header in the request with a valid configuration.

Answers
D.

Update the API URL, which matched the API endpoint for device list.

D.

Update the API URL, which matched the API endpoint for device list.

Answers
Suggested answer: A

Refer to the exhibit. Which command needs to be placed on the box where the code is missing to output the value of page_id in the Python 3.7 script?

A.

print(items.get(‘items’)[0].get(‘page_id’))

A.

print(items.get(‘items’)[0].get(‘page_id’))

Answers
B.

print(items.get(‘items’).get(‘page_id’))

B.

print(items.get(‘items’).get(‘page_id’))

Answers
C.

print(items[‘items’][‘page_id’].keys())

C.

print(items[‘items’][‘page_id’].keys())

Answers
D.

print(items[‘items’][‘page_id’])

D.

print(items[‘items’][‘page_id’])

Answers
Suggested answer: B

Refer to the exhibit.

The documentation outlines how to use credentials for the AMP API. Which script successfully performs an API call using basic 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

Refer to the exhibit. A developer creates a Python script that queries Cisco Webex. When the script is executed, a 401 code is returned. After troubleshooting, the developer discovers that the service is missing privileges. Which change to the header in line 4 of the script results in the code 200?

A.

header = {“Authentication”: “Bearer YOUR_TOKEN”}

A.

header = {“Authentication”: “Bearer YOUR_TOKEN”}

Answers
B.

header = {“Authentication Bearer” : “YOUR_TOKEN”

B.

header = {“Authentication Bearer” : “YOUR_TOKEN”

Answers
C.

header = {“Authorization Bearer” : “YOUR_TOKEN”}

C.

header = {“Authorization Bearer” : “YOUR_TOKEN”}

Answers
D.

header = {“Authorization”: “Bearer YOUR_TOKEN”}

D.

header = {“Authorization”: “Bearer YOUR_TOKEN”}

Answers
Suggested answer: D

In Python, which expression checks whether the script returns a success status code when the Requests library is used?

A.

response.status_code == requests.codes.ok

A.

response.status_code == requests.codes.ok

Answers
B.

response.code == requests.codes.ok

B.

response.code == requests.codes.ok

Answers
C.

response.status_code == requests.ok

C.

response.status_code == requests.ok

Answers
D.

response.status_code != requests.codes.ok

D.

response.status_code != requests.codes.ok

Answers
Suggested answer: A

Explanation:


Reference: https://realpython.com/python-requests/

Refer to the exhibit. The script returns an output of 401. To use the supplied URL, an HTTP GET request must be sent with an Authorization header. The header value is a base64 encoded concatenation of the username and password.

Which action must be taken to return an output of 200?

A.

Change the verify=False setting in the request to verify=True to enable HTTP Basic authentication.

A.

Change the verify=False setting in the request to verify=True to enable HTTP Basic authentication.

Answers
B.

Verify that the username and password values imported from the configuration file are still valid.

B.

Verify that the username and password values imported from the configuration file are still valid.

Answers
C.

Insert an Authorization header with the values username:password from the supplied configuration file.

C.

Insert an Authorization header with the values username:password from the supplied configuration file.

Answers
D.

Modify the method from LOGIN to GET and supply the username:password value as JSON payload.

D.

Modify the method from LOGIN to GET and supply the username:password value as JSON payload.

Answers
Suggested answer: B

Refer to the exhibit. A Python code has been written to query a device. The executed code results in the error shown. Which action resolves the problem?

A.

import json

A.

import json

Answers
B.

requests(“GET”, base_url + request_url, cookies=cookies)

B.

requests(“GET”, base_url + request_url, cookies=cookies)

Answers
C.

pip install requests

C.

pip install requests

Answers
D.

import requests

D.

import requests

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