Skip to Content

Microsoft AZ-400: What should add to commit message when creating pull request to link all project work items in Azure Boards

Question

You manage a project by using Azure Boards. You manage the project code by using GitHub. You have three work items that have IDs of 456, 457, and 458. You need to create a pull request that will be linked to all the work items. The solution must set the state of work item 456 to done. What should you add to the commit message?

A. Fixes #456, #457, #458
B. Fixes #AB456, #AB457, #AB458
C. #456, #457, #458 Completed #456
D. #AB456, #AB457, #AB458

Answer

B. Fixes #AB456, #AB457, #AB458

Explanation

The correct answer is B. Fixes #AB456, #AB457, #AB458.

The work item IDs in Azure Boards are prefixed with AB. So, to link the commit message to the work items, you need to use the #AB syntax. In this case, the commit message should be:

Fixes #AB456, #AB457, #AB458
This will create a link between the commit message and the work items in Azure Boards. When you merge the pull request, the state of work item 456 will be set to Done.

The other options are incorrect. Option A uses the # syntax, but the work item IDs are not prefixed with AB. Option C uses the correct syntax, but it does not specify that work item 456 is being marked as Done. Option D uses the wrong syntax altogether.

Here is a breakdown of the different options:

Option A: Fixes #456, #457, #458
This option uses the # syntax to link the commit message to the work items. However, the work item IDs are not prefixed with AB. This will not create a valid link to the work items in Azure Boards.

Option B: Fixes #AB456, #AB457, #AB458
This option uses the correct syntax to link the commit message to the work items. The work item IDs are prefixed with AB, which is the convention used in Azure Boards. This will create a valid link to the work items in Azure Boards.

Option C: #456, #457, #458 Completed #456
This option uses the correct syntax to link the work items, but it does not specify that work item 456 is being marked as Done. If you merge the pull request, the state of work item 456 will not be changed.

Option D: #AB456, #AB457, #AB458
This option uses the wrong syntax altogether. The # syntax is used to link commit messages to work items, but the AB syntax is used to link work items to each other. This option will not create a valid link to any work items.

Reference

Designing and Implementing Microsoft DevOps Solutions AZ-400 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Designing and Implementing Microsoft DevOps Solutions AZ-400 exam and earn Designing and Implementing Microsoft DevOps Solutions AZ-400 certification.