🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: HTTP Methods, Status Codes and Headers: all 10 questions

Quiz: HTTP Methods, Status Codes and Headers · Question 6 of 10

Why should a GET handler never delete or update data?

Why should a GET handler never delete or update data?

  1. A.GET requests are slower
  2. B.GET is meant to be safe; browsers, crawlers and caches send GETs freely and may repeat them
  3. C.GET cannot reach the database
  4. D.Express blocks it
Answer & explanation

Correct answer: GET is meant to be safe; browsers, crawlers and caches send GETs freely and may repeat them

A crawler following a link like /delete?id=7 could destroy data.

Can you get the rest right without peeking?

Take the timed Quiz: HTTP Methods, Status Codes and Headers quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →