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: Azure App Service deployment slots allow you to deploy a new version to a staging slot and then swap it with production with near-zero downtime. If an issue occurs, rolling back is fast because you can simply swap back to the previous slot. This approach minimizes both deployment downtime and rollback time, without requiring additional infrastructure.
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 either by using GitHub user credentials via OAuth during the connection process, or by using a GitHub personal access token (PAT). Certificate-based methods and Azure AD authentication are not supported for Azure Boards–GitHub integration.
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 backward-compatible bug fix increments the PATCH version of the current release line. The question states that the current version of App1 is 11.2.0, so the next release after fixing a bug should be 11.2.1. The version where the bug was originally introduced (10.5.1) is irrelevant unless you are explicitly releasing a patch for that older branch, which the question does not state.
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: First, view the commit history to identify the SHA-1 of the last commit on the deleted branch. Next, check out that specific commit. Finally, recreate the deleted branch by creating a new branch that points to the checked-out 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: In a Bicep storage account resource, the account type is specified using the kind property (e.g., 'StorageV2'), and configuration settings like supportsHttpsTrafficOnly must be placed inside the properties block.
Question 130
DRAG DROP
-
You have a project in Azure DevOps named Project that has a release pipeline in Azure Pipeline named ReleaseP1.
You need to ensure that when a new release is generated for ReleaseP1, a new release note document is created. The release notes must contain new features and bug fixes.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Show Answer
Correct Answer: Create a personal access token (PAT).
Create a query that retrieves the feature and bug fix information.
Create a PowerShell task in ReleaseP1 that writes the retrieved data to a markdown file.
Explanation: A PAT is required to authenticate API calls from the release pipeline. A work item query is needed to identify features and bug fixes included in the release. Finally, a PowerShell task in the release pipeline retrieves the query results and generates the release notes document.
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: Azure Repos branch policies include a built-in setting to require all pull request comments to be resolved before completion. Applying this policy ensures unresolved comments block the pull request from being merged and therefore from being included in a build. This requires no custom development or deployment gates, minimizing administrative effort.
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:
Explanation: To execute a script automatically before a rebase, Git uses a local client-side Git hook called the pre-rebase hook. Webhooks are server-side HTTP callbacks triggered by GitHub events (such as push or pull requests) and cannot intercept or run code before a local rebase operation. Therefore, none of the provided options correctly address the requirement; the correct mechanism would be a Git hook, which is not listed.
Question 133
DRAG DROP
-
You have an Azure Repos repository named repo1.
You need to clone repo1. The solution must clone only a directory named src/web.
How should you complete the script? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: https://dev.azure.com/organization/project/_git/repo1
repo1/src
web
Explanation: Scalar clone creates a repo directory with a src folder as the working root. After cloning, you change into repo1/src, and then configure sparse checkout to include only the web folder, which corresponds to src/web in the repository.
Question 134
You have a GitHub repository that contains multiple workflows and a secret stored at the environment level.
You need to ensure that the secret can be used by all the workflows.
What should you do first?
A. Recreate the secret at the organization level.
B. Recreate the secret at the repository level.
C. Enable required reviewers.
Show Answer
Correct Answer: B
Explanation: Environment-level secrets are scoped to a specific environment and are only available to workflows that target that environment. To ensure the secret is usable by all workflows in the repository without additional environment constraints, you should recreate it as a repository-level secret, which is accessible to all workflows in that repository.
$19
Get all 531 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.