Spring Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Microsoft > Microsoft Azure > AZ-400

AZ-400 Microsoft Azure DevOps Solutions Question and Answers

Question # 4

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

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.

Full Access
Question # 5

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

A.

release isolation

B.

main only

C.

development isolation

D.

feature isolation

Full Access
Question # 6

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.

Full Access
Question # 7

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.

Full Access
Question # 8

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.

Full Access
Question # 9

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.

Full Access
Question # 10

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.

Full Access
Question # 11

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.

Full Access
Question # 12

In Azure DevOps, you create Project3.

You need to meet the requirements of the project.

What should you do first?

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.

Full Access
Question # 13

You need to implement Project4.

What should you do first?

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.

Full Access
Question # 14

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.

Full Access
Question # 15

You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and an app named App1. Pipeline1 is used to automate the building of App1.

You have a Slack channel named App1chat that includes an incoming webhook.

You need to ensure that when a successful build of App1 is created, a notification is sent to App1chat by using the webhook.

What should you use?

A.

an alert rule

B.

a notification

C.

an action group

D.

a subscription

Full Access
Question # 16

Your company is creating a suite of three mobile applications.

You need to control access to the application builds. The solution must be managed at the organization level

What should you use? To answer, select the appropriate options m the answer area.

NOTE: Each correct selection is worth one point.

Full Access
Question # 17

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?

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

Full Access
Question # 18

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.

Full Access
Question # 19

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

What should you use?

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)

Full Access
Question # 20

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?

A.

NDF

B.

MDF

C.

BACPAC

D.

DACPAC

Full Access
Question # 21

You need to meet the technical requirements for monitoring App1.

What should you use?

A.

Splunk

B.

Azure Application Insights

C.

Azure Advisor

D.

App Service logs

Full Access
Question # 22

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

A.

it push

B.

git merge -- allow-unrelated-histories

C.

git rebase

D.

git merge --squash

Full Access
Question # 23

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.

Full Access
Question # 24

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.

Full Access
Question # 25

You need to configure Azure Pipelines to control App2 builds.

Which authentication method should you use?

A.

Windows NTLM

B.

certificate

C.

SAML

D.

personal access token (PAT)

Full Access
Question # 26

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

What should you use?

A.

git clone

B.

GitHub Importer

C.

Import repository in Azure Repos

D.

git-tfs

Full Access
Question # 27

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a web application named

WebApp1. WebApp1 uses state full sessions.

The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.

You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.

You need to implement limited user testing for the new version of WebApp1 on VMSS1.

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

NOTE: Each correct selection is worth one point.

A.

Modify the load balancer settings of VMSS1.

B.

Redeploy VMSS1.

C.

Upload a custom script file to sa1.

D.

Modify the Custom Script extension settings of VMSS1.

E.

Update the configuration of a virtual machine in VMSS1.

Full Access
Question # 28

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.

Full Access
Question # 29

You have an Azure web app named Webapp1.

You need to use an Azure Monitor query to create a report that details the top 10 pages of Webapp1 that failed.

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

NOTE: Each correct selection is worth one point.

Full Access
Question # 30

You have an Azure subscription that contains an Azure container registry. The container registry contains an ACR Tasks task named Task1. Task1 is configured to run once every five days.

You need to trigger Task1 to run immediately.

Which command should you run?

A.

az acr build

B.

az acr task run

C.

az acr run

D.

az acr taskrun

Full Access
Question # 31

You need to increase the security of your team ' s development process.

Which type of security tool should you recommend for each stage of the development process? To answer, drag the appropriate security toots to the correct stages. Each security 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.

Full Access
Question # 32

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?

A.

Fixes #123

B.

Resolves #AB-123

C.

#123 completes

D.

#123 Resolved

Full Access
Question # 33

You need to make a custom package available to all the developers. The package must be managed centrally, and the latest version must be available for consumption in Visual Studio automatically.

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

NOTE: Each correct selection is worth one point.

A.

Add the package URL to the Environment settings in Visual Studio.

B.

Create a Get repository in Azure Repos.

C.

Add the package URL to the Get Package Manager settings in Visual Studio.

D.

Upload a package to a Get repository.

E.

Create a new feed in Azure Artifacts.

F.

Publish the package to a feed.

Full Access
Question # 34

Your company is concerned that when developers introduce open source libraries, it creates licensing compliance issues.

You need to add an automated process to the build pipeline to detect when common open source libraries are added to the code base.

What should you use?

A.

Microsoft Visual SourceSafe

B.

PDM

C.

WhiteSource

D.

OWASP ZAP

Full Access
Question # 35

You manage build and release pipelines by using Azure DevOps. Your entire managed environment resides in Azure.

You need to configure a service endpoint for accessing Azure Key Vault secrets. The solution must meet the following requirements:

    Ensure that the secrets are retrieved by Azure DevOps.

    Avoid persisting credentials and tokens in Azure DevOps.

How should you configure the service endpoint? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Full Access
Question # 36

You plan to use Terraform to deploy an Azure resource group.

You need to install the required frameworks to support the planned deployment.

Which two frameworks should you install? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.

Vault

B.

Terratest

C.

Node.js

D.

Yeoman

E.

Tiller

Full Access
Question # 37

You manage an Azure web app that supports an e-commerce website.

You need to increase the logging level when the web app exceeds normal usage patterns. The solution must minimize administrative overhead.

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

NOTE: Each correct selection is worth one point.

A.

an Azure Automation run book

B.

an Azure Monitor alert that has a dynamic threshold

C.

an Azure Monitor alert that has a static threshold

D.

the Azure Monitor auto scale settings

E.

an Azure Monitor alert that uses an action group that has an email action

Full Access
Question # 38

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 Managed DevOps Pools and select the Ubuntu Server 22.04 LTS - x64 Gen 2 image.

Does this meet the goal?

A.

Yes

B.

No

Full Access
Question # 39

You need to create a virtual machine template in an Azure DevTest Labs environment named az400-9940427-dtl1. The template must be based on Windows Server 2016 Datacenter. Virtual machines created from the template must include the selenium tool and the Google Chrome browser.

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

Full Access
Question # 40

You have an Azure Repos Git repository named repo1.

You need to ensure that you can authenticate to repo1 by using SSH.

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.

Full Access
Question # 41

Your company wants to use Azure Application Insights to understand how user behaviors affect an application.

Which Application Insights tool should you use to analyze each behavior? To answer, drag the appropriate tools to the correct behaviors. 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.

Full Access
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?

A.

git push

B.

git merge --squash

C.

git merge --allow-unrelated-histories

D.

git rebase

Full Access
Question # 43

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.

Full Access
Question # 44

You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

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

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

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

Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running a Linux image. Include the Java Tool Installer task in the build pipeline.

Does this meet the goal?

A.

Yes

B.

No

Full Access
Question # 45

You use GitHub Enterprise for source control repositories. The repositories store C# code. You need to enable CodeQL scanning for the repositories. What should you do?

A.

Push a GitHub Actions workflow to all the repositories.

B.

Enable Dependabot security updates.

C.

Enable Dependabot alerts.

D.

Configure a required GitHub Actions workflow for all the repositories.

Full Access
Question # 46

You need to recommend a Docker container build strategy that meets the following requirements

• Minimizes image sues

• Minimizes the security surface area of the final image

What should you include m the recommendation?

A.

multi-stage builds

B.

single-stage builds

C.

PowerShell Desired State Configuration (DSC)

D.

Docker Swarm

Full Access
Question # 47

Your company has 60 developers who are assigned to four teams. Each team has 15 members.

The company uses an agile development methodology.

You need to structure the work of the development teams so that each team owns their respective work while working together to reach a common goal.

Which parts of the taxonomy should you enable the team to perform autonomously?

A.

Features and Tasks

B.

Initiatives and Epics

C.

Epics and Features

D.

Stories and Tasks

Full Access
Question # 48

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 the meet the goal?

A.

Yes

B.

No

Full Access
Question # 49

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?

A.

Yes

B.

No

Full Access
Question # 50

You are implementing a package management solution for a Node.js application by using Azure Artifacts.

You need to configure the development environment to connect to the package repository. The solution must minimize the likelihood that credentials will be leaked.

Which file should you use to configure each connection? To answer, drag the appropriate files to the correct connections. Each file 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.

Full Access
Question # 51

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a web application named WebApp1.

WebApp1 uses stateful sessions.

The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.

You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.

You need to implement limited user testing for the new version of WebApp1 on VMSS1.

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

NOTE: Each correct selection is worth one point.

A.

Modify the load balancer settings of VMSS1.

B.

Redeploy VMSS1.

C.

Upload a custom script file to sa1.

D.

Modify the Custom Script extension settings of VMSS1.

E.

Update the configuration of a virtual machine in VMSS1.

Full Access
Question # 52

You manage a project by using Azure Boards. You manage the project code by using GitHub.

You have three work items that have IDs of 456. 457. and 458.

You need to create a pull request that will be linked to all the work items. The solution must set the state of work item 456 to done.

What should you add to the commit message?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 53

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?

A.

work item linking

B.

a project backlog

C.

Application Insights in Azure Monitor

D.

Delivery Plans

Full Access
Question # 54

Your company builds a multi tier web application.

> You use Azure DevOps and host the production application on Azure virtual machines.

Your team prepares an Azure Resource Manager template of the virtual machine that you mil use to test new features.

You need to create a staging environment in Azure that meets the following requirements:

• Minimizes the cost of Azure hosting

• Provisions the virtual machines automatically

• Use* the custom Azure Resource Manager template to provision the virtual machines

What should you do?

A.

In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.

B.

From Azure Cloud Shell, run Azure PowerShell commands to create and delete the new virtual machines in a staging resource group.

C.

In Azure DevOps, configure new tasks in the release pipeline to deploy to Azure Cloud Services.

D.

In Azure Cloud Shell, run Azure CLI commands to create and delete the new virtual machines in a staging resource group.

Full Access
Question # 55

2You have a GitHub repository.

You need to ensure that all changes to code are validated by your company ' s security department before the main branch is deployed.

Which two actions can you perform? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Create a branch protection rule for the feature branches.

B.

Create a branch protection rule for the main branch.

C.

Create a LICENSE file.

D.

Require signed commits.

E.

Create a CODEOWNERSfile.

Full Access
Question # 56

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.

Full Access
Question # 57

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.

Full Access
Question # 58

You administer an Azure DevOps project that includes package feeds.

You need to ensure that developers can unlist and deprecate packages. The solution must use the principle of least privilege.

Which access level should you grant to the developers?

A.

Collaborator

B.

Contributor

C.

Owner

Full Access
Question # 59

You are building a Microsoft ASP.NET application that requires authentication.

You need to authenticate users by using Azure Active Directory (Azure AD). What should you do first?

A.

Create a membership database in an Azure SQL database.

B.

Assign an enterprise application to users and groups.

C.

Create an app registration in Azure AD.

D.

Configure the application to use a SAML endpoint.

E.

Create a new OAuth token from the application.

Full Access
Question # 60

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 use Azure Pipelines to build and test a React js application.

You have a pipeline that has a single job.

You discover thai installing JavaScript packages from npm takes approximately five minutes each time you run the pipeline.

You need to recommend a solution to reduce the pipeline execution time.

Solution: You recommend defining a container job that uses a custom container that has the JavaScript packages preinstalled.

Does this meet the goal?

A.

Yes

B.

No

Full Access
Question # 61

You need to use an Azure Pipelines pipeline to build and test an app and test the database of the app. The solution must meet the following requirements.

• Thetest stages must be run in parallel.

• The Publish_Test_Results stage must always be run.

• The test stages must be run after successful completion of the build stage.

• The Publish_Test_Results stage must be run after completion of all the test stages

Solution: You include the following elements in the YAML definition of the pipeline.

Does this meet the goal?

A.

Yes

B.

No

Full Access
Question # 62

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure SQL database named DB1.

You need to create a release pipeline that uses the Azure SQL Database Deployment task to update DB1.

Which artifact should you deploy?

A.

a BACPAC

B.

a DACPAC

C.

an LDF file

D.

an MDF file

Full Access
Question # 63

You are monitoring the health and performance of an Azure web app by using Azure Application Insights.

You need to ensure that an alert is sent when the web app has a sudden rise in performance issues and failures.

What should you use?

A.

custom events

B.

Application Insights Profiler

C.

usage analysis

D.

Smart Detection

E.

Continuous export

Full Access
Question # 64

Your company develops an app for OS. All users of the 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?

A.

.cer

B.

.pvk

C.

.pfx

D.

.p12

Full Access
Question # 65

You have a GitHub repository that contains multiple versions of an Azure Pipelines template. You plan to deploy multiple pipelines that will use a template stored in the repository. You need to ensure that you use a fixed version of the template. What should you use to reference which version of the template repository to use?

A.

the runner

B.

the branch

C.

the SHA-based hashes

D.

the serial

Full Access
Question # 66

You have an Azure subscription. The subscription contains virtual machines that run either Windows Server or Linux.

You plan to use Prometheus to monitor performance metrics.

You need to integrate Prometheus and Azure Monitor.

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

NOTE: Each correct selection is worth one point.

A.

Install a Prometheus server on a Windows virtual machine in Azure.

B.

On each virtual machine, expose the metrics endpoint.

C.

On each virtual machine, enable the Azure Diagnostics extension.

D.

On each virtual machine, enable the containerized agent for Azure Monitor.

E.

Expose a virtual network service endpoint for Azure Storage.

F.

Install a Prometheus server on a Linux virtual machine in Azure.

Full Access
Question # 67

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.

Full Access
Question # 68

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.

A.

authorization credentials

B.

the project name

C.

the deployment group name

D.

the organization URL

E.

the agent pool name

Full Access
Question # 69

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

A.

a trigger

B.

a pre deployment approval

C.

a post-deployment approval

D.

a deployment gate

Full Access
Question # 70

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.

Full Access
Question # 71

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?

A.

--squash

B.

--no-verify

C.

--message ' '

D.

--no-post-rewrite

Full Access
Question # 72

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?

A.

path filters

B.

batch changes

C.

scheduled builds

D.

branch filters

Full Access
Question # 73

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.

Full Access
Question # 74

You have a widget named Appl and an Azure DevOps YAML pipeline named Pipelinel. App1 is released by using Pipelined Pipeline1 contains a single stage and a single job. You need to ensure that Appl is approved before the app is released. Which two actions should you perform? Each correct answer presents part of the solution. NOTE; Each correct selection is worth one point.

A.

Add a stage named deployment to the YAML pipeline.

B.

Change Pipelinel to a deployment job.

C.

Create a service connection.

D.

Create an environment an tod add a check.

E.

Configure branch control.

Full Access