🎙 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 15 of 15

The mobile app reads a field called "name". The team wants to rename it to "fullname". What is the safe approach?

The mobile app reads a field called "name". The team wants to rename it to "full_name". What is the safe approach?

  1. A.Rename it in place; old apps will update themselves
  2. B.Delete the field and tell users to reinstall
  3. C.Treat it as a breaking change: add the new field or a new version and keep the old one until clients move
  4. D.Return 500 for old app versions
Answer & explanation

Correct answer: Treat it as a breaking change: add the new field or a new version and keep the old one until clients move

Renaming breaks installed apps; additive changes and versioning keep them working.

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 →