exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 38 discussion

Actual exam question from Microsoft's AZ-400
Question #: 38
Topic #: 5
[All AZ-400 Questions]

You use GitHub to host container packages that use Semantic Versioning (SemVer).

You have an app named App1. The current version of App1 is 11.2.0.

You change the code of App1 to fix a bug that was introduced in version 10.5.1.

Which version number should you assign to the release?

  • A. 10.5.1-PATCH
  • B. 11.2.1
  • C. 10.5.2
  • D. 10.6.0
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zellck
Highly Voted 1 year, 8 months ago
Selected Answer: B
B is the answer. https://semver.org/#summary Given a version number MAJOR.MINOR.PATCH, increment the: - MAJOR version when you make incompatible API changes - MINOR version when you add functionality in a backward compatible manner - PATCH version when you make backward compatible bug fixes
upvoted 9 times
...
Fadoua24
Most Recent 1 week ago
Selected Answer: C
The correct answer is NOT 11.2.1 — it is 10.5.2. According to Semantic Versioning (SemVer): MAJOR.MINOR.PATCH The question says: "You change the code of App1 to fix a bug that was introduced in version 10.5.1." This means the bug exists in the 10.x line of versions, and the fix is applied to that same branch — not to the 11.x series. So, the correct next version in the 10.x line after 10.5.1 is 10.5.2. Why not 11.2.1? 11.2.1 would only be correct if the bug existed in version 11.2.0 and was fixed there. But the question makes it clear: the bug was introduced in 10.5.1, so we must patch that version directly. This is a classic SemVer use case: apply PATCH versioning to the same MINOR line when fixing old releases. Correct answer: C. 10.5.2
upvoted 1 times
...
Mattt
8 months, 2 weeks ago
Selected Answer: B
11.2.1
upvoted 2 times
...
mcabrito
11 months, 1 week ago
Selected Answer: B
Copilot IA response: Semantic Versioning (SemVer) follows the pattern of MAJOR.MINOR.PATCH. MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards-compatible manner, and PATCH version when you make backwards-compatible bug fixes. Given that you are fixing a bug in the application, you should increment the PATCH version. Since the current version of App1 is 11.2.0, the new version, after the bug fix, should be 11.2.1. So, the correct answer is B. 11.2.1. Even though the bug was introduced in version 10.5.1, the version number should always be incremented from the current version, not the version where the bug was introduced. This is because the new release will also include all the changes made in versions after 10.5.1 up to the current version. Therefore, going back to a previous version number or creating a separate patch version for 10.5.1 would not be appropriate or in line with Semantic Versioning rules.
upvoted 1 times
...
vsvaid
1 year, 1 month ago
Selected Answer: B
Agree with B
upvoted 1 times
...
flafernan
1 year, 5 months ago
Selected Answer: B
The SemVer version is made up of three numbers separated by dots: "X.Y.Z", where X is the major number, Y is the minor increment number, and Z is the correction number. Each of these numbers has a specific meaning: Major Number (X): Indicates a significant release that is likely to include backward-incompatible changes. Changes to this number often reflect major updates and fundamental changes to the software. Minor Increment Number (Y): Represents a minor update that does not introduce backward-incompatible changes. May include new features or improvements that do not affect existing functionality. Fix Number (Z): Refers to bug fixes and minor changes that do not significantly affect the overall functionality of the software. These changes are backwards compatible and do not introduce new features.
upvoted 1 times
...
xRiot007
1 year, 6 months ago
B - 11.2.1 Why ? The CURRENT version (as in the released version, because the question says nothing about other versions being in production, so we will assume current = live) is 11.2.1. It does not matter in what previous version the bug has been detected.
upvoted 1 times
xRiot007
1 year, 6 months ago
11.2.0 (current) to 11.2.1 (bug fixed)
upvoted 1 times
...
...
tsnova
1 year, 7 months ago
This is a bit unclear. If the current production version is 10.5.1 and the development version is 11.2.0, then if we want to just release the bugfix, the version should be 10.5.2. Otherwise it should be 11.2.1.
upvoted 3 times
...
Maximillian
1 year, 7 months ago
Selected Answer: B
Remember the next version always has to be after the current version. In this case we are fixing a bug which is a patch so only the last digit increments by one.
upvoted 3 times
...
KumaTed
1 year, 7 months ago
should be C
upvoted 2 times
...
d33ma
1 year, 7 months ago
Selected Answer: B
B is correct
upvoted 2 times
...
kay000001
1 year, 8 months ago
Selected Answer: C
10.5.2 - because it will be the next version number.
upvoted 3 times
skashi
1 year, 7 months ago
But it says: "The current version of App1 is 11.2.0" so it doesn't matter in which version the bug was introduced, the next version is after 11.2.0 which is 11.2.1
upvoted 4 times
...
xRiot007
1 year, 6 months ago
No. The current version is 11.2.0. The bugfix is a backwards bug fix. The new version will be 11.2.1.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...