Soru

Zorluk: KolayCharacteristics of REST-Based APIs (CRUD, HTTP Verbs, Data Formats)

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?

  1. HTTP GET is used to read or retrieve resource representation without modifying server state.Cevap
  2. HTTP DELETE is used to remove a specified resource from the server.Cevap
  3. C
    HTTP POST is used to perform a full replacement of an existing resource.
  4. D
    HTTP PUT is used exclusively to fetch configuration data in JSON format.

Cevap

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.

Adım Adım Çözüm

1
Map HTTP verbs to their standard CRUD operations.
GET corresponds to Read, POST corresponds to Create, PUT/PATCH correspond to Update, and DELETE corresponds to Delete.
Understanding HTTP verb to CRUD operation mapping is essential for RESTful API interactions.
2
Evaluate the statements regarding HTTP verb operations.
Statements describing GET as Read/retrieve and DELETE as remove are accurate. Statements confusing POST with replacement or PUT with fetching are inaccurate.
GET is safe/read-only, DELETE removes resources, POST creates resources, and PUT updates/replaces resources.

Anahtar Kavram

REST API HTTP Verbs and CRUD Mapping
Bu soruyu puanla