All jobs / Backend developer / API Development

Backend developer interview question · 0–1 years

The interviewer asks: “When do you use GET versus POST?” Strongest answer?

The strongest answer

GET for reads that must not change server state — it can be cached, logged and retried. POST when the call creates something or has a side effect.

Why it works

Exactly. The verb is a contract: GET is safe and idempotent; POST is allowed to create or change. Browsers, caches and CDNs rely on that.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions