CompTIA Data+ (DA0-002) free question 9 / 10 · Domain 5: Data governance
A team publishes a dataset as version 2.3.1 and removes a column that downstream reports depend on. Which next version number follows semantic versioning?
- 3.0.0, as removing a column is an incompatible change and the major number is increased
- 2.3.2, as the patch number is increased when something in the data is changed
- 2.4.0, as the minor number is increased when the structure of the data is touched
- 2.3.1 with a note, as the version number is kept until the next planned release
Show the answer and explanation
Answer: A
Why this is correct
Semantic versioning increments the major version when incompatible changes are made to the public interface, the minor version when functionality is added in a backward compatible way, and the patch version for backward compatible bug fixes. Downstream reports depend on the column, so removing it is an incompatible change. The major number goes up and the minor and patch numbers are reset, which gives 3.0.0.
Why the other options are wrong
"2.4.0, as the minor number is increased when the structure of the data is touched" … The minor number is for backward compatible additions. Removing a column breaks consumers, so it is not a minor change.
"2.3.2, as the patch number is increased when something in the data is changed" … The patch number is for backward compatible bug fixes. A removed column is neither backward compatible nor a bug fix.
"2.3.1 with a note, as the version number is kept until the next planned release" … Every change to a published release needs a new version number. Keeping the number hides the incompatible change from consumers.
Where people trip
Version numbers are a promise to consumers. A removed or renamed field breaks that promise and needs a major increment.
Go to the CompTIA Data+ (DA0-002) practice app (10 free questions; purchase unlocks all questions)