200-901 Practice Test

200-901 Practice Test practice questions, page 12 of 26, with answer review and explanations.

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?

  1. change content-type as JSON
  2. add the authorization header with the access token
  3. and a username-password combination to request command
  4. change request method as GET

Question 57

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:

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?

  1. Change the HTTP method to PUT.
  2. Check the MIME types in the HTTP headers.
  3. Change the transport protocol to HTTPS.
  4. Check the authentication credentials.

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.)

  1. Bearer-Token: dXNlcm5hbWU6cGFzc3dvcmQ=
  2. Content-Type: application/xml
  3. Authentication: Bearer dXNlcm5hbWU6cGFzc3dvcmQ=
  4. Accept: application/xml
  5. Authorization: Bearer dXNlcm5hbWU6cGFzc3dvcmQ=

Question 60

Which HTTP response status code means `Forbidden`?

  1. 500
  2. 401
  3. 403
  4. 502