Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your organization stores its code in GitHub and tracks work items in Azure Boards. A multi-stage YAML pipeline in Azure DevOps already builds the application and uses the GitHubRelease@1 task to create a GitHub release whenever a semantic version tag (v*) is pushed. You must ensure that every release automatically includes a ReleaseNotes.md file that lists all commits and Azure Boards work items completed since the previous tag, but you want to avoid writing custom PowerShell or REST scripts. Which additional Azure Pipelines task should you add to the pipeline to meet the requirement?
Add a GitVersion@5 task to calculate the version number and output a ReleaseNotes.md file.
Configure a PublishTestResults@2 task with the releaseNotesFile input set to ReleaseNotes.md.
Run a DotNetCoreCLI@2 task with the command "swagger tofile" to export ReleaseNotes.md.
Add the "Generate Release Notes (Cross-platform)" task from the Azure DevOps Marketplace and point it at the current and previous tags.
The "Generate Release Notes (Cross-platform)" Marketplace task queries the Azure DevOps REST APIs to collect the commits and Azure Boards work items that occurred between two pipeline runs or Git tags. The task formats the information into a Markdown or HTML file that can be saved as ReleaseNotes.md and then passed to the existing GitHubRelease@1 task. The other options do not provide the required functionality: GitVersion@5 only calculates semantic version numbers, PublishTestResults@2 publishes test reports rather than work-item-based release notes, and the .NET CLI Swagger command produces OpenAPI specifications, not release notes.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the 'Generate Release Notes (Cross-platform)' Azure Pipelines task, and how does it work?
Open an interactive chat with Bash
How does the GitHubRelease@1 task interact with the ReleaseNotes.md file in this scenario?
Open an interactive chat with Bash
Why wouldn't other tasks like GitVersion@5 or PublishTestResults@2 meet the requirement for generating release notes?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement processes and communications
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .