Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You need to use an Azure Pipelines pipeline to test an app. The solution meet the following requirements:
• The pipeline must fail if any tests fail.
• The test results must be published to the pipeline.
• The test for every pipeline run must be triggered unless the pipeline is cancelled.
Solution: You include the following elements in the YAML definition of the pipeline.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation: The solution as described does not fully meet the stated goals. Using a publish test results task with an unconditional condition can ensure results are published and the step runs regardless of earlier failures, but it does not by itself guarantee that the pipeline fails when tests fail. That requires either the test execution task to return a failure or the publish task to be configured to fail on failed tests (for example, failTaskOnFailedTests). Also, the requirement is to run unless the pipeline is cancelled; using always() also runs after cancellation attempts, whereas not(canceled()) more precisely matches the requirement.
Question 53
You manage projects by using Azure Boards.
You have a current work item named itemA that is dependent on a work item named itemB.
You need to define the dependency for itemA.
What should you do in the web portal for Azure DevOps?
A. Add a Parent link to the user story of item
B. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to Successor and add the ID of item
C. From Backlogs, open the context menu, select Add link, and then select itemB. Set Link type to Related and add the ID of itemA.
D. From itemA, open the Links tab, and then select Add link. Set Link type to References and add the ID of itemB.
Show Answer
Correct Answer: B
Explanation: To represent a dependency where itemA depends on itemB in Azure Boards, use the Predecessor/Successor link type. Since itemA cannot proceed until itemB is complete, itemA is the Successor and itemB is its predecessor. The backlog context menu allows adding this dependency link. Parent is for hierarchy, Related is a non-dependency association, and References is not used for dependency tracking.
Question 54
You manage a project by using Azure Boards, 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 should you add to the commit message?
A. #123 fixed
B. #123 Resolved-
C. Verifies #123-
D. Resolves #123-
Show Answer
Correct Answer: A
Explanation: Azure Repos resolution mentions support the keywords fix, fixes, and fixed with a work item reference such as '#123'. A commit message like '#123 fixed' contains the supported keyword and work item ID, which resolves the work item to the Resolved state when pushed to the default branch. The 'Resolves' keyword is supported for Azure Boards GitHub integration (AB#123), but Azure Repos resolution mentions specifically document only fix/fixes/fixed.
Sources:
https://learn.microsoft.com/en-us/azure/devops/repos/git/resolution-mentions?view=azure-devops
Question 55
You have a project in Azure DevOps that uses an Azure Boards board and stores code in a GitHub repository. The repository contains a file named README.md.
You need to ensure that README.md includes the status of the work items on the board. The solution must minimize administrative effort.
What should you do first?
A. Create a GitHub personal access token (PAT).
B. Enable GitHub annotations for the board.
C. Install the Azure Boards app for GitHub.
D. Select Allow anonymous users to access the status badge.
Show Answer
Correct Answer: D
Explanation: To display Azure Boards status in a GitHub README.md, you use a status badge. The first step in configuring the badge is enabling anonymous access to the status badge so GitHub can render it publicly. Installing the Azure Boards GitHub app is for linking commits, pull requests, and work items, not for displaying a board status badge in README.md. A PAT is unnecessary for this task, and GitHub annotations are unrelated.
Question 56
You use an Azure Pipelines pipeline to build, test, and deploy an app named App1.
You need to reduce how long it takes to complete unit and integration tests for App1. The solution must ensure that the code coverage testing ratio is maintained.
What should you do?
A. Enable flaky test management.
B. Purchase additional parallel jobs.
C. Enable Test Impact Analysis (TIA).
D. Add an agent pool.
Show Answer
Correct Answer: C
Explanation: Test Impact Analysis (TIA) reduces test execution time by running only the subset of unit and integration tests affected by the code changes while preserving overall code coverage across changes. Purchasing parallel jobs or adding agent pools speeds execution through more capacity but does not specifically optimize test selection, and flaky test management addresses unreliable tests rather than reducing test duration.
Question 57
DRAG DROP
-
You have an Azure Repos repository named Repo1 that is used for source control.
You need to configure code scanning for Repo1.
Which three tasks should the pipeline perform in sequence? To answer, move the appropriate tasks from the list of tasks to the answer area and arrange them in the correct order.
Explanation: For Azure Repos code scanning with GitHub Advanced Security, the pipeline initializes CodeQL, builds the code so CodeQL can analyze it, and then runs the CodeQL analysis. Dependency scanning and Microsoft Purview Scan are separate features.
Question 58
You plan to deploy a solution that will include multiple microservices.
You need to recommend a deployment strategy for the microservices. The solution must meet the following requirements:
• Enable testing and monitoring of changes during a gradual rollout.
• Control the number of users that will receive new code releases.
Which strategy should you recommend?
A. progressive exposure
B. A/B
C. feature toggle
D. blue/green
Show Answer
Correct Answer: A
Explanation: Progressive exposure (canary deployment) gradually rolls out a new version to a controlled subset of users, enabling monitoring and testing during rollout while controlling how many users receive the new release. A/B testing compares variants for experimentation, feature toggles gate functionality but are not a deployment rollout strategy by themselves, and blue/green switches traffic between two environments, typically with an all-or-nothing cutover rather than gradual exposure.
Question 59
You plan to deploy a solution that will include multiple microservices.
You need to recommend a deployment strategy for the microservices. The solution must meet the following requirements:
• Enable users to test new features by using a specific URL.
• Minimize the effort required to promote a test version to production.
• Minimize the effort required to revert production code to the previous version.
Which strategy should you recommend?
A. A/B
B. feature toggle
C. progressive exposure
D. blue/green
Show Answer
Correct Answer: D
Explanation: Blue/green deployment maintains two production environments. A test version can be accessed through a dedicated endpoint or URL before traffic is switched. Promoting to production is typically just a traffic switch, and rollback is equally simple by directing traffic back to the previous environment. This best satisfies testing via a specific URL, easy promotion, and easy rollback.
Question 60
You have an Azure subscription.
You create two Bicep templates named Template1 and Template2 that will be used to create a virtual machine and a website.
You need to create a template named Template3 that will reuse logic from Template1 and Template2.
What should you define first?
A. outputs
B. resources
C. modules
D. parameters
Show Answer
Correct Answer: C
Explanation: Bicep reuses logic across templates by referencing other Bicep files as modules. To create Template3 that incorporates Template1 and Template2, you define module declarations pointing to those templates. Outputs, resources, and parameters may also be present, but the mechanism for reuse is modules.
Question 61
HOTSPOT
-
You have a .NET app named App1.
You need to upload App1 to GitHub Packages.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: dotnet
nuget push
Explanation: To upload a NuGet package to GitHub Packages using the .NET CLI, use 'dotnet nuget push <package>.nupkg --api-key <TOKEN> --source <source>'.
$19
Get all 534 questions with detailed answers and explanations
Instant download HTML + PDF delivered the moment payment clears.
Secure Stripe checkout we never see or store your card details.
7-day refund if files are defective see our refund policy.