Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70special

Microsoft AZ-400 Microsoft Azure DevOps Solutions Exam Practice Test

Page: 1 / 56
Total 559 questions

Microsoft Azure DevOps Solutions Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$42  $139.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36  $119.99
Question 1

You plan to implement a CI/CD strategy for an Azure Web App named az400-11566895-main.

You need to configure a staging environment foraz400-11566895-main.

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

Options:

Question 2

O: 43SIMULATION

Your company plans to implement a new compliance strategy that will require all Azure web apps to be backed up every five hours.

You need to back up an Azure web app named az400-11566895-main every five hours to an Azure Storage accountin your resource group.

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

Options:

Question 3

You plan to deploy a website that will be hosted in two Azure regions.

You need to create an Azure Traffic Manager profile named az40011566895n1-tm in a resource group named RG1lod11566895. The solution must ensure that users will always connect to a copy of the website that is in the same country.

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

Options:

Question 4

You have an Azure DevOps pipeline named Pipeline1.

You need to track the stability of code changes in Pipeline1.

Which metric should you use?

Options:

A.

test pass rate

B.

deployment frequency (DT)

C.

lead time for changes (LT)

D.

time to detect (TTD)

Question 5

You have an Azure Pipelines pipeline named Pipeline1 that has the following YAML definition.

For each of the following statements, select Yes if True. Otherwise select No.

NOTE: Each correct selection is worth one point.

Options:

Question 6

You have an Azure subscription.

You create two Bicep templates named Template1 and Template2 that will be used to create a virtual machine and a website.

You need to create a template named Template3 that will reuse logic from Template1 and Template2.

What should you define first?

Options:

A.

parameters

B.

modules

C.

resources

D.

outputs

Question 7

Task 6

You have an Azure function hosted in an App Service plan named az400-38443478-funct

You need to configure az400 38443478-funcl lo update the functions automatically whenever new code is committedto the main branch of

NOTE: Access to GitHub is blocked in the exam environment. Access to GitHub is NOT required to complete the task successfully.

Options:

Question 8

Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.

After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.

You have an on-premises web server named Server1.

You need to ensure that you can build .NET apps and deploy the apps to Server1 by using Azure Pipelines.

Solution: You deploy a virtual machine scale set and select a custom Ubuntu image that includes the .NET command-line interface (CU) tools.

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 9

Task 2

For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAGthat can be triggered in any region by using Alerts.

The action group must email two users named admin1 @contoso.com and admin2@contoso.com and notify members of the Owner role for the resource.

Use only the common alert schema for notifying the resource owners.

Options:

Question 10

Task 6

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

For Project 1, you need to implement branch merging restrictions to enable squash merge for all changes merged into the main branch.

Options:

Question 11

You need to prepare a network security group (NSG) named az400-9940427-nsg1 to host an Azure DevOps pipeline agent. The solution must allow only the required outbound port for Azure DevOps and deny all other inbound and outbound access to the Internet.

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

Options:

Question 12

You have an Azure functionhosted in an App Service plan named az400-9940427-func1.

You need to configure az400-9940427-func1 to upgrade the functions automatically whenever new code is committed to the master branch of

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

Options:

Question 13

Task 1

You need to ensure that an Azure Web App named az400-38443478-main can retrieve secrets from an Azure key vault named az400-3844J478-kv1 byusing a system managed identity The solution must use the principle of least privilege.

Options:

Question 14

Task 5

For Project1, you need to create a project wiki named Wiki1 that uses the Mermaid syntax to render a diagram A sample of the desired output is stored in C:\Resources\TCPHandshake.png.

Options:

Question 15

Task 7

You need to create a pipeline to deploy a Docker image. The commit must be created in a new branch named azure-pipelines.

The pipeline must be created by using the predefined Docker template.

Options:

Question 16

You need to create and configure an Azure Storage account named az400lod11566895stor in a resource group named RG1lod11566895 to store the boot diagnostics for a virtual machine named VM1.

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

Options:

Question 17

You use GitHub Enterprise to manage source code and deployments.

From GitHub Actions, you create a reusable workflow named workflow 1.

You need to ensure that the secrets defined in the calling workflow are passed to workflow1.

What should you include in the YAML file for the calling workflow?

Options:

A.

B.

C.

D.

Question 18

Task 10

You need to create a variable group named varGroup1 that will contain the following variables and default values:

• username: Userl-48901628

• password: aFpJ2j+6M!

The PASSWORD variable must be secret.

Options:

Question 19

You are designing a build and release pipeline.

You need to implement a shift-left testing strategy for the pipeline.

Which types of tests should you include?

Options:

A.

integration, user acceptance, and regression

B.

unit, smoke, and integration

C.

formal acceptance, user acceptance, and smoke

D.

functional, regression, and formal acceptance

Question 20

Task 12

In Project 1. you need to ensure that you can add the following iterations to items added tc Az-fe Ecards:

• Sprint 1

• Sprint 2

• Sprint 3

Sprint 3 must have a start date of January 1 of next year and an end date of Januan / 31 of next year.

Options:

Question 21

You need to create a notification if the peak average response time of an Azure web app named az400-9940427-main is more than five seconds when evaluated during a five-minute period. The notification must trigger the webhook.

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

Options:

Question 22

You need to ensure that an Azure web app named az400-9940427-main can retrieve secrets from an Azure key vault named az400-9940427-kv1 by using a system managed identity.

Thesolution must use the principle of least privilege.

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

Options:

Question 23

You ate using Agile process methodologies in Azure DevOps.

You need to deploy a dashboard that will provide progress reports for the following work items:

• How long it took to close a work item after it was created.

• How long it took to close a work item after the work was started.

Which type of widget should you use for each work item? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 24

Task 4

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

In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.

The process must use the four-eyes principle and have at least one approval on every iteration.

Options:

Question 25

You need to create a notification if the peak averageresponse time of an Azure web app named az400-9940427-main is more than five seconds when evaluated during a five-minute period. The notification must trigger the webhook.

To complete this task, sign in to the Microsoft Azureportal.

Options:

Question 26

You have an Azure subscription that contains an Azure Kubernetes Service (AKS) instance named AKS1. You collect and analyze metrics for AKS1 by using the Azure Monitor managed service for Prometheus. You need to analyze the performance of AKS1.

Which query language should you use?

Options:

A.

PromQL

B.

KQL

C.

PL/SQL

D.

SparkQL

Question 27

Task 5

You need to create an instance of Azure App Configuration and a feature flag named feature 1. Feature1 must be enabled and must expire in one week.

Options:

Question 28

You need to create an instance of Azure Application Insights named az400-9940427-main and configure the instance to receive telemetry data from an Azure web app named az400-9940427-main.

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

Options:

Question 29

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.

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 30

Task 7

You need to prepare a network security group (NSG) named az400 38443478 nsgl to host an Azure DevOps pipeline agent. The solution must allow only the required outbound port for Azure DevOps and deny all other inbound and outbound access to the Internet

Options:

Question 31

Task 12

You need to create a personal access token (PAT) named Token! that has only the following capabilities

• Read write, andmanage code

• Read and execute builds

• Read releases

Token1 must expire in 60 days.

Options:

Question 32

SIMULATION

You need to create and configure an Azure Storage account named az400lod11566895stor in a resource group named RG1lod11566895 to store the boot diagnostics for avirtual machine named VM1.

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

Options:

Question 33

Task 1

Navigate to select Start Free, and specify the following credentials:

• UserUsefl-42147509@ExamUsers.com

• Password: eWrSalD2!

Use the default setting to sign up for Azure DevOps and create an Azure DevOps organization. Once the organization is created. creates private project named Project1.

You need to add an external userthat has an email address of Usfrr2-42147S09@ExamUsers.com as a stakeholder of the User1 -42147509 Azure DevOps organization.

The user must be added to the most restrictive Azure DevOps group.

To complete this task, sign in to the Azure DevOps portal asUserl-42147509©ExamUsers.com.

Options:

Question 34

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 35

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.

Options:

Question 36

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 37

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 38

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 39

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.

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

Options:

Question 42

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

Options:

Question 45

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.

Options:

Question 46

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.

Options:

Question 47

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 48

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 49

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 50

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.

Options:

Question 51

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.

Options:

Question 52

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.

Options:

Question 53

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.

Options:

Question 54

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.

Options:

Question 55

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.

Options:

Question 56

You use Calendar Versioning (CalVer) for code assets.

You need to store an optional tag of beta as part of the version.

Which part of the version should you use for the tag?

Options:

A.

micro

B.

minor

C.

major

D.

modifier

Question 57

You manage a project by using Azure Boards, and you manage the project code by using Azure Repos. You have a bug work item that has an ID of 123. You need to set the work item state to Resolved. What should you add to the commit message?

Options:

A.

Fixes #123

B.

Resolves #AB-123

C.

#123 completes

D.

#123 Resolved

Question 58

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 NOTbe able to return to it. As a result, these questions will not appear in the review screen.

You plan to create a release pipeline that will deploy Azure resources by using Azure Resource Manager templates. The release pipeline will create the following resources:

Two resource groups

Four Azure virtual machines in one resource group

Two Azure SQL databases in other resource group

You need to recommend a solution to deploy the resources.

Solution:Create a main template that will deploy the resources in one resource group and a nested template that will deploy the resources in the other resource group.

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 59

You store source code in a Git 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?

Options:

A.

certificate authentication

B.

a personal access token (PAT)

C.

a Shared Access Signature (SAS) token

D.

NTLM authentication

Question 60

You have an Azure DevOpsorganization named Contoso.

You need to recommend an authentication mechanism that meets the following requirements:

• Supports authentication from Get

• Minimizes the need to provide credentials during authentication

What should you recommend?

Options:

A.

managed identities in Azure Active Directory (Azure AD)

B.

personal access tokens (PATs) in Azure DevOps

C.

user accounts in Azure Active Directory (Azure AD)

D.

Alternate credentials in Azure DevOps

Question 61

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?

Options:

A.

Project Collection Administrators

B.

Reader

C.

Project Administrators

D.

Contributor

Question 62

You have an Azure DevOps organizationthat contains a project named Project1.

You need to create a published wiki in Project1.

What should you do first?

Options:

A.

Modify the Storage settings of Project1.

B.

In Project1, create an Azure DevOps pipeline.

C.

In Project1, create an Azure DevOps repository.

D.

Modify the Team configuration settings of Project1.

Question 63

You use Azure Artifacts to host NuGet packages that you create.

You need tomake one of the packages available to anonymous users outside your organization. The solution must minimize the number of publication points.

What should you do?

Options:

A.

Create a new feed for the package

B.

Publish the package to a public NuGet repository.

C.

Promote the package to a release view.

D.

Change the feed URL of the package.

Question 64

You are developing an application. The application source has multiple branches.

You make several changes to a branch used for experimentation.

You need to update the main branch to capture the changes made to the experimentation branch and override the history of the Git repository.

Which Git option should you use?

Options:

A.

Rebase

B.

Fetch

C.

MergeE1457D5D1DDCBD40AB3BF70D5D

D.

Push

Question 65

ON NO: 34 DRAG DROP

Your company plans 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 endpoint.

Each component may be used once, more than once, or not at all. You may need to drag the split bar between panes or soon to view content

NOTE: Each correct selection n worth one point.

Options:

Question 66

You have a GitHub repository.

You need to configure Dependabot dependency scanning. The solutionmust meet the following requirements:

• Automatically open a pull request to resolve an alert.

• Automatically open a pull request when a dependency is updated.

What should you enable for each requirement? To answer, drag the appropriate featuresto the correct requirements. Each feature 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.

Options:

Question 67

Your company has an Azure DevOps project,

The source code for the project is stored in an on-premises repository and uses on an on-premises build

server.

You plan to use Azure DevOps to control the build process on the build server by using a self-hosted agent.

You need toimplement the self-hosted agent.

You download and install the agent on the build server.

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

Options:

A.

From Azure, create a shared access signature (SAS).

B.

From the buildserver, create a certificate, and then upload the certificate to Azure Storage.

C.

From the build server, create a certificate, and then upload the certificate to Azure Key Vault.

D.

From DevOps, create a personal access token (PAT).

E.

From the build server, run config.cmd.

Question 68

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 have an approval process that contains a condition. The condition requires that releases be approved by a team leader before they are deployed.

You haw a pokey stating that approvals must occur within eight hours.

You discover that deployments only if the approvals take longer than two hours.

You need to ensure that the deployments only fail if the approvals take longer than hours.

Solution From Post -deployment conditions, you modify the Timeout setting for post-deployment approvals.

Does this meet the goal?

Options:

A.

Yes

B.

NO

Question 69

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 70

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.

Options:

Question 71

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.

Options:

Question 72

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.

Options:

Question 73

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.

Options:

Question 74

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.

Options:

Question 75

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 76

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 77

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.

Options:

Question 78

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 79

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 80

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.

Options:

Question 81

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 82

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.

Options:

Page: 1 / 56
Total 559 questions