AZ-400 · Question #504
You manage a project by using Azure Board, and you manage the project code by using Azure Repos. You have a bug work item that has an ID of 123. You need to set the work item state to Resolved. What s
The correct answer is D. Fixes #123. Fixes #123 is the correct commit message syntax because Azure DevOps recognizes specific keywords followed by a work item ID (prefixed with #) to automatically transition work item states. The keyword fixes (along with fix and fixed) is a recognized AB# transition keyword that se
Question
Options
- A#123 completes
- BResolves #AB-123
- CVerifies #123
- DFixes #123
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- C3% (1)
- D90% (36)
Explanation
Fixes #123 is the correct commit message syntax because Azure DevOps recognizes specific keywords followed by a work item ID (prefixed with #) to automatically transition work item states. The keyword fixes (along with fix and fixed) is a recognized AB# transition keyword that sets the linked work item to Resolved when the commit is pushed.
Why the distractors are wrong:
- A (#123 completes) –
completesis not a valid Azure DevOps transition keyword; it has no effect on work item state. - B (Resolves #AB-123) – The
AB#prefix format is used specifically for GitHub repositories linked to Azure Boards, not for Azure Repos commits; within Azure Repos, just#123is the correct format. - C (Verifies #123) –
verifiesis not a recognized transition keyword in Azure DevOps and will not change the work item state.
Memory Tip: Think of the "3 F's" - Fix, Fixed, Fixes - as the magic words that resolve bugs in Azure Repos commits. If you see AB# in an answer, that's the GitHub-to-Azure Boards syntax, not the native Azure Repos format - a classic exam trap!
Topics
Community Discussion
No community discussion yet for this question.