🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: API Design: all 15 questions

Quiz: API Design · Question 11 of 15

Which HTTP method is both safe and idempotent?

Which HTTP method is both safe and idempotent?

  1. A.POST
  2. B.GET
  3. C.PATCH
  4. D.DELETE
Answer & explanation

Correct answer: GET

GET only reads; DELETE is idempotent but not safe because it changes data.

Can you get the rest right without peeking?

Take the timed Quiz: API Design quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →