Networking & Protocols (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the common HTTP Request Methods and their Idempotency?
junior LevelHTTP & REST APIs
In Simple Words:
- Idempotent: Executing the request multiple times produces the exact same server state as executing it once:
GET,HEAD,OPTIONS: Safe (read-only) and Idempotent.PUT: Idempotent (replaces entire resource).DELETE: Idempotent (deleting already-deleted resource leaves it deleted).
- Non-Idempotent:
POST: Submits data to create new child resource (calling 5 times creates 5 records!).PATCH: Modifies partial fields (can be non-idempotent if using relative operations likeincrement).