A network engineer is reviewing REST-based API design principles and operational behaviors for network infrastructure automation. Which two statements accurately describe the characteristics of HTTP verbs and CRUD operations when interacting with REST APIs? (Choose two.)
- HTTP PUT requests are idempotent and replace the entire targeted resource payload at a specified URI.Cevap
- HTTP GET requests are considered safe and idempotent, meaning they retrieve resource data without modifying server state.Cevap
- CHTTP PATCH operations map to the Create function in CRUD and require creating a completely new URI endpoint for each request.
- DHTTP POST operations map directly to the Read function in CRUD and cannot include a request payload body.
Cevap
The correct statements are that HTTP PUT requests are idempotent and replace the entire targeted resource payload at a specified URI, and HTTP GET requests are considered safe and idempotent, retrieving resource data without modifying server state.
In RESTful architecture, HTTP GET maps to the Read operation and is both safe (causes no side effects) and idempotent. HTTP PUT maps to Update/Replace and is idempotent because replacing a resource with identical data multiple times yields the same resource state.
Adım Adım Çözüm
Anahtar Kavram
Characteristics and CRUD Mappings of REST HTTP Verbs (GET, POST, PUT, PATCH, DELETE)
Tahmini Süre:2m 0s