ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











You are designing an Azure DevOps strategy for your company's development team.

You suspect that the team's productivity is low due to accumulate technical debt.

You need to recommend a metric to assess the amount of the team's technical debt.

What should you recommend?

A.
the number of code modules in an application
A.
the number of code modules in an application
Answers
B.
the number of unit test failures
B.
the number of unit test failures
Answers
C.
the percentage of unit test failures
C.
the percentage of unit test failures
Answers
D.
the percentage of overall time spent on rework
D.
the percentage of overall time spent on rework
Answers
Suggested answer: D

Explanation:

Technical Debt is the estimated cost to fix code elements issues.

Technical Debt Ratio: Ratio between the cost to develop the software and the cost to fix it. The Technical Debt Ratio formula is:

Remediation cost / Development cost

Which can be restated as:

Remediation cost / (Cost to develop 1 line of code * Number of lines of code)

Reference: http://www.azure365.co.in/devops/3PDevOps-4

You are developing an open source solution that uses a GitHub repository.

You create a new public project in Azure DevOps.

You plan to use Azure Pipelines for continuous build. The solution will use the GitHub Checks API.

Which authentication type should you use?

A.
OpenID
A.
OpenID
Answers
B.
GitHub App
B.
GitHub App
Answers
C.
a personal access token (PAT)
C.
a personal access token (PAT)
Answers
D.
SAML
D.
SAML
Answers
Suggested answer: B

Explanation:

Write permission for the Checks API is only available to GitHub Apps.

Note: Authenticating as a GitHub App lets you do a couple of things:

You can retrieve high-level management information about your GitHub App.

You can request access tokens for an installation of the app.

Reference:

https://docs.github.com/en/rest/guides/getting-started-with-the-checks-api

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.

Your company has a project in Azure DevOps for a new web application.

You need to ensure that when code is checked in, a build runs automatically.

Solution: From the Continuous deployment trigger settings of the release pipeline, you enable the Pull request trigger setting.

Does this meet the goal?

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

Explanation:

In Visual Designer you enable continuous integration (CI) by:

1. Select the Triggers tab.

2. Enable Continuous integration.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-designer

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. Your company has a project in Azure DevOps for a new web application.

You need to ensure that when code is checked in, a build runs automatically.

Solution: From the Pre-deployment conditions settings of the release pipeline, you select After stage. Does this meet the goal?

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

Explanation:

Instead, In Visual Designer you enable continuous integration (CI) by:

1. Select the Triggers tab.

2. Enable Continuous integration.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-designer

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. Your company has a project in Azure DevOps for a new web application.

You need to ensure that when code is checked in, a build runs automatically.

Solution: From the Pre-deployment conditions settings of the release pipeline, you select Batch changes while a build is in progress. Does this meet the goal?

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

Explanation:

Instead, In Visual Designer you enable continuous integration (CI) by:

1. Select the Triggers tab.

2. Enable Continuous integration.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-designer

You are creating a build pipeline in Azure Pipelines.

You define several tests that might fail due to third-party applications.

You need to ensure that the build pipeline completes successfully if the third-party applications are unavailable. What should you do?

A.
Configure the build pipeline to use parallel jobs
A.
Configure the build pipeline to use parallel jobs
Answers
B.
Configure flaky tests
B.
Configure flaky tests
Answers
C.
Increase the test pass percentage
C.
Increase the test pass percentage
Answers
D.
Add the Requirements quality widget to your dashboard
D.
Add the Requirements quality widget to your dashboard
Answers
Suggested answer: D

Explanation:

Requirements traceability is the ability to relate and document two or more phases of a development process, which can then be traced both forward or backward from its origin. Requirements traceability help teams to get insights into indicators such as quality of requirements or readiness to ship the requirement. A fundamental aspect of requirements traceability is association of the requirements to test cases, bugs and code changes.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/test/requirements-traceability

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. Your company has a project in Azure DevOps for a new web application.

You need to ensure that when code is checked in, a build runs automatically.

Solution: From the Triggers tab of the build pipeline, you select Enable continuous integration.

Does this meet the goal?

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

Explanation:

In Visual Designer you enable continuous integration (CI) by:

1. Select the Triggers tab.

2. Enable Continuous integration.

A continuous integration trigger on a build pipeline indicates that the system should automatically queue a new build whenever a code change is committed.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-designer

You have an Azure DevOps organization named Contoso and an Azure DevOps project named Project1.

You plan to use Microsoft-hosted agents to build container images that will host full Microsoft .NET Framework apps in a YAML pipeline in Project1. What are two possible virtual machine images that you can use for the Microsoft-hosted agent pool? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

A.
vs2017-win2016
A.
vs2017-win2016
Answers
B.
ubuntu-16.04
B.
ubuntu-16.04
Answers
C.
win1803
C.
win1803
Answers
D.
macOS-10.13
D.
macOS-10.13
Answers
E.
vs.2015-win2012r2
E.
vs.2015-win2012r2
Answers
Suggested answer: B, C

Explanation:

The Microsoft-hosted agent pool provides 7 virtual machine images to choose from:

Ubuntu 16.04 (ubuntu-16.04)

Windows Server 1803 (win1803) - for running Windows containers

Visual Studio 2019 Preview on Windows Server 2019 (windows-2019)

Visual Studio 2017 on Windows Server 2016 (vs2017-win2016)

Visual Studio 2015 on Windows Server 2012R2 (vs2015-win2012r2)

macOS X Mojave 10.14 (macOS-10.14)

macOS X High Sierra 10.13 (macOS-10.13)

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops

Your company has a project in Azure DevOps.

You need to ensure that when there are multiple builds pending deployment, only the most recent build is deployed. What should you use?

A.
deployment conditions
A.
deployment conditions
Answers
B.
deployment queue settings
B.
deployment queue settings
Answers
C.
release gates
C.
release gates
Answers
D.
pull request triggers
D.
pull request triggers
Answers
Suggested answer: B

Explanation:

The options you can choose for a queuing policy are:

Number of parallel deployments

If you specify a maximum number of deployments, two more options appear:

- Deploy all in sequence

- Deploy latest and cancel the others: Use this option if you are producing releases faster than builds, and you only want to deploy the latest build.

Incorrect Answers:

C: Release gates allow automatic collection of health signals from external services, and then promote the release when all the signals are successful at the same time or stop the deployment on timeout. Typically, gates are used in connection with incident management, problem management, change management, monitoring, and external approval systems.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/process/stages?tabs=classic&view=azure-devops#queuing-policies

Your company develops a client banking application that processes a large volume of data.

Code quality is an ongoing issue for the company. Recently, the code quality has deteriorated because of an increase in time pressure on the development team. You need to implement static code analysis.

During which phase should you use static code analysis?

A.
integration testing
A.
integration testing
Answers
B.
staging
B.
staging
Answers
C.
production release
C.
production release
Answers
D.
build
D.
build
Answers
Suggested answer: D

Explanation:


Total 482 questions
Go to page: of 49