Win IT Exam with Last Dumps 2025


Microsoft AZ-400 Exam

Page 32/54
Viewing Questions 311 320 out of 535 Questions
59.26%

Question 311
DRAG DROP -
Your company has four projects. The version control requirements for each project are shown in the following table.
AZ-400_311Q_1.png related to the Microsoft AZ-400 Exam
You plan to use Azure Repos for all the projects.
Which version control system should you use for each project? To answer, drag the appropriate version control systems to the correct projects. Each version control system 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.
Select and Place:
AZ-400_311Q_2.png related to the Microsoft AZ-400 Exam
Image AZ-400_311R.png related to the Microsoft AZ-400 Exam



Box 1: Team Foundation Version Control
TFVC lets you apply granular permissions and restrict access down to a file level.
Box 2: Git -
Git is the default version control provider for new projects. You should use Git for version control in your projects unless you have a specific need for centralized version control features in TFVC.
Box 3: Subversion -
Note: Xcode is an integrated development environment (IDE) for macOS containing a suite of software development tools developed by Apple
Box 4: Git -
Note: Perforce: Due to its multitenant nature, many groups can work on versioned files. The server tracks changes in a central database of MD5 hashes of file content, along with descriptive meta data and separately retains a master repository of file versions that can be verified through the hashes.
Reference:
https://searchitoperations.techtarget.com/definition/Perforce-Software
https://docs.microsoft.com/en-us/azure/devops/repos/git/share-your-code-in-git-xcode
https://docs.microsoft.com/en-us/azure/devops/repos/tfvc/overview

Question 312
You are automating the build process for a Java-based application by using Azure DevOps.
You need to add code coverage testing and publish the outcomes to the pipeline.
What should you use?



Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in
Cobertura or JaCoCo format.
Incorrect Answers:
A: Bullseye Coverage is used for C++ code, and not for Java.
Note:
There are several versions of this question in the exam. The question has two possible correct answers:
- Cobertura
- JaCoCo
Other incorrect answer options you may see on the exam include the following:
- Coverlet
- NUnit
- Coverage.py
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results

Question 313
HOTSPOT -
You company uses Azure DevOps to deploy infrastructures to Azure.
Pipelines are developed by using YAML.
You execute a pipeline and receive the results in the web portal for Azure Pipelines as shown in the following exhibit.
AZ-400_313Q_1.jpg related to the Microsoft AZ-400 Exam
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:
AZ-400_313Q_2.png related to the Microsoft AZ-400 Exam
Image AZ-400_313R.png related to the Microsoft AZ-400 Exam



Reference:
https://dev.to/rajikaimal/azure-devops-ci-cd-yaml-pipeline-4glj

Question 314
DRAG DROP -
You are configuring Azure DevOps build pipelines.
You plan to use hosted build agents.
Which build agent pool should you use to compile each application type? To answer, drag the appropriate build agent pools to the correct application types. Each build agent pool 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.
Select and Place:
AZ-400_314Q.png related to the Microsoft AZ-400 Exam
Image AZ-400_314R.png related to the Microsoft AZ-400 Exam



Box 1: Hosted macOS -
Hosted macOS pool (Azure Pipelines only): Enables you to build and release on macOS without having to configure a self-hosted macOS agent. This option affects where your data is stored.
Box 2: Hosted -
Hosted pool (Azure Pipelines only): The Hosted pool is the built-in pool that is a collection of Microsoft-hosted agents.
Incorrect Answers:
Default pool: Use it to register self-hosted agents that you've set up.
Hosted Windows Container pool (Azure Pipelines only): Enabled you to build and release inside Windows containers. Unless you're building using containers,
Windows builds should run in the Hosted VS2017 or Hosted pools.
Hosted Linux/Ubuntu 18.04 does not apply for Mac OS or for Microsoft IIS.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents

Question 315
You are automating the build process for a Java-based application by using Azure DevOps.
You need to add code coverage testing and publish the outcomes to the pipeline.
What should you use?



Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in
Cobertura or JaCoCo format.
Incorrect Answers:
B: Bullseye Coverage is used for C++ code, and not for Java.
D: If you're building on Linux or macOS, you can use Coverlet or a similar tool to collect code coverage metrics. Code coverage results can be published to the server by using the Publish Code Coverage Results task. To leverage this functionality, the coverage tool must be configured to generate results in Cobertura or
JaCoCo coverage format.
F: Coverage.py is used for Python, not for Java.
Note:
There are several versions of this question in the exam. The question has two possible correct answers:
1. Cobertura
2. JaCoCo
Other incorrect answer options you may see on the exam include the following:
1. Junit
2. NUnit
3. Coverage.py
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results


Question 316
You have an existing build pipeline in Azure Pipelines.
You need to use incremental builds without purging the environment between pipeline executions.
What should you use?



When you run a pipeline on a self-hosted agent, by default, none of the subdirectories are cleaned in between two consecutive runs. As a result, you can do incremental builds and deployments, provided that tasks are implemented to make use of that. You can override this behavior using the workspace setting on the job.
Incorrect Answers:
B: The workspace clean options are applicable only for self-hosted agents. When using Microsoft-hosted agents job are always run on a new agent.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases

Question 317
HOTSPOT -
You are designing YAML-based Azure pipelines for the apps shown in the following table.
AZ-400_317Q_1.png related to the Microsoft AZ-400 Exam
You need to configure the YAML strategy value for each app. The solution must minimize app downtime.
Which value should you configure for each app? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
AZ-400_317Q_2.png related to the Microsoft AZ-400 Exam
Image AZ-400_317R.png related to the Microsoft AZ-400 Exam



App1: rolling -
A rolling deployment replaces instances of the previous version of an application with instances of the new version of the application on a fixed set of virtual machines (rolling set) in each iteration.
App2: canary -
Canary deployment strategy is an advanced deployment strategy that helps mitigate the risk involved in rolling out new versions of applications. By using this strategy, you can roll out the changes to a small subset of servers first. As you gain more confidence in the new version, you can release it to more servers in your infrastructure and route more traffic to it.
Incorrect Answers:
runonce:
runOnce is the simplest deployment strategy wherein all the lifecycle hooks, namely preDeploy deploy, routeTraffic, and postRouteTraffic, are executed once.
Then, either on: success or on: failure is executed.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs

Question 318
You have a private project in Azure DevOps.
You need to ensure that a project manager can create custom work item queries to report on the project's progress. The solution must use the principle of least privilege.
To which security group should you add the project manager?



Contributors have permissions to contribute fully to the project code base and work item tracking. The main permissions they don't have or those that manage or administer resources.
Reference:
https://docs.microsoft.com/en-us/azure/devops/organizations/security/permissions

Question 319
Your company has a project in Azure DevOps for a new application. The application will be deployed to several Azure virtual machines that run Windows Server
2019.
You need to recommend a deployment strategy for the virtual machines. The strategy must meet the following requirements:
- Ensure that the virtual machines maintain a consistent configuration.
- Minimize administrative effort to configure the virtual machines.
What should you include in the recommendation?



The Custom Script Extension downloads and executes scripts on Azure virtual machines. This extension is useful for post deployment configuration, software installation, or any other configuration or management tasks. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script Extension integrates with Azure Resource Manager templates, and can be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.
Incorrect Answers:
B: YAML doesn't work with Azure pipeline deployment groups.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows

Question 320
You have an Azure DevOps project that uses many package feeds.
You need to simplify the project by using a single feed that stores packages produced by your company and packages consumed from remote feeds. The solution must support public feeds and authenticated feeds.
What should you enable in DevOps?



Upstream sources enable you to use a single feed to store both the packages you produce and the packages you consume from "remote feeds". This includes both public feeds, such as npmjs.com and nuget.org, and authenticated feeds, such as other Azure DevOps feeds in your organization. Once you've enabled an upstream source, any user connected to your feed can install a package from the remote feed, and your feed will save a copy.
Reference:
https://azure.microsoft.com/en-us/blog/deep-dive-into-azure-artifacts/