Cisco 200-901 Practice Test - Questions Answers, Page 7
List of questions
Related questions
Which two use cases are supported by Meraki APIs? (Choose two.)
Build location-aware apps from Wi-Fi and LoRaWAN devices.
Build a custom Captive Portal for Mobile Apps.
Configure network devices via the Dashboard API.
Deploy applications onto the devices.
Retrieve live streams from a Meraki Camera.
Which API is used to obtain data about voicemail ports?
Webex Teams
Cisco Unified Communications Manager
Finesse Gadgets
Webex Devices
What is a difference between a synchronous API and an asynchronous API?
Synchronous API calls require an authentication header to be sent while asynchronous calls do not require authentication.
Synchronous API calls are returned immediately while asynchronous calls do not guarantee an immediate response.
An asynchronous API can make offline calls while synchronous APIs do not have this capability.
An asynchronous API can make a larger number of calls in a specified time period than a synchronous API.
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?
Update the credentials that are already supplied and retry the request.
Send the request to another network in case there are reachability issues.
Send the Authentication header in the request with a valid configuration.
Update the API URL, which matched the API endpoint for device list.
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?
print(items.get(‘items’)[0].get(‘page_id’))
print(items.get(‘items’).get(‘page_id’))
print(items[‘items’][‘page_id’].keys())
print(items[‘items’][‘page_id’])
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?
Option A
Option B
Option C
Option D
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?
header = {“Authentication”: “Bearer YOUR_TOKEN”}
header = {“Authentication Bearer” : “YOUR_TOKEN”
header = {“Authorization Bearer” : “YOUR_TOKEN”}
header = {“Authorization”: “Bearer YOUR_TOKEN”}
In Python, which expression checks whether the script returns a success status code when the Requests library is used?
response.status_code == requests.codes.ok
response.code == requests.codes.ok
response.status_code == requests.ok
response.status_code != requests.codes.ok
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?
Change the verify=False setting in the request to verify=True to enable HTTP Basic authentication.
Verify that the username and password values imported from the configuration file are still valid.
Insert an Authorization header with the values username:password from the supplied configuration file.
Modify the method from LOGIN to GET and supply the username:password value as JSON payload.
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?
import json
requests(“GET”, base_url + request_url, cookies=cookies)
pip install requests
import requests
Question