200-301 exam dumps

200-301 practice question 487 of 506

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

200-301 Question 487

Select 4

A network engineer is tasked with integrating a REST-based API for a cloud application. The API documentation specifies that the operations include retrieving data, adding new resources, updating existing resources, and deleting resources. What HTTP verbs should the engineer use to perform these actions?

  1. A

    GET

  2. B

    POST

  3. C

    PUT

  4. D

    DELETE

  5. E

    HEAD

  6. F

    PATCH

Show answer and explanation

Correct answers: A, B, C, D

Explanation

REST-based APIs rely on HTTP verbs to perform CRUD operations. For this scenario, GET retrieves data, POST creates data, PUT updates data, and DELETE removes data. These verbs map directly to the specified actions in the question.

  • A. Correct.

    GET is used to retrieve data from a server, making it the correct HTTP verb for reading operations.

  • B. Correct.

    POST is used to create new resources on the server, making it the correct HTTP verb for adding new resources.

  • C. Correct.

    PUT is used to update existing resources on the server, making it the correct HTTP verb for updating resources.

  • D. Correct.

    DELETE is used to delete resources on the server, making it the correct HTTP verb for removing resources.

  • E. Incorrect.

    HEAD is not used for resource manipulation but to retrieve header information without the response body, which is unrelated to the specified operations.

  • F. Incorrect.

    PATCH is used for partial updates to a resource, but the question does not specify partial updates, so it is not applicable.

Timed practice exam

Take a 200-301 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