Microsoft AZ-400 Microsoft Azure DevOps Solutions Exam Practice Test
Microsoft Azure DevOps Solutions Questions and Answers
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.

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

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.

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.

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.

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.

You need to implement Project4.
What should you do first?
In Azure DevOps, you create Project3.
You need to meet the requirements of the project.
What should you do first?
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.

You need to the merge the POC branch into the main branch. The solution must meet the technical requirements.
Which command should you run?
You need to configure Azure Pipelines to control App2 builds.
Which authentication method should you use?
You need to perform the GitHub code migration. The solution must support the planned changes for the DevOps environment.
What should you use?
You need !0 the merge the POC branch into the default branch. The solution must meet the technical requirements. Which command should you run?
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?
You need to meet the technical requirements for controlling access to Azure DevOps.
What should you use?
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.

You need to meet the technical requirements for monitoring App1.
What should you use?
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.

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.

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.

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.

Which branching strategy should you recommend for the investment planning applications suite?
To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?
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?
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.

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.

What should you use to implement the code quality restriction on the release pipeline for the investment planning applications suite?
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.

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.

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.

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

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

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 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: Install and configure a self-hosted build agent on an on-premises machine. Configure the build pipeline to use the Default agent pool. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?
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.

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

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

You need to configure an Azure web app named az400-9940427-main to contain an environmental variable named “MAX_ITEMS”. The environmental variable must have a value of 50.
To complete this task, sign in to the Microsoft Azure portal.
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.

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.
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.
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.
Task 5
You plan to stoic signed images in an Azure Container Registry instance named az40038443478act1.
You need to modify the SKU for az40038443478aa1 to support the planned images. The solution must minimize costs.
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.
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.
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.
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?
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.
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.
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.
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?
Task 3
You need to create a new team dashboard named Dashboard1 for the default project team of Project1. The dashboard must display the members of the team
You have an application that consists of several Azure App Service web apps and Azure functions. You need to assess the security of the web apps and the functions.
Which Azure feature can you use to provide a recommendation for the security of the application?
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.
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
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.
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.

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.
You have a project in Azure DevOps
You build an app named Appl that will be used on devices that run either MacOS, Linux, or Windows.
You need to create an Azure DevOps YAML pipeline to build App1 on the three operating systems. The solution must meet the following requirements:
• Minimize code duplication in the pipeline configuration.
• Minimize maintenance effort.
What should you use?
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.
You have multiple automated workflows that interact with Azure DevOps and use the following services:
• Azure Command-Line Interface (CLI)
• Azure PowerShell
• Azure Functions
You need to recommend which authentication method to use for each service. The solution must minimize the risk of compromising credentials.
What should you recommend for each service? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

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.

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.
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.
You have a GitHub Actions workflow named workflow1 that is used to deploy an app name Appl. You need to ensure that App1 is deployed only when the following conditions are met:
• A pull request is merged to the main branch.
• The change includes a JavaScript file.
Solution. You configure the YAML file of workflow1 to include the following.

Does this meet the goal?
You manage package feeds by using Azure Artifacts.
You plan to create a new package feed that will include the following views:
• @ Local
• ©Latest
• @Release
• ©Prerelease
Which view should you create manually '
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.
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.
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.








C:\Users\wk\Desktop\mudassar\Untitled.jpg











Graphical user interface, text, application
Description automatically generated
Graphical user interface, text, application
Description automatically generated
Graphical user interface, text, application
Description automatically generated

A picture containing text
Description automatically generated




































