200-901 exam dumps

200-901 practice question 47 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 47

Select 3

A developer is troubleshooting an HTTP response from their API and observes the following:

HTTP/1.1 404 Not Found Content-Type: application/json Content-Length: 85

{"error": "Resource not found", "code": 404, "details": "The requested item was not found."}

Which parts of the HTTP response are correctly identified?

  1. A

    The response code is 404, indicating a client error.

  2. B

    The Content-Type header specifies the type of data in the body as JSON.

  3. C

    The body contains the metadata about the HTTP protocol used.

  4. D

    The Content-Length header specifies the size of the response body in bytes.

  5. E

    The response code is part of the HTTP headers.

Show answer and explanation

Correct answers: A, B, D

Explanation

An HTTP response consists of three main parts: the status line (which includes the response code like 404), the headers (such as Content-Type and Content-Length), and the body (which contains the actual response data). Understanding these components helps developers interpret and troubleshoot API responses effectively.

  • A. Correct.

    Correct: The response code 404 indicates a client error where the requested resource could not be found.

  • B. Correct.

    Correct: The 'Content-Type' header specifies the format of the response body, which is JSON in this case.

  • C. Incorrect.

    Incorrect: The body contains the actual data returned by the server, not metadata about the HTTP protocol.

  • D. Correct.

    Correct: The 'Content-Length' header specifies the size of the response body, which is 85 bytes in this example.

  • E. Incorrect.

    Incorrect: The response code is part of the HTTP status line, not the headers.

Timed practice exam

Take a 200-901 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam