A network administrator is learning about the fundamentals of REST-based APIs used in network automation. Which two of the following correctly pair an HTTP verb with its corresponding CRUD operation?
- HTTP GET is used to read or retrieve resource representation without modifying server state.Answer
- HTTP DELETE is used to remove a specified resource from the server.Answer
- CHTTP POST is used to perform a full replacement of an existing resource.
- DHTTP PUT is used exclusively to fetch configuration data in JSON format.
Answer
HTTP GET is used to read or retrieve resource representation without modifying server state, and HTTP DELETE is used to remove a specified resource from the server.
HTTP GET maps to the Read operation in CRUD and retrieves data without altering server state. HTTP DELETE maps to the Delete operation in CRUD and removes the targeted resource from the server.
Step-by-Step Solution
Key Concept
REST API HTTP Verbs and CRUD Mapping