Cisco 200-901 Practice Test - Questions Answers, Page 6
List of questions
Related questions
Which way should be used to safely store the API keys?
in an environment variable unique to the system database
encrypted in a configuration file that is separate from the code
plain text in the code as a constant
encrypted in the code in a function
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.
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?
Remove the -H ‘Accept: application/yang-data+json' HTTP header because it is not required.
Add -‘u cisco:cisco' in the end of the cURL command
Change the request method from -X “GET” to -X “POST”
Add Content-Type HTTP header with ‘application/yang-data+json’ using -H ‘Content-Type: application/yang-data+json’
What are two benefits of managing network configuration via APIs? (Choose two.)
more security due to locking out manual device configuration
configuration on devices becomes less complex
eliminates the need of legacy management protocols like SNMP
reduction in network changes performed manually
increased scalability and consistency of network changes
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
Which Cisco DevNet resource allows access to products in a development lab to explore, learn, and build applications that use Cisco APIs?
DevNet Code Exchange
DevNet Sandbox
DevNet Communities
DevNet Automation Exchange
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?
The authorization header is missing or incomplete.
The request body is missing or incomplete.
The API token specified is expired.
The user is not allowed to post messages from their account.
Which two statements describe the traits of an asynchronous API call? (Choose two.)
Code execution blocks or waits for the call to an API to return.
A callback function typically is used to process the response from an API call.
A call to an API does not block the code, but rather it allows application processing to continue.
The end user can experience latency or performance lag while waiting for the API call to return.
The order in which API calls return can be guaranteed.
Which mechanism is used to consume a RESTful API design when large amounts of data are returned?
data sets
scrolling
pagination
blobs
Refer to the exhibit.
What caused the error in this API request?
The API resource does not support the POST operation.
The submitted JSON payload has a formatting issue.
The API resource does not support JSON format payloads.
The submitted JSON payload includes a field that is not supported by the API resource.
Question