A service must preserve backward compatibility across API versions while evolving a schema consumed by downstream systems. Which change is safest under consumer compatibility constraints?

Answer

Add new optional fields and keep existing fields’ types/semantics stable

Explanation

Adding optional fields preserves existing consumers and allows new functionality to flow gradually. Renames, semantic changes, or type changes break compatibility.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list