You have a project in Azure DevOps named Project1 that references an Azure Artifacts feed named Feed1.
You have a package named Package1 that has the versions shown in the following table.
You need to perform a build of Project1.
Which version of Package1 will be used?
A. 1.0.3
B. 1.4.0
C. 2.0.0
D. 2.3.1
Show Answer
Correct Answer: B
Explanation: Azure Artifacts resolves packages using feed search order. Versions published directly to the current feed take precedence over versions that were merely saved from or available via upstream sources. Thus, even if a higher version exists upstream, the build uses the directly published version in the feed, which is 1.4.0.
Question 123
You are automating the testing process for your company.
You need to automate UI testing of a web application.
Which framework should you use?
A. JaCoco
B. Playwright
C. Xamarin.UITest
D. Microsoft.CodeAnalysis
Show Answer
Correct Answer: B
Explanation: Playwright is a modern end-to-end test automation framework for automating UI testing of web applications across Chromium, Firefox, and WebKit. JaCoco is a Java code coverage tool, Xamarin.UITest targets mobile app UI testing, and Microsoft.CodeAnalysis (Roslyn) is for code analysis and compilation, not UI automation.
Question 124
You have an app named App1 that you release by using Azure Pipelines. App1 has the versions shown in the following table.
You complete a code change to fix a bug that was introduced in version 3.4.3.
Which version number should you assign to the release?
A. 3.4.4
B. 3.4.8
C. 3.5.0
D. 4.0.1
Show Answer
Correct Answer: D
Explanation: Using semantic versioning, a bug fix increments the patch version of the current released version. Given the version history culminates in 4.0.0, a bug fix release should be 4.0.1. The fact that the bug was introduced in 3.4.3 does not mean you revert the version sequence or release from that older line unless explicitly stated that a maintenance branch is being patched.
Question 125
You have an Azure web app that is deployed by using Azure Pipelines.
You need to ensure that when a new version of the app is deployed to production, you can roll back to the previous version. The solution must meet the following requirements:
• Minimize downtime during the deployment.
• Minimize the time it takes for the rollback.
What should you use?
A. a single web app and two deployment slots
B. a single web app and two deployment pipelines
C. two web apps and an Azure Standard Load Balancer
D. two web apps and an Azure Traffic Manager instance
Show Answer
Correct Answer: A
Explanation: Use a single Azure App Service with two deployment slots (typically production and staging). Deploy the new version to the staging slot, validate it, then perform a slot swap to production. Slot swaps provide near-zero downtime and allow very fast rollback by swapping back if issues are detected.
Question 126
You are integrating an Azure Boards project and a GitHub repository.
You need to authenticate Azure Boards to GitHub.
Which two authentication methods can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. a publisher certificate
B. a trusted root certificate
C. Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra
D. GitHub user credentials
E. a personal access token (PAT)
Show Answer
Correct Answer: D, E
Explanation: Azure Boards can authenticate to GitHub using GitHub user credentials (via the GitHub sign-in/authorization flow) or by using a GitHub personal access token (PAT), depending on the integration scenario. Publisher certificates, trusted root certificates, and Azure AD are not authentication methods for Azure Boards to GitHub in this context.
Question 127
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 Answer
Correct Answer: B
Explanation: Under Semantic Versioning, a backwards-compatible bug fix increments the PATCH component of the current release line. The question states the current version is 11.2.0, so the next release that fixes the bug is 11.2.1. Although the bug was introduced in 10.5.1, the question does not state that you are maintaining a separate 10.5.x maintenance branch; if you were, 10.5.2 could be appropriate for that branch, but that is not what is described.
Question 128
DRAG DROP
-
You have an Azure Repos repository named repo1.
You delete a branch named features/feature11.
You need to recover the deleted branch.
Which three commands should you run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
Explanation: Find the commit SHA of the deleted branch, check out that commit in detached HEAD state, then recreate the branch pointing to the current commit.
Question 129
HOTSPOT
-
You have an Azure subscription.
You need to create a storage account by using a Bicep file.
How should you complete the file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: kind:
properties:
Explanation: For a Microsoft.Storage/storageAccounts resource, the account type is specified with the 'kind' property (e.g. 'StorageV2'), and configuration such as supportsHttpsTrafficOnly belongs under the 'properties' object.
Question 131
You use Azure Repos to manage source code and Azure Pipelines to implement continuous integration and continuous deployment (CI/CD).
You need to ensure that all comments on pull requests are resolved before the pull requests are included in a build. The solution must minimize administrative effort.
What should you include in the solution?
A. a custom action
B. a post-deployment gate
C. a branch policy
D. a pre-deployment gate
Show Answer
Correct Answer: C
Explanation: Use an Azure Repos branch policy with the 'Check for comment resolution' setting. This enforces that all pull request comments are resolved before the PR can be completed and included in the target branch, minimizing administrative effort because it is a built-in policy. Pre-deployment and post-deployment gates apply to release/deployment workflows, and a custom action is unnecessary.
Question 132
You manage source code control and versioning by using GitHub.
You need to ensure that a PowerShell script is executed automatically before rebase operations are performed.
What should you use?
A. a package
B. GitHub Copilot
C. a webhook
D. a gist
Show Answer
Correct Answer: C
Explanation: The technically correct Git mechanism for executing a script before a rebase is a Git pre-rebase hook, not a GitHub webhook. However, among the provided answer choices, 'Git hook' is not available. A package, GitHub Copilot, and a gist cannot execute scripts before rebases. Exam-wise, the intended answer is therefore the only plausible option, although the question appears to be flawed.
$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.