Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Microsoft AZ-400 Microsoft Azure DevOps Solutions Exam Practice Test

Demo: 76 questions
Total 628 questions

Microsoft Azure DevOps Solutions Questions and Answers

Question 1

You have an Azure subscription.

The development department at your company plans to build web apps that will use multiple Azure resources. You need to recommend a development solution that meets the following requirements:

• Provides a development environment for each developer

• Supports the use of custom sandbox environments for testing

• Ensures that the environments can be embedded into CI/CD pipelines

• Minimizes administrative effort

What should you include in the recommendation?

Options:

A.

Azure Virtual Desktop

B.

Windows 365 Cloud PC

C.

Azure Deployment Environments

D.

Microsoft Dev Box

Question 2

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 3

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 4

You have a GitHub organization.

You ate creating a GitHub Actions workflow.

You need to perform authenticated AP1 requests by using a GitHub app name App1.

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.

Options:

Question 5

You have a GitHub organization that contains a repository and an organizational secret named DB.Credential. You need to build a workflow that will configure a server by using PowerShell and DB.Credential. How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 6

You have several apps that use an Azure SQLDatabase named db1.

You need to ensure that queries to db1 are tuned by Azure over time. The solution must only apply to db1.

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

Options:

Question 7

You have an Azure DevOps organization.

You need to recommend a solution for managing packages. The solution must meet the following requirements:

• Host private packages.

• Publish packages to a feed.

• Support the creation and publishing of new packages.

• Ensure that the package feed can be consumed by Azure DevOps pipelines.

What should you include in the recommendation?

Options:

A.

Azure DevTest Labs

B.

a Git repository in Azure Repos

C.

Azure Container Instances

D.

Azure Artifacts

Question 8

Task 9

In Project1, you need to create a variable group named varGroup1 that will contain the following variables:

serverNane: server1 dbName: db1

Options:

Question 9

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 10

You have a project in Azure DevOps that contains a pipeline named Pipeline1 and two teams named Team! and Team2.

You need to ensure that only the members of Team1 can update the passwords used in Pipeline1. The solution must meet the following requirements:

• Prevent the members of Team2 from viewing the passwords.

• Minimize administrative effort.

What should you use to store the passwords?

Options:

A.

Azure Key Vault

B.

Azure App Configuration secrets

C.

secret variables

D.

secure files

Question 11

Task 6

For Project 1. you need to create a service connection that can be used to deploy resources to the RGHod489Q1628 resource group.

The service connection must use the ManagedJd1 identity and workload identity federation.

Options:

Question 12

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 13

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.

Options:

Question 14

Task 8

In Project1, you need to create a service hook that will integrate with Azure Storage.

Use the queue1 queue from the storage48901628 storage account.

Options:

Question 15

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 16

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 17

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 18

You manage a website that uses an Azure SQL Database named db1 in a resource group named RG1lod11566895.

You need tomodify the SQL database to protect against SQL injection.

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

Options:

Question 19

You have a GitHub repository named repol.

You commit a change to repol.

You need to update the commit message. The solution must ensure that the version number remains the same.

Which command should you run?

Options:

A.

git commit --patch

B.

git commit --amend

C.

git status --renames

D.

git restore --patch

Question 20

You plane to store signed images in anAzure Container Registry instance named az4009940427acr1.

You need to modify the SKU for az4009940427acr1 to support the planned images. The solution must minimize costs.

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

Options:

Question 21

You have a web app that connects to an Azure SQL Database named db1.

You need to configure db1 to send Query Store runtime statistics to Azure Log Analytics.

To complete this task, signin to the Microsoft Azure portal.

Options:

Question 22

You are designing a build and release pipeline.

You need to implement continuous integration and continuous delivery (CI/CD) for the pipeline

Which automated activities should you include in the pipeline?

Options:

A.

unit tests, integration tests, and acceptance tests

B.

functional tests, production tests, and production release

C.

functional tests, regression tests, and formal assessments

D.

unit tests, production release, and production deployment

Question 23

You have an Azure DevOps organization.

You are designing an automated security and compliance solution that will use GitHub Advanced Security for Azure DevOps.

You need to ensure that security checks and compliance requirements are enforced automatically throughout the development lifecycle.

Which two features should you include in the solution? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

automated approvals

B.

code linting

C.

secret scanning push protection

D.

dependency scanning

E.

pull request annotation scanning

Question 24

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 “https://contoso.com/notify” webhook.

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

Options:

Question 25

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 26

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 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 plan to deploy a runbook that will create Azure AD user accounts.

You need to ensure that runbooks can run the AzurePowerShell cmdlets for Azure Active Directory.

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

Options:

Question 29

Task 10

For Project1, you need to ensure that artifacts, symbols, and attachments are retained for 60 days.

Options:

Question 30

You have a management group that contains four Azure subscriptions. Each subscription contains four resource groups.

You develop a new web app named App1.

You plan to deploy an instance of App1 to each resource group.

You need to create a Bicep template that will be used to deploy Appl. The solution must meet the following requirements:

• The name of each App1 instance must be uniquely scoped to each subscription and resource group.

• The name of each App Service plan used to host App1 must be uniquely scoped to the resource group.

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

NOTE: Each correct selection is worth one point.

Options:

Question 31

You are designing a versioning strategy for Git-based packages

You plan to use a Semantic Versioning (SemVer)-based strategy.

You need to identify when to change the build version.

What should you identify for each scenario? To answer, drag the appropriate versions to the correct scenarios. Each version 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 32

You have a Bicep file named Main.bicep.

You run the following command.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented.

NOTE: Each correct selection is worth one point.

Options:

Question 33

Task 8

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

In Project 1, you need to create a new Azure Pipelines YAML pipeline by using the ASP.NET template.

The pipeline must use Azure Repos as the hosting platform and must be created in a new branch named azure-pipelines.

Options:

Question 34

You have an Azure DevOps release pipeline named Pipeline1. You plan to use Pipelinel to deploy infrastructure as code (laC) resources to Azure. You need to create templates to define which resources to deploy. Which template formats should you use?

Options:

A.

Azure Resource Manager (ARM) only

B.

Bicep only

C.

XML only

D.

Azure Resource Manager (ARM) and Bicep only

E.

Azure Resource Manager (ARM), Bicep. and XML

Question 35

You have a Microsoft Entra tenant named Tenant! that is linked to an Azure subscription named Sub1.

You need to deploy five Azure subscriptions by using a Bicep file. The solution must ensure that the subscriptions are linked to Tenant1.

Which target scope should you use?

Options:

A.

resourceGroup

B.

subscription

C.

tenant

D.

ManagementGroup

Question 36

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 37

You have a web app that connects to an Azure SQL Database named db1.

You need to configure db1 to send Query Store runtime statistics to Azure Log Analytics.

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

Options:

Question 38

You have a virtual machine that runs Windows Server 2022 and is managed by using PowerShell Desired State Configuration (PSDSC).

You have the following DSC configuration.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Options:

Question 39

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 40

To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?

Options:

A.

Change the value of the ConfigurationMode parameter.

B.

Replace the Register-AzureRmAutomationDscNode cmdlet with

Register-AzureRmAutomationScheduledRunbook

C.

Add the AllowModuleOverwrite parameter.

D.

Add the DefaultProfile parameter.

Question 41

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 options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 42

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:

Question 43

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 44

What should you use to implement the 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 45

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

Options:

A.

authorization credentials

B.

the project name

C.

the deployment group name

D.

the organization URL

E.

the agent pool name

Question 46

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 the solution? To answer, select the appropriate options m the answer area, NOTE: Each correct selection is worth one point.

Options:

Question 47

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

Options:

Question 48

You are using GitHub as a 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 should you use?

Options:

A.

--squash

B.

--no-verify

C.

--message ' '

D.

--no-post-rewrite

Question 49

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 50

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 51

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: Each correct selection is worth one point.

Options:

Question 52

How should you configure 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 53

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 54

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 55

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

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 56

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

NOTE: Each correct selection is worth one point.

Options:

Question 57

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

Options:

Question 58

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 to the answer area and arrange them in the correct order.

Options:

Question 59

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 60

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-AzureRmAutomationDscNode Azure 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 61

You need to implement Project4.

What should you do first?

Options:

A.

Add the FROM instruction in the Dockerfile file.

B.

Add a 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 62

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 63

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 format the export?

Options:

A.

NDF

B.

MDF

C.

BACPAC

D.

DACPAC

Question 64

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 65

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 66

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 67

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 68

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 69

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 70

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

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 widget 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 72

You need !0 the merge the POC branch into the default branch. The solution must meet the technical requirements. Which command should you run?

Options:

A.

it push

B.

git merge -- allow-unrelated-histories

C.

git rebase

D.

git merge --squash

Question 73

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 74

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 Azure DevOps project.

Your build process creates several artifacts.

You need to deploy the artifacts to on-premises servers.

Solution: You deploy an Azure self-hosted agent to an on-premises server. You add a Copy and Publish Build Artifacts task to the deployment pipeline.

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 75

You have an Azure DevOps project that contains a build pipeline. The build pipeline uses approximately 50 open source libraries.

You need to ensure that all the open source libraries comply with your company’s licensing standards.

Which service should you use?

Options:

A.

Ansible

B.

Maven

C.

WhiteSource Bolt

D.

Helm

Question 76

You need to deploy a new project in Azure DevOps that has the following requirements:

• The lead developer must be able to create repositories, manage permissions, manage policies, and contribute to the repository.

• Developers must be able to contribute to the repository and create branches, but NOT bypass policies when pushing builds.

• Project managers must only be able to view the repository.

• The principle of least privilege must be used.

You create a new Azure DevOps project team for each role.

To which Azure DevOps groups should you add each team? To answer, drag the appropriate groups to the correct teams. Each group 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:

Demo: 76 questions
Total 628 questions