API Testing · Senior · Question 6 of 75

What is a sensible backward-compatibility policy for a public API?

Show the answer

Correct answer: Only additive changes in a version, breaking ones in a new version with a sunset

Explanation

Clients need predictability. Tests guard the policy: contract checks fail on removed or retyped fields within a version.

Further reading

Problem with a question

API Testing · Senior · question 6

Test yourself

Take the API Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz