Cisco 200-901 Practice Test - Questions Answers, Page 5
List of questions
Related questions
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 RetryAfter header. What is the root cause of this error?
An appliance limited the rate of requests to the transport layer.
The REST service is unreachable at the time of the REST request.
Too many requests were sent to the REST service in a given amount of time.
An appliance limited the rate of requests to the application layer.
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?
change content-type as JSON
add the authorization header with the access token
and a username-password combination to request command
change request method as GET
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?
Change the HTTP method to PUT.
Check the MIME types in the HTTP headers.
Change the transport protocol to HTTPS.
Check the authentication credentials.
Refer to the exhibit.
An API call is constructed to retrieve the inventory in XML formal by using the API. The response to the call is 401 Unauthorized. Which two headers must he added to the API call? (Choose two.)
Bearer-Token: dXNlcm5hbWU6cGFzc3dvemQ=
Content-Type: application/xml
Authentication: Bearer dXNlcm5hbWU6cGFzc3dvemQ=
Accept: application/xml
Authorization: Bearer dXNlcm5hbWU6cGFzc3dvemQ=
Which HTTP response status code means “Forbidden”?
500
401
403
502
Which HTTP response code should be returned when the request is completed but there is no content to send for the request?
100
204
302
402
Refer to the exhibit. Which data is specified in the response header?
Content-Type
HTTP/1.1 200 OK
“type”: “switch”
{
“id”: “a123456bcde”, HTTP/1.1 200 OK
“status”: “online”,
“type”: “switch”
}
What are two use cases where webhooks are effective? (Choose two.)
Filter out information from a response to an API call.
Close a session with a web server after a specific amount of time.
Inform a previously defined chat channel after a deployment fails.
Send an email to a customer of an online store after payment is complete.
Change the response formal or content type of an API call.
Which two descriptions can be given to an application that is interacting with a webhook? (Choose two.)
receiver
transaction monitor
codec
processor
listener
How does requesting a synchronous API operation differ from requesting an asynchronous API operation?
clients receive responses with a task id for further processing
clients subscribe to a webhook for operation results
clients poll for the status of the execution of operations
clients can access the results immediately
Question