ExamGecko
Home Home / Microsoft / AZ-400

Microsoft AZ-400 Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











You are using GitHub as a source code repository.

You create a client-side get hook on the commit-msg event. The hook requires that each commit message contain a custom work item tag.

You need to make a commit that does not have a work item tag.

Which get commit parameter should you use?

A.
--squash
A.
--squash
Answers
B.
--no-verify
B.
--no-verify
Answers
C.
--message ''
C.
--message ''
Answers
D.
--no-post-rewrite
D.
--no-post-rewrite
Answers
Suggested answer: B

Explanation:

The commit-msg hook is invoked by git-commit and git-merge, and can be bypassed with the --no-verify option.

Reference:

https://git-scm.com/docs/githooks

You manage build pipelines and deployment pipelines by using Azure DevOps.

Your company has a team of 500 developers. New members are added continually to the team.

You need to automate the management of users and licenses whenever possible.

Which task must you perform manually?

A.
modifying group memberships
A.
modifying group memberships
Answers
B.
adding users
B.
adding users
Answers
C.
assigning entitlements
C.
assigning entitlements
Answers
D.
procuring licenses
D.
procuring licenses
Answers
Suggested answer: D

Explanation:

Incorrect Answers:

A: You can seamlessly replace existing solutions with group-based licensing to more easily manage licenses in Azure DevOps. You can use Group rules.

C: Member Entitlement Management APIs allow managing Entitlements that include -

License

Extensions

Project/Team memberships

Reference:

https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/migrate-to-group-based-resource-management?view=vsts&tabs=new-nav

https://docs.microsoft.com/en-us/rest/api/azure/devops/memberentitlementmanagement/?view=azure-devops-rest-5.0

You store source code in a Get repository in Azure Repos. You use a third-party continuous integration (CI) tool to control builds. What will Azure DevOps use to authenticate with the tool?

A.
certificate authentication
A.
certificate authentication
Answers
B.
a personal access token (PAT)
B.
a personal access token (PAT)
Answers
C.
a Shared Access Signature (SAS) token
C.
a Shared Access Signature (SAS) token
Answers
D.
NTLM authentication
D.
NTLM authentication
Answers
Suggested answer: B

Explanation:

Personal access tokens (PATs) give you access to Azure DevOps and Team Foundation Server (TFS), without using your username and password directly.

Reference: https://docs.microsoft.com/en-us/azure/devops/repos/git/auth-overview

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 recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

The builds must access an on-premises dependency management system.

The build outputs must be stored as Server artifacts in Azure DevOps.

The source code must be stored in a Get repository in Azure DevOps.

Solution: Configure an Octopus Tentacle on an on-premises machine. Use the Package Application task in the build pipeline. Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: A

Explanation:

Octopus Deploy is an automated deployment server that makes it easy to automate deployment of ASP.NET web applications, Java applications, NodeJS application and custom scripts to multiple environments. Octopus can be installed on various platforms including Windows, Mac and Linux. It can also be integrated with most version control tools including VSTS and GIT. When you deploy software to Windows servers, you need to install Tentacle, a lightweight agent service, on your Windows servers so they can communicate with the Octopus server. When defining your deployment process, the most common step type will be a package step. This step deploys your packaged application onto one or more deployment targets. When deploying a package you will need to select the machine role that the package will be deployed to.

Reference:

https://octopus.com/docs/deployment-examples/package-deployments https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models

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 recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

The builds must access an on-premises dependency management system.

The build outputs must be stored as Server artifacts in Azure DevOps.

The source code must be stored in a Get repository in Azure DevOps.

Solution: Install and configure a self-hosted build agent on an on-premises machine. Configure the build pipeline to use the Default agent pool. Include the Java Tool Installer task in the build pipeline.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: A

Explanation:


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 recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

The builds must access an on-premises dependency management system.

The build outputs must be stored as Server artifacts in Azure DevOps.

The source code must be stored in a Get repository in Azure DevOps.

Solution: Configure the build pipeline to use a Hosted VS 2019 agent pool. Include the Java Tool Installer task in the build pipeline.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

Instead use Octopus Tentacle.

Reference:

https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models

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 recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

The builds must access an on-premises dependency management system.

The build outputs must be stored as Server artifacts in Azure DevOps.

The source code must be stored in a Get repository in Azure DevOps.

Solution: Configure the build pipeline to use a Hosted Ubuntu agent pool. Include the Java Tool Installer task in the build pipeline.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

Instead use Octopus Tentacle.

Reference: https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models

Your company uses a Get repository in Azure Repos to manage the source code of a web application. The master branch is protected from direct updates. Developers work on new features in the topic branches.

Because of the high volume of requested features, it is difficult to follow the history of the changes to the master branch.

You need to enforce a pull request merge strategy. The strategy must meet the following requirements:

Consolidate commit histories.

Merge the changes into a single commit.

Which merge strategy should you use in the branch policy?

A.
squash merge
A.
squash merge
Answers
B.
fast-forward merge
B.
fast-forward merge
Answers
C.
Get fetch
C.
Get fetch
Answers
D.
no-fast-forward merge
D.
no-fast-forward merge
Answers
Suggested answer: A

Explanation:

Squash merging is a merge option that allows you to condense the Get history of topic branches when you complete a pull request. Instead of each commit on the topic branch being added to the history of the default branch, a squash merge takes all the file changes and adds them to a single new commit on the default branch.

A simple way to think about this is that squash merge gives you just the file changes, and a regular merge gives you the file changes and the commit history. Note: Squash merging keeps your default branch histories clean and easy to follow without demanding any workflow changes on your team. Contributors to the topic branch work how they want in the topic branch, and the default branches keep a linear history through the use of squash merges. The commit history of a master branch updated with squash merges will have one commit for each merged branch. You can step through this history commit by commit to find out exactly when work was done.

Reference:

https://docs.microsoft.com/en-us/azure/devops/repos/git/merging-with-squash

Your company uses cloud-hosted Jenkins for builds.

You need to ensure that Jenkins can retrieve source code from Azure Repos.

Which three actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Create a webhook in Jenkins.
A.
Create a webhook in Jenkins.
Answers
B.
Add the Team Foundation Server (TFS) plug-in to Jenkins.
B.
Add the Team Foundation Server (TFS) plug-in to Jenkins.
Answers
C.
Add a personal access token to your Jenkins account.
C.
Add a personal access token to your Jenkins account.
Answers
D.
Create a personal access token (PAT) in your Azure DevOps account.
D.
Create a personal access token (PAT) in your Azure DevOps account.
Answers
E.
Create a service hook in Azure DevOps.
E.
Create a service hook in Azure DevOps.
Answers
Suggested answer: B, C, D

Explanation:

B: Jenkins requires a plug-in to connect to TFS and check for updates to a project.

Jenkins’ built-in Get Plugin or Team Foundation Server Plugin can poll a Team Services repository every few minutes and queue a job when changes are detected.

C: Use Azure DevOps/ Visual Studio Team Services to create a Personal access token.

D: After you have generated credentials using Visual Studio Team Services, you need to use those credentials in Jenkins.

Reference:

http://www.aisoftwarellc.com/blog/post/how-to-setup-automated-builds-using-jenkins-and-visual-studio-team-foundation-server/2044

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?

A.
Bullseye Coverage
A.
Bullseye Coverage
Answers
B.
JUnit
B.
JUnit
Answers
C.
JaCoCo
C.
JaCoCo
Answers
D.
MSTest
D.
MSTest
Answers
Suggested answer: C

Explanation:

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.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results

Total 482 questions
Go to page: of 49