ExamGecko
Home Home / Cisco / 200-901

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

Question list
Search
Search

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

A.

in an environment variable unique to the system database

A.

in an environment variable unique to the system database

Answers
B.

encrypted in a configuration file that is separate from the code

B.

encrypted in a configuration file that is separate from the code

Answers
C.

plain text in the code as a constant

C.

plain text in the code as a constant

Answers
D.

encrypted in the code in a function

D.

encrypted in the code in a function

Answers
Suggested answer: A

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.

A.
A.
Answers
Suggested answer: A

Explanation:

Answer: A

Explanation:


YWRtaW46Y2lzY2 8xMjM 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

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.

A.

Remove the -H ‘Accept: application/yang-data+json' HTTP header because it is not required.

Answers
B.

Add -‘u cisco:cisco' in the end of the cURL command

B.

Add -‘u cisco:cisco' in the end of the cURL command

Answers
C.

Change the request method from -X “GET” to -X “POST”

C.

Change the request method from -X “GET” to -X “POST”

Answers
D.

Add Content-Type HTTP header with ‘application/yang-data+json’ using -H ‘Content-Type: application/yang-data+json’

D.

Add Content-Type HTTP header with ‘application/yang-data+json’ using -H ‘Content-Type: application/yang-data+json’

Answers
Suggested answer: B

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

A.

more security due to locking out manual device configuration

A.

more security due to locking out manual device configuration

Answers
B.

configuration on devices becomes less complex

B.

configuration on devices becomes less complex

Answers
C.

eliminates the need of legacy management protocols like SNMP

C.

eliminates the need of legacy management protocols like SNMP

Answers
D.

reduction in network changes performed manually

D.

reduction in network changes performed manually

Answers
E.

increased scalability and consistency of network changes

E.

increased scalability and consistency of network changes

Answers
Suggested answer: D, E

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

A.
A.
Answers
Suggested answer: A

Explanation:

Answer: A

Explanation:


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

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

A.

DevNet Code Exchange

Answers
B.

DevNet Sandbox

B.

DevNet Sandbox

Answers
C.

DevNet Communities

C.

DevNet Communities

Answers
D.

DevNet Automation Exchange

D.

DevNet Automation Exchange

Answers
Suggested answer: B

Explanation:


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

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.

A.

The authorization header is missing or incomplete.

Answers
B.

The request body is missing or incomplete.

B.

The request body is missing or incomplete.

Answers
C.

The API token specified is expired.

C.

The API token specified is expired.

Answers
D.

The user is not allowed to post messages from their account.

D.

The user is not allowed to post messages from their account.

Answers
Suggested answer: C

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.

A.

Code execution blocks or waits for the call to an API to return.

Answers
B.

A callback function typically is used to process the response from an API call.

B.

A callback function typically is used to process the response from an API call.

Answers
C.

A call to an API does not block the code, but rather it allows application processing to continue.

C.

A call to an API does not block the code, but rather it allows application processing to continue.

Answers
D.

The end user can experience latency or performance lag while waiting for the API call to return.

D.

The end user can experience latency or performance lag while waiting for the API call to return.

Answers
E.

The order in which API calls return can be guaranteed.

E.

The order in which API calls return can be guaranteed.

Answers
Suggested answer: B, C

Explanation:


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

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

A.

data sets

A.

data sets

Answers
B.

scrolling

B.

scrolling

Answers
C.

pagination

C.

pagination

Answers
D.

blobs

D.

blobs

Answers
Suggested answer: C

Explanation:


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

Refer to the exhibit.

What caused the error in this API request?

A.

The API resource does not support the POST operation.

A.

The API resource does not support the POST operation.

Answers
B.

The submitted JSON payload has a formatting issue.

B.

The submitted JSON payload has a formatting issue.

Answers
C.

The API resource does not support JSON format payloads.

C.

The API resource does not support JSON format payloads.

Answers
D.

The submitted JSON payload includes a field that is not supported by the API resource.

D.

The submitted JSON payload includes a field that is not supported by the API resource.

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