Question 521 · 530 in bank
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?
Show answer
Answer: D
Developing Applications and Automating Workflows using Cisco Platforms (DEVASC)530 questions across 53 pages are complete and free, with no account or card.
530 questions in this bank
Free access · progress saved on this device
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?
Answer: D
Which REST architectural constraint indicates that no client context should be stored on the server between requests?
Answer: B
Reference: https://developer.cisco.com/docs/nx-os/#!representational-state-transfer-rest
Which HTTP code group is issued when a request is received successfully, understood, and processed?
Answer: A
A developer creates a web application that receives a username and password and uses them to sync the credentials to other services through HTTPS. API keys to services are part of the configuration files of the application, but the credentials to the database that stores the synchronization logs are obtained through an external vault service. What is the security issue in this scenario?
Answer: C
The answer must be C. The scenario specifically mentions that the communication is done over HTTPS, which provides encryption during transit. Therefore, it is not the primary security issue in this scenario.
Source: Adapted from community discussion — adxlp

Refer to the exhibit. An engineer writes a Python script that uses two different API calls to query Cisco DNA Center for the number of interfaces on a device. The engineer notices that the two API calls produce different results. Why are fewer interfaces returned for the same device when the 'get_all_interfaces' API call is used?
Answer: C
Pagination default results are 25 per page. List 1 pulls all the interfaces then filters through if statement. List2 filters on first pull, so it can get 25 devices in the list.
Source: Adapted from community discussion — ExamNinja1
DRAG DROP - Drag and drop the code snippets from the bottom into the Python script to write API output to a csv file. Not all options are used. Select and Place:

This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Answer: See figure below

DRAG DROP - Drag and drop the code snippets from the bottom to the blanks in the code to test the API response through the Python unittest library. Not all options are used. Select and Place:

This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Answer: See figure below
Best matching are: status_code 200 content none "status_code = response.status_code" wouldn't work though, since "response" is not defined. It' named "resp" in the line before. Also "self.assertEqual(resp.content, 'application/json')" will always fail, since the response content-type is part of the header. The correct way would be: self.assertEqual(resp.headers["content-type"], 'application/json')
Source: Adapted from community discussion — herrmann69

DRAG DROP -
Refer to the exhibit. A developer is creating a Python script to obtain a list of HTTP servers on a network named office_east by using the Cisco Meraki API. The request has these requirements: * Must time out if the response is not received within 2 seconds. * Must utilize client certificates and SSL certificate verification. * Must utilize basic authentication that uses a username of admin and a password of cisco. * Must save the response to an object named response. Drag and drop the code snippets from the bottom onto the blanks in the code to meet the requirements. Not all options are used. Select and Place:

This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Answer: See figure below
Reference: https://community.cisco.com/t5/networking-blogs/authenticating-rest-api-calls-to-dnac-getting-started/ba-p/3658058

DRAG DROP - Drag and drop the code snippets from the bottom to the blanks in the code to complete the HTTP response. Not all options are used. Select and Place:

This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Answer: See figure below
gzip. A format using the Lempel-Ziv coding (LZ77), with a 32-bit CRC. This is the original format of the UNIX gzip program. The HTTP/1.1 standard also recommends that the servers supporting this content-encoding should recognize x-gzip as an alias, for compatibility purposes. So , Content-Encooding = gzip and Conent-Type = text
Source: Adapted from community discussion — nfvexpert


Refer to the exhibit. A collaboration engineer has developed a script to automate the gathering of information by providing the email address of the individual. When the engineer tests the script, a 401 error is received. Which command fixes the script?
Answer: A
Webex uses token, the key is using the word "Bearer" followed to the webex token to identify the correct answer. Also Authorization is the correct header.
Source: Adapted from community discussion — NetMex
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
200-901 practice, question 521. 530 questions available.
Version 1.0.0. How we source questions