Free 200-901 DEVASC Dump

Question #40

Into which type of Python data structure should common data formats be parsed?

  • A. sequence
  • B. set
  • C. dictionary
  • D. list

Correct Answer: C

Community vote distribution

C (67%)

D (33%)

Question #41

Several teams at a company are developing a new CRM solution to track customer interactions with a goal of improving customer satisfaction and driving higher revenue. The proposed solution contains these components:

* MySQL database that stores data about customers

* HTML5 and JavaScript UI that runs on Apache

* REST API written in Python

What are two advantages of applying the MVC design pattern to the development of the solution? (Choose two.)

  • A. to enable multiple views of the same data to be presented to different groups of users
  • B. to provide separation between the view and the model by ensuring that all logic is separated out into the controller
  • C. to ensure data consistency, which requires that changes to the view are also made to the model
  • D. to ensure that only one instance of the data model can be created
  • E. to provide only a single view of the data to ensure consistency

Correct Answer: BD

Community vote distribution

AB (100%)

Question #42

Refer to the exhibit. Which XML snippet has interface information that conforms to the YANG model?

A.

B.

C.

D.

Correct Answer: A

Question #43

What is a benefit of version control?

  • A. prevents two users from working on the same file
  • B. keeps track of all changes to the files
  • C. prevents the sharing of files
  • D. keeps the list of data types used in the files

Correct Answer: B

Community vote distribution

B (100%)

Question #44

Refer to the exhibit. What does the command marked (2) do when it is run?

  • A. It duplicates the ג€testג€ branch.
  • B. It deletes the ג€testג€ branch only if a new branch is created.
  • C. It deletes the ג€testג€ branch.
  • D. It does not delete the branch until it is merged.

Correct Answer: C

Community vote distribution

C (100%)

Question #45

What is a comparison of YAML and JSON?

  • A. YAML has a more consistent approach to representing data compared to JSON.
  • B. JSON does not support comments and YAML does.
  • C. YAML is a more verbose data structure compared to JSON.
  • D. JSON has more common usage in configuration management tools compared to YAML.

Correct Answer: B

Reference:

https://stackoverflow.com/questions/244777/can-comments-be-used-in-json

Community vote distribution

B (100%)

Question #46

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

  • A. 400
  • B. 403
  • C. 405
  • D. 429

Correct Answer: A

Reference:

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

Community vote distribution

A (100%)

Question #47

DRAG DROP –

Refer to the exhibits.

Drag and drop the code from the left onto the item numbers on the right to complete the Meraki Python script shown in the exhibit.

Select and Place:

Correct Answer: 

Question #48

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
  • B. payload limit
  • C. service timeouts
  • D. rate limiting

Correct Answer: A

Community vote distribution

A (100%)

Question #49

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
  • B. headers
  • C. link
  • D. URL
  • E. status code

Correct Answer: E

Community vote distribution

B (100%)

Question #50

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’]}
  • B. [‘kiwi’, ‘grape’]
  • C. lettuce
  • D. kiwi

Correct Answer: D

Community vote distribution

D (100%)

Question #51

DRAG DROP –

Drag and drop the Python code from the left onto the correct step on the right to call a REST API.

Select and Place:

Correct Answer: 

Question #52

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.
  • B. The request has not been accepted because it requires authentication.
  • C. The sever accepted the request but the client is not authorized for this content.
  • D. The server cannot find the requested resource because the path specified is incorrect.

Correct Answer: B

Reference:

https://blog.restcase.com/rest-api-error-codes-101/#:~:text=A%20401%20error%20response%20indicates,credentials%20or%20none%20at%20all

Community vote distribution

B (63%)

C (38%)

Question #53

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.

B.

C.

D.

Correct Answer: B

Question #54

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
  • B. Code Exchange
  • C. Learning Labs
  • D. Sandbox

Correct Answer: A

Community vote distribution

A (100%)

Question #55

A developer is trying to retrieve data over a REST API. The API server responds with an HTTP client error response code. After investigating the response, the developer realizes the response has a Retry-After header. What is the root cause of this error?

  • A. An appliance limited the rate of requests to the transport layer.
  • B. The REST service is unreachable at the time of the REST request.
  • C. Too many requests were sent to the REST service in a given amount of time.
  • D. An appliance limited the rate of requests to the application layer.

Correct Answer: C

Community vote distribution

C (100%)

Question #56

Refer to the exhibit.

A developer needs to upload a local file by using the REST API. The developer gathers information according to the documentation and sends the request by using the cURL command in the exhibit but gets an error code. Which action should be followed to get a valid response?

  • A. change content-type as JSON
  • B. add the authorization header with the access token
  • C. and a username-password combination to request command
  • D. change request method as GET

Correct Answer: B

Reference:

https://developer.webex.com/docs/api/basics

Community vote distribution

B (100%)

Question #57

DRAG DROP –

Refer to the exhibit.

Drag and drop the descriptors from the left onto the corresponding parts of the API request and response on the right.

Select and Place:

Correct Answer: 

Question #58

Which action resolves a 401 error in response to an HTTP GET that is issued to retrieve a configuration statement using RESTCONF on a CSR 1000V?

  • A. Change the HTTP method to PUT.
  • B. Check the MIME types in the HTTP headers.
  • C. Change the transport protocol to HTTPS.
  • D. Check the authentication credentials.

Correct Answer: D

Community vote distribution

D (100%)

Question #59

Refer to the exhibit.

An API call is constructed to retrieve the inventory in XML format by using the API. The response to the call is 401 Unauthorized. Which two headers must be added to the API call? (Choose two.)

  • A. Bearer-Token: dXNlcm5hbWU6cGFzc3dvcmQ=
  • B. Content-Type: application/xml
  • C. Authentication: Bearer dXNlcm5hbWU6cGFzc3dvcmQ=
  • D. Accept: application/xml
  • E. Authorization: Bearer dXNlcm5hbWU6cGFzc3dvcmQ=

Correct Answer: DE

Community vote distribution

DE (100%)

Question #60

Which HTTP response status code means `Forbidden`?

  • A. 500
  • B. 401
  • C. 403
  • D. 502

Correct Answer: C

Reference:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403

Community vote distribution

C (100%)

Question #61

Which HTTP response code should be returned when the request is completed, but there is no content to send for the request?

  • A. 100
  • B. 204
  • C. 302
  • D. 402

Correct Answer: B

Reference:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#successful_responses

Community vote distribution

B (100%)

Question #62

Refer to the exhibit. Which data is specified in the response header?

  • A. Content-Type
  • B. HTTP/1.1 200 OK
  • C. ג€typeג€: ג€switchג€
  • D. { ג€idג€: ג€a123456bcdeג€, HTTP/1.1 200 OK ג€statusג€: ג€onlineג€, ג€typeג€: ג€switchג€ }

Correct Answer: A

Community vote distribution

A (100%)

Question #63

What are two use cases where webhooks are effective? (Choose two.)

  • A. Filter out information from a response to an API call.
  • B. Close a session with a web server after a specific amount of time.
  • C. Inform a previously defined chat channel after a deployment fails.
  • D. Send an email to a customer of an online store after payment is complete.
  • E. Change the response format or content type of an API call.

Correct Answer: BD

Community vote distribution

CD (88%)

 

Question #64

In which two ways is an application characterized when interacting with a webhook? (Choose two.)

  • A. receiver
  • B. transaction monitor
  • C. codec
  • D. processor
  • E. listener

Correct Answer: AE

Community vote distribution

AE (100%)

Question #65

How does requesting a synchronous API operation differ from requesting an asynchronous API operation?

  • A. clients receive responses with a task ID for further processing
  • B. clients subscribe to a webhook for operation results
  • C. clients poll for the status of the execution of operations
  • D. clients can access the results immediately

Correct Answer: D

Community vote distribution

D (75%)

C (25%)

Question #66

DRAG DROP –

Drag and drop the HTTP status codes from the left onto the correct descriptions on the right.

Select and Place:

Correct Answer: 

Reference:

https://www.cisco.com/c/en/us/support/docs/security/web-security-appliance/118217-troubleshoot-wsa-00.html

Question #67

Which method should be used to safely store the API keys?

  • A. in an environment variable unique to the system database
  • B. encrypted in a configuration file that is separate from the code
  • C. plain text in the code as a constant
  • D. encrypted in the code in a function

Correct Answer: A

Community vote distribution

A (67%)

B (33%)

Question #68

FILL BLANK –

Fill in the blanks to complete the statement.

Given a username of `devnet` and a password of `cisco123`, applications must create a base64 encoding of the string `________________` when sending HTTP requests to an API that uses _______________ authentication.

Correct Answer: See explanation below.

YWRtaW46Y2lzY28xMjM –

Basic –

Reference:

https://www.cisco.com/c/en/us/td/docs/net_mgmt/elastic_services_controller/4-1/install/guide/Cisco-Elastic-Services-Controller-Install-Upgrade-Guide-

4-1/Cisco-Elastic-Services-Controller-Install-Upgrade-Guide-3-0_chapter_01011.html

Question #69

Refer to the exhibit.

An administrator attempts to perform a GET using the Cisco IOS XE RESTCONF API to return the hostname of a device. The sequence diagram illustrates the

HTTP messages observed. Which change to the API request resolves the issue?

  • A. Remove the ג€”H ‘Accept: application/yang-data+json’ HTTP header because it is not required.
  • B. Add ג€”‘u cisco:cisco’ in the end of the cURL command
  • C. Change the request method from ג€”X ג€GETג€ to ג€”X ג€POSTג€
  • D. Add Content-Type HTTP header with ‘application/yang-data+json’ using ג€”H ‘Content-Type: application/yang-data+json’

Correct Answer: B

Question #70

What are two benefits of managing network configuration via APIs? (Choose two.)

  • A. more security due to locking out manual device configuration
  • B. configuration on devices becomes less complex
  • C. eliminates the need of legacy management protocols like SNMP
  • D. reduction in network changes performed manually
  • E. increased scalability and consistency of network changes

Correct Answer: DE

Community vote distribution

DE (100%)

Question #71

FILL BLANK –

Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth. curl `”X ____________ -H ` __________: application/json` \

-H ` _______: Bearer AbCdEf123456` https://localhost/api/myresource

Correct Answer: See explanation below.

GET –

Accept –

Authorization –

Reference:

https://webcache.googleusercontent.com/search?q=cache:Se6d2trvMsEJ:https://blogs.cisco.com/developer/security-api-best-practices

+&cd=4&hl=en&ct=clnk&gl=pk&client=firefox-b-d

Question #72

Which Cisco DevNet resource allows access to products in a development lab to explore, learn, and build applications that use Cisco APIs?

  • A. DevNet Code Exchange
  • B. DevNet Sandbox
  • C. DevNet Communities
  • D. DevNet Automation Exchange

Correct Answer: B

Reference:

https://developer.cisco.com/site/sandbox/

Community vote distribution

B (100%)

Question #73

Refer to the exhibits.

A developer is troubleshooting an API with the given API documentation and cURL command. What is the cause of this problem?

  • A. The authorization header is missing or incomplete.
  • B. The request body is missing or incomplete.
  • C. The API token specified is expired.
  • D. The user is not allowed to post messages from their account.

Correct Answer: A

Community vote distribution

A (89%)

Question #74

Which two statements describe the traits of an asynchronous API call? (Choose two.)

  • A. Code execution blocks or waits for the call to an API to return.
  • B. A callback function typically is used to process the response from an API call.
  • C. A call to an API does not block the code, but rather it allows application processing to continue.
  • D. The end user can experience latency or performance lag while waiting for the API call to return.
  • E. The order in which API calls return can be guaranteed.

Correct Answer: BC

Reference:

https://medium.com/codebuddies/getting-to-know-asynchronous-javascript-callbacks-promises-and-async-await-17e0673281ee

Community vote distribution

BC (100%)

Question #75

Which mechanism is used to consume a RESTful API design when large amounts of data are returned?

  • A. data sets
  • B. scrolling
  • C. pagination
  • D. blobs

Correct Answer: C

Reference:

https://nordicapis.com/everything-you-need-to-know-about-api-pagination/

Community vote distribution

C (100%)

Question #76

Refer to the exhibit.

What caused the error in this API request?

  • A. The API resource does not support the POST operation.
  • B. The submitted JSON payload has a formatting issue.
  • C. The API resource does not support JSON format payloads.
  • D. The submitted JSON payload includes a field that is not supported by the API resource.

Correct Answer: B

Community vote distribution

B (100%)

Question #77

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

  • A. Build location-aware apps from Wi-Fi and LoRaWAN devices.
  • B. Build a custom Captive Portal for Mobile Apps.
  • C. Configure network devices via the Dashboard API.
  • D. Deploy applications onto the devices.
  • E. Retrieve live streams from a Meraki Camera.

Correct Answer: BC

Community vote distribution

CE (80%)

BC (20%)

Question #78

Which API is used to obtain data about voicemail ports?

  • A. Webex Teams
  • B. Cisco Unified Communications Manager
  • C. Finesse Gadgets
  • D. Webex Devices

Correct Answer: B

Community vote distribution

B (100%)

Question #79

DRAG DROP –

Refer to the exhibit. A developer needs to automatically retrieve all of the messages of a Webex room with the roomId of

`Y2lzY29zcGFyazovL3Vz397468502YjU5NjAtNTk0Zi0xMWVhLTk0Mj`. Using the Webex API documentation shown, drag and drop the code snippets from below onto the code to complete the Python script to list all of the messages in the room. Not all options are used.

Select and Place:

Correct Answer: 

Question #80

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.
  • B. Synchronous API calls are returned immediately while asynchronous calls do not guarantee an immediate response.
  • C. An asynchronous API can make offline calls while synchronous APIs do not have this capability.
  • D. An asynchronous API can make a larger number of calls in a specified time period than a synchronous API.

Correct Answer: B

Reference:

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

Community vote distribution

D (59%)

B (41%)

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

you are using free dumps!!!

Please help to click ads to support the website

DỊCH VỤ iT