Summer Sale- Special Discount Limited Time 65% Offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

Microsoft AZ-400 Microsoft Azure DevOps Solutions Exam Practice Test

Page: 1 / 56
Total 559 questions

Microsoft Azure DevOps Solutions Questions and Answers

Question 1

In Azure DevOps, you create Project3.

You need to meet the requirements of the project.

What should you do first?

Options:

A.

From Azure DevOps, create a service endpoint.

B.

From Sonar Qube, obtain an authentication token.

C.

From Azure DevOps, modify the build definition.

D.

From Sonar Qube , create a project.

Question 2

You need to configure Azure Automation for the computers in Pool7.

Whichthree actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them m the correct order.

Question # 2

Options:

Question 3

You add the virtual machines as managed nodes in Azure Automation State Configuration.

You need to configure the computer in Group7.

What should you do?

Options:

A.

Run the Register-AzureRmAutomationDscNodeAzure Powershell cmdlet.

B.

Modify the ConfigurationMode property of the Local Configuration Manager (LCM).

C.

Install PowerShell Core.

D.

Modify the RefreshMode property of the Local Configuration Manager (LCM).

Question 4

You need to implement Project6.

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 m the correct order.

Question # 4

Options:

Question 5

How should you configure the filters for the Project5 trigger? To answer, select the appropriate option in the answer area.

NOTE: Each correct selectionis worth one point.

Question # 5

Options:

Question 6

You need to implement the code flow strategy for Project2 in Azure DevOps.

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 in the correct order.

Question # 6

Options:

Question 7

You need to configure Azure Automation for the computer in Group7.

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.

Question # 7

Options:

Question 8

You need to implement the code flow strategy for Project2 in Azure DevOps.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list ofactions to the answer area and arrange them in the correct order.

Question # 8

Options:

Question 9

You need to recommend a procedure to implement the build agent for Project1.

Which three actions should you recommend be performed in sequence? To answer, move the appropriate actions from the list of actions tothe answer area and arrange them in the correct order.

Question # 9

Options:

Question 10

You need to implement Project4.

What should you do first?

Options:

A.

Add the FROM instruction in the Dockerfile file.

B.

Adda Copy and Publish Build Artifacts task to the build pipeline.

C.

Add a Docker task to the build pipeline.

D.

Add the MAINTAINER instruction in the Dockerfile file.

Question 11

Where should the build and release agents for the investment planning application suite run? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 11

Options:

Question 12

HOTSPOT

You are using PowerShell to administer Azure Log Analytics workspaces.

You need to list the available workspaces and their properties.

How should you complete the command? To answer, select the appropriate optionsin the answer area.

NOTE: Each correct selection is worth one point.

Question # 12

Options:

Question 13

You are using GitHub asa source code repository.

You create a client-side Git 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 git commit parameter shouldyou use?

Options:

A.

--squash

B.

--no-verify

C.

--message ''

D.

--no-post-rewrite

Question 14

You have a project in Azure DevOps.

You plan to deploy a self-hosted agent by using an unattended configuration script.

Which two values should you define in the configuration script? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth onepoint.

Options:

A.

authorization credentials

B.

the project name

C.

the deployment group name

D.

the organization URL

E.

the agent pool name

Question 15

How should you complete the code to initialize App Center in the mobile application? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection a worth one point.

Question # 15

Options:

Question 16

You need to configure a cloud service to store the secrets required by the mobile applications to call the share.

What should you include in thesolution? To answer, select the appropriate options m the answer area, NOTE: Each correct selection is worth one point.

Question # 16

Options:

Question 17

How should youconfigure the release retention policy for the investment planning applications suite? To answer, select the appropriate options in the answer area.

NOTE:Each correct selection is worth one point.

Question # 17

Options:

Question 18

How should you confrere the release retention policy for the investment planning depletions suite? To answer, select the appropriate options in the answer area.

NOTE: Eachcorrect selection is worth one point.

Question # 18

Options:

Question 19

What should you use to implementthe code quality restriction on the release pipeline for the investment planning applications suite?

Options:

A.

a trigger

B.

a pre deployment approval

C.

a post-deployment approval

D.

a deployment gate

Question 20

HOTSPOT

You have an Azure virtual machine named VM1 that runs Linux.

You plan to deploy the Desired State Configuration (DSC) extension to VM1.

You need to grant the Log Analytics agent the appropriate directory permissions.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth onepoint.

Question # 20

Options:

Question 21

To resolve the current technical issue, what should you do to theRegister-AzureRmAutomationDscNodecommand?

Options:

A.

Change the value of theConfigurationModeparameter.

B.

Replace theRegister-AzureRmAutomationDscNodecmdlet withRegister-AzureRmAutomationScheduledRunbook

C.

Add theAllowModuleOverwriteparameter.

D.

Add theDefaultProfileparameter.

Question 22

Which branching strategy should you recommend for the investment planning applications suite?

Options:

A.

release isolation

B.

main only

C.

development isolation

D.

feature isolation

Question 23

ION NO: 7

You have Azure Pipelines and GitHub integrated as a source code repository.

The build pipeline has continuous integration enabled.

You plan to trigger an automated build whenever code changes are committed to the repository.

You need to ensure that the system will wait until a build completes before queuing another build.

What should you implement?

Options:

A.

path filters

B.

batch changes

C.

scheduled builds

D.

branch filters

Question 24

Which package feed access levels should be assigned to the Developers and Team Leaders groups for the investment planning applications suite? To answer, drag the appropriate access levels to the correct groups. Each access level 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.

Question # 24

Options:

Question 25

Task 4

Youneed to configure a virtual machine template in a DevTest Labs environment named az400-38443478-dtl1. The operating system must be based on Windows Server 2016 Datacenter. Virtual machines created from the DevTest Lab must include the Selenium tool and theGoogle Chrome browser.

Options:

Question 26

Task 11

You need to create a new artifact feed named artifact_feed.

Only 10 versions of the packages must be retained, and downloaded packages must be retained for 90 days.

Options:

Question 27

You have a GitHub repository that contains the code for an app named App1.

App1 depends on a library of functions from a repository at https://github.com/contoso/afeed.

You need to keep a clone of a feed repository as a subdirectory of the App1 repository.

How should you complete the Git command? 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.

Question # 27

Options:

Question 28

Task 3

You need to ensure that an Azure Web App named az400-38443478-matn supports rolling upgrades The solution must ensure that only 10 percent of users who connect to az400-38443478 main use updated versions of the app. The solution must minimize administrative effort.

Options:

Question 29

You need to ensure that an Azure web app named az400-9940427-main supports rolling upgrades. The solution must ensure that only 10 percent of users who connect to az400-9940427-main use update versions of the app.

The solution must minimize administrative effort.

To complete this task, sign in to the Microsoft Azure portal.

Options:

Question 30

You need to ensure that Microsoft Visual Studio 2017 can remotelyattach to an Azure Function named fa-11566895.

To complete this task, sign in to the Microsoft Azure portal.

Options:

Question 31

You need to configure a virtual machine named VM1 to securely access stored secrets in an Azure Key Vault named az400-11566895-kv.

To complete this task, sign in to the Microsoft Azure portal.

Options:

Question 32

Task 7

Initialize the default main branch, if it does not exist already

In the User 1-42147509 organization, you need to install the Microsoft Security DevOps extension.

Next, create a new starter pipeline named starter1 that will use the following starter code.

Question # 32

Ensure that starter! includes a task that executes the extension and uses the following input*:

• Command: run

• Policy aruredevops

• Publish: true

Save the pipeline to anew branch named starter

Options:

Question 33

Task 3

Initialize the default main branch, if it floes not already exist.

You need to protect the main branch of the Project l repository to ensure that all changes are processed by using a pull request that has traceability to a work item.

Options:

Question 34

Task 8

You need to ensure that the https://contoso.com/statushook webhookis called every time a repository named az40038443478acr 1 receives a new version of an image named dotnetapp

Options:

Question 35

You plan to deploy a new database environment. The solution must meet the technical requirements. You need to prepare the database for the deployment. How should you formatthe export?

Options:

A.

NDF

B.

MDF

C.

BACPAC

D.

DACPAC

Question 36

You need to configure the alert for VM1.The solution must meet the technical requirements.

Which two settings should you configure? To answer, select the appropriate settings in the answer area.

NOTE:Each correct selection is worth one point.

Question # 36

Options:

Question 37

You need to meet the technical requirements for controlling access to Azure DevOps.

What should you use?

Options:

A.

Azure Multi-Factor Authentication (MFA)

B.

on-premises firewall rules

C.

conditional access policies in Azure AD

D.

Azure role-based access control (Azure RBAC)

Question 38

You need to the merge the POC branch into the main branch. The solution must meet the technical requirements.

Which command should you run?

Options:

A.

git push

B.

git merge --squash

C.

git merge --allow-unrelated-histories

D.

git rebase

Question 39

You are configuring the Azure DevOps dashboard. The solution must meet the technical requirements.

Which widget should you use for each metric? To answer, drag the appropriate widgets to the correct metrics. Each widgetmay 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.

Question # 39

Options:

Question 40

You need to perform the GitHub code migration. The solution must support the planned changes for the DevOps environment.

What should you use?

Options:

A.

git clone

B.

GitHub Importer

C.

Import repository in Azure Repos

D.

git-tfs

Question 41

You need to configure authentication for App1. The solution must support the planned changes.

Which three actions should you perform in sequence? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Question # 41

Options:

Question 42

You need to replace the existing DevOps tools to support the planned changes.

What should you use? To answer, drag the appropriate tools to the correct targets. Each tool may be usedonce, 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.

Question # 42

Options:

Question 43

You need to meet the technical requirements for monitoring App1.

What should you use?

Options:

A.

Splunk

B.

Azure Application Insights

C.

Azure Advisor

D.

App Service logs

Question 44

You need to configure Azure Pipelines to control App2 builds.

Which authentication method should you use?

Options:

A.

Windows NTLM

B.

certificate

C.

SAML

D.

personal access token (PAT)

Question 45

You need to execute inline testing of an Azure DevOps pipeline that uses a Docker deploymentmodel. The solution must prevent the results from being published to the pipeline.

What should you use for the inline testing?

Options:

A.

a single stage Dockerfile

B.

an Azure Kubernetes Service (AKS) pod

C.

a multi-stage Dockerfile

D.

a Docker Compose file

Question 46

You use an Azure Pipelines pipeline to build and test an app named App1.

Your company's development department works in the feature branches.

You need to ensure that a pull request will merge into the main branch only when testing covers more than 90 percent of the code,

What should you do?

Options:

A.

Create a Publish Test Results task.

B.

Configure a branch policy for the main branch.

C.

Create a code coverage configuration YAML file.

D.

Configure a branch policy for thefeature branches.

Question 47

You have an Azure subscription that uses Azure Automation State Configuration to manage the configuration of virtual machines.

You need to identify which nodes are noncompliant.

How should you complete the query? 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.

Question # 47

Options:

Question 48

Your company develops an app for OS. All users ofthe app have devices that are members of a private distribution group in Microsoft Visual Studio App Center.

You plan to distribute a new release of the app.

You need to identify which certificate file you require to distribute the new release from App Center.

Which file type should you upload to App Center?

Options:

A.

.cer

B.

.pvk

C.

.pfx

D.

.p12

Question 49

Your company has a project in Azure DevOps.

You plan to create a release pipeline that will deploy resources by using Azure Resource Manager templates. The templates will reference secrets stored in Azure Key Vault.

You need to recommend a solution for accessing the secrets stored in the key vault during deployments. The solution must use the principle of least privilege.

What should you include in the recommendation? To answer, drag the appropriate configurations to the correct targets. Each configuration 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 isworth one point.

Question # 49

Options:

Question 50

Your companyplans to deploy an application to the following endpoints:

Ten virtual machines hosted in Azure

Ten virtual machines hosted in an on-premises data center environment

All the virtual machines have the Azure Pipelines agent.

You need to implement a release strategy for deploying the application to the endpoints.

What should you recommend using to deploy the application to the endpoints? To answer, drag the appropriate components to the correct endpoints. Each component may be used once, more than once, ornot 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.

Question # 50

Options:

Question 51

Your team uses an agile development approach.

You need to recommend a branching strategy for the team’s Git repository. The strategymust meet the

following requirements.

Provide the ability to work on multiple independent tasks in parallel.

Ensure that checked-in code remains in a releasable state always.

Ensure that new features can be abandoned at any time.

Encourage experimentation.

What should you recommend?

Options:

A.

a single long-running branch

B.

multiple long-running branches

C.

a single fork per team member

D.

a single-running branch with multiple short-lived topic branches

Question 52

Your company is building a new solution inJava.

The company currently uses a SonarQube server to analyze the code of .NET solutions.

You need to analyze and monitor the code quality of the Java solution.

Which task types should you add to the build pipeline?

Options:

A.

Octopus

B.

Chef

C.

Maven

D.

Grunt

Question 53

You use release pipelines in Azure Pipelines to deploy an app. Secrets required by the pipeline are stored as pipeline variables. Logging of commands is enabled for the Azure Pipelines agent.

You need to prevent the valuesof the secrets from being logged.

What should you do?

Options:

A.

Apply a prefix of secret to the name of the variables.

B.

Pass the secrets on the command line instead of in the pipeline variables.

C.

Echo the values of the secrets to the command line.

D.

Storethe secrets in the environment variables instead of the pipeline variables.

Question 54

You have an Azure subscription that uses Azure Boards and Azure Repos.

You have GitHub repositories.

You need to ensure that all activity in the repositories is traced by using Azure Boards. The solution must minimize development effort

What should you use?

Options:

A.

work item linking

B.

a project backlog

C.

Application Insights in Azure Monitor

D.

Delivery Plans

Question 55

You have a project in Azure DevOps named Project1. Project1 contains a published wiki.

You need to change the order of pages in the navigation pane of the published wiki in the Azure DevOps portal.

What should you do?

Options:

A.

At the root of the wiki, create a file named order that defines the page hierarchy.

B.

At the root of the wiki, create a file named wiki.md that defines the page hierarchy.

C.

Rename the pages in the navigation pane.

D.

Drag and drop the pages in the navigation pane.

Question 56

You have a project in Azure DevOps namedProject that contains a Kanban board named Board1.

You create a Microsoft Teams channel and add the Azure Boards app to the channel.

You need to ensure that users can create work items in Board1 from Microsoft Teams.

Which command should you run?

Options:

A.

@azure boards sign in

B.

@azure boards link

C.

@azure boards create

D.

@azure boards subscriptions

Question 57

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unit 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 if the review screen.

You use an Azure Pipelines pipeline to build and release web apps.

You need to configure the pipeline to meet the following requirements:

• Only run when there is a change in the/webapp folder.

• Only run when a pr is created.

Solution: You configure the pipeline definition by using the following elements.

Question # 57

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 58

You have an Azure subscription that contains an Azure key vault named Vault1. an Azure pipeline named Pipeline1, and an Azure SQL database named DB1.

Pipeline1 is used to deploy an app that will authenticate to DB1 by using a password.

You need to store the password in Vault1. The solution must ensure that the password can be accessed by Pipeline1.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 59

You manage the Git repository for a largeenterprise application.

You need to minimize the data size of the repository.

How should you complete the commands? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 59

Options:

Question 60

You are configuring Azure Pipelines for three projectsin Azure DevOps as shown in the following table.

Question # 60

Which version control system should you recommend for each project? To answer, drag the appropriate version control systems to the correct projects. Each version control system may be used once, morethan 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.

Question # 60

Options:

Question 61

You have a GitHub repository named Repo1.

You plan to implement continuous integration and continuous delivery (CI/CD) by using GitHub Actions.

You need to create a workflow.

Which four 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.

Question # 61

Options:

Question 62

You are integrating Azure Pipelines and Microsoft Teams.

You install the Azure Pipelines app in Microsoft Teams.

You have an Azure DevOps organization named Contoso that contains aproject name Project1.

You subscribe to Project1 in Microsoft Teams.

You need to ensure that you only receive events about failed builds in Microsoft Teams.

What should you do first?

Options:

A.

From Microsoft Teams, run @azure pipelines subscribehttps://dev.azure.com/Contoso/Project1.

B.

From Azure Pipelines, add a Publish Build Artifacts task to Project1.

C.

From Microsoft Teams, run @azure pipelines subscriptions.

D.

From Azure Pipelines, enable continuous integration for Project1.

Question 63

You manage code by using GitHub.

You plan to use Dependabot to scan for code dependencies.

You need to identify when scanning will be triggered automatically.

Which two actions will trigger a scan? Each correct answer presents a complete solution.

NOTE: Each correct solution is worth one point

Options:

A.

The dependency graph of a repository changes.

B.

Any commit is pushed.

C.

A branch is forked.

D.

A pull request is created.

E.

A new advisory is added.

Question 64

You have a GitHub organization that contains three users named User 1. User2. and User3. You have a project that contains a repository named repo1. You need to configure permissions for repo1. The solutionmust meet the following requirements:

• Ensure that User 1 can actively push to repo1.

• Ensure that Usef2 can manage issues and pull requests for repo1.

• Ensure that User3 can manage repo1.

• Prevent User3 from accessing sensitive data in repo1.

Which role should you assign to each use?

Question # 64

Options:

Question 65

You have an Azure DevOps organization named Contoso and anAzure subscription.

You use Azure DevOps to build and deploy a web app named App1. Azure Monitor is configured to generate an email notification in response to alerts generated whenever App1 generates a server-side error.

You need to receive notificationsin Microsoft Teams whenever an Azure Monitor alert is generated.

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

NOTE: Each correct selection is worth one point.

Options:

A.

Create an Azure logic app that has an HTTP request trigger.

B.

Modify the Diagnostics settings in Azure Monitor.

C.

Modify an action group in Azure Monitor.

D.

Create an Azure Monitor workbook.

E.

Create an Azure logic app that has an Azure DevOps trigger.

Question 66

You are developing an Azure Pipelines pipeline.

You need to configure a check in the pipeline that will query Azure Boards to ensure that there are no active work item issues before the pipeline deploys a build to production.

Which type of check should you implement?

Options:

A.

post-deployment approvals

B.

manual validations

C.

pre-deployment gates

D.

pre-deployment approvals

Question 67

Your company uses GitHub for source control. The company has a team that performs code reviews.

You need to automate the assignment of the code reviews. The solution must meet the following requirements:

Prioritize the assignment of code reviews to team members who havethe fewest outstanding assignments.

Ensure that each team member performs an equal number of code reviews in any 30-day period.

Prevent the assignment of code reviews to the team leader.

Which two actions should you perform? Each correct answer presentspart of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Clear Never assign certain team members.

B.

Select If assigning team members, don’t notify the entire team.

C.

Select Never assign certain team members.

D.

Set Routing algorithm toRound robin.

E.

Set Routing algorithm to Load balance.

Question 68

You have an Azure virtual machine that is monitored by using Azure Monitor.

The virtual machine has the Azure Log Analytics agent installed.

You plan to deploy the Service Map solution from Azure Marketplace.

What should you deploy to the virtual machine to support the Service Map solution?

Options:

A.

the Telegraf agent

B.

the Azure Monitor agent

C.

the Dependency agent

D.

the Windows Azure diagnostics extension (WAD)

Page: 1 / 56
Total 559 questions