Question 81
200-901 Practice Test
200-901 Practice Test practice questions, page 17 of 26, with answer review and explanations.
Question 82
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.
Question 83
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'])
Question 84
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. B. C. D.
Question 85
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ג€}