CS FundamentalsHardGATE CS · Product company CS fundamentals
Which set contains ONLY idempotent HTTP methods (repeating the same request has the same effect on the server as sending it once)?
- A. GET, POST, PUT
- B. POST, PATCH, DELETE
- C. PUT, POST, HEAD
- D. GET, PUT, DELETE
Correct answer: D. GET, PUT, DELETE
GET and HEAD do not change state, PUT replaces a resource with the same content each time, and DELETE leaves the resource deleted. POST (and in general PATCH) can create or change something on every call, which is why browsers warn before resubmitting a POST.
More Computer Networks questions
- A reverse proxy forwards a request to an application server. Which status does the proxy return to the client when the application server…
- The zone example.com is delegated to the name server ns1.example.com. Why must the .com servers also return an A record for…
- A DNS answer is too large for a 512-byte UDP response and EDNS(0) is not in use. What happens?
- A 1 Gb file must reach 100 peers. The server uploads at 50 Mbps; every peer downloads at 10 Mbps and uploads at 2 Mbps. What are the…
- A TDM system carries 30 voice channels, each sampled 8000 times per second with 8-bit samples, plus 2 overhead slots of 8 bits in every…
- A 1.2 Mb file is sent over a circuit-switched TDM link of 2.048 Mbps divided into 32 equal slots; the circuit gets one slot, and setting…