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

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.

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.

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.

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.

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.

Which branching strategy should you recommend for the investment planning applications suite?
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?
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.

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

To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?
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.

You need to meet the technical requirements for controlling access to Azure DevOps.
What should you use?
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 !0 the merge the POC branch into the default branch. The solution must meet the technical requirements. Which command should you run?
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 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 the merge the POC branch into the main branch. The solution must meet the technical requirements.
Which command should you run?
You need to meet the technical requirements for monitoring App1.
What should you use?
You need to configure Azure Pipelines to control App2 builds.
Which authentication method should you use?
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 perform the GitHub code migration. The solution must support the planned changes for the DevOps environment.
What should you use?
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 GitHub repository that contains the source code for an app named App1.
You need to create process documentation for App1. The solution must include a diagram that displays the relationships between the phases of App1 as shown in the following exhibit.

How should you complete the markdown code? 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 betJJeen panes or scroll to view content.
NOTE: Each correct selection is worth one point.

You have an X.509 certificate named cert1 that is managed by an external partner named Partner 1. You build a web app named Web1 that will be deployed by using Azure Pipelines. Web1 will be bound to cert1. You need to ensure that cert1 is available to Azure Pipelines. The solution must ensure that cert1 can only be updated by Partner1. Where should you store cert1?
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.
You have an Azure subscription.
You need to ensure that users can provision preconfigured cloud-based environments for developing apps. The solution must minimize administrative effort.
What should you include in the solution?
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 '
You use Azure Pipelines pipeline to build and deploy an app named App1.
You need to ensure that before App1 is deployed, all the code for the app passes a security validation by using a custom tool. What should you do?
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 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
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.
You have an Azure subscription that contains an Azure Container Apps instance named AppServicel. AppServicel is deployed to multiple Azure regions.
You have a containerized application named App1. App1 is a platform as a service (PaaS) solution that will have customers worldwide.
You plan to deploy App1 to AppService1 and will use a blue-green deployment strategy.
You need to recommend a solution that meet the following requirements:
• Automatically routes traffic between each deployment with minimal manual intervention
• Supports dynamic application settings and feature flags
• Minimizes administrative effort
What should you include in the recommendation for each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You have a project in Azure DevOps that will use infrastructure as code (laC) to deploy resources to Azure and Amazon Web Services (AWS). You need to recommend a deployment solution for the project. The solution must minimize administrative effort. What should you include in the recommendation?
You have an Azure DevOps project that is used to build an app named Appl.
You need to recommend a release strategy for App1. The solution must meet the following requirements:
• Detect if App1 cannot respond to customer requests for more than 30 seconds.
• Ensure that App1 can respond to at least 100 concurrent users while maintaining page load times of less than 10 seconds.
Which type of test should you recommend for each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You need to implement Project4.
What should you do first?
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.

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

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

In Azure DevOps, you create Project3.
You need to meet the requirements of the project.
What should you do first?
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 Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app.
TestSuite1 fails intermittently.
You identify that the failures are unrelated to changes in the source code and execution environment.
You need to minimize troubleshooting effort for the TestSuite1 failures.
Solution: You implement the Test Results Trend widget.
Does this meet the goal?
You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named Applnsight1. Webapp1 sends telemetry data to Applnsights1.
You need to ensure that webapp1 sends the telemetry data at a fixed sampling rate.
What should you do?
You have a multi-tier application. The front end of the application is hosted in Azure App Service. You need to identify the average load times of the application pages. What should you use?
You manage the Git repository for a large enterprise application.
You need to minimize the data size of the repository.
How should you complete the commands? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You are deploying a server application that will run on a Server Core installation of Windows Server 2019.
You create an Azure key vault and a secret.
You need to use the key vault to secure API secrets for third-party integrations.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
D18912E1457D5D1DDCBD40AB3BF70D5D
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.
The lead developer at your company reports that adding new application features takes longer than expected due to a large accumulated technical debt.
You need to recommend changes to reduce the accumulated technical debt.
Solution: You recommend increasing the test coverage.
Does this meet the goal?
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.
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 m Azure DevOps.
• The source code must be stored in a get repository in Azure DevOps.
Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running the Windows Server 2022 with Visual Studio 2022 image, include the Java Tool installer task in the build pipeline.
Does this meet the goal?
You are building an ASP.NET Core application.
You plan to create an application utilization baseline by capturing telemetry data.
You need to add code to the application to capture the telemetry data. The solution must minimize the costs of storing the telemetry data.
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 web app named App1 that is hosted on multiple servers. App1 uses Application Insights in Azure Monitor.
You need to compare the dairy CPU usage from the last week for all servers.
How should you complete the query? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content
NOTE: Each correct selection is worth one point.

You are designing a YAML template for use with Azure Pipelines. The template Will include the Outputfile parameter.
Which two methods can you use to reference the parameter? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

You have a GitHub Enterprise account.
You have three projects named Project 1, Project2, and Project3. Project! must meet the following requirements:
• Perform concurrent testing across 700 hosts.
• Support workflow job durations of at least five hours.
Project2 must meet the following requirements:
• Perform concurrent load testing across 35 hosts that run macOS.
• Support workflow job durations of at least one hour.
Project3 must meet the following requirements:
• Perform concurrent load testing across 200 hosts run that Windows.
• Support workflow job durations of at least 24 hours.
You need to recommend an architecture for the GitHub runners of the projects. The solution must minimize costs. What should you recommend for each project? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

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

You plan to create a project in Azure DevOps. Multiple developers will work on the project. The developers will work offline frequently and will require access to the full project history while they are offline.
Which version control solution should you use?
You have an Azure DevOps organization named Contoso that contains a project named Project 1.
You provision an Azure key vault name Keyvault1.
You need to reference Keyvault1 secrets in a build pipeline of Project1.
What should you do first?
You have an Azure DevOps subscription that contains the projects shown in the following table

You build apps for the projects by using Azure Pipelines.
Which two projects meet the criteria for granting free paralleljobs? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
You have an Azure subscription that contains the resources shown in the following table.

Project1 produces 9pm packages that are published to Feed 1. Feed1 is consumed by multiple projects.
You need to ensure that only tested packages are available for consumption. The solution must minimize development effort.
What should you do?
You are developing an iOS application by using Azure DevOps.
You need to test the application manually on 10 devices without releasing the application to the public.
Which two actions should you perform? Each correct answer presents part of the solution.
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 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.
• The test stages must be run in parallel.
• The Publish_Test_Results stage must always be run.
• The test stages mustbe run after successful completion of the build stage.
• The PubHsh_Test_ftesuHs 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?
You have an Azure subscription that contains multiple web apps.
You need to enable Change Analysis for the web apps.
How should you complete the script? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Note: This question is part of a series les 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 m this section, you will NOT be able to return to it As a result, these questions will not appear in the review screen
You integrate a cloud-hosted Jenkins server and a new Azure Dev Ops deployment.
You need Azure Dev Ops lo send a notification to Jenkins when a developer commits changes to a branch in Azure Repos.
Solution: You create an email subscription to an Azure DevOps notification.
Does this meet the goal?
You have an Azure Pipelines pipeline that has the following definition.

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

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 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 two standalone templates, each of which will deploy the resources in its respective group.
Does this meet the goal?
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 have a policy stating that approvals must occur within eight hours.
You discover that deployment fail if the approvals take longer than two hours.
You need to ensure that the deployments only fail if the approvals take longer than eight hours.
Solution: From Post-deployment conditions, you modify the Timeout setting for post-deployment approvals.
Does this meet the goal?
You plane to store signed images in an Azure 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.
Your team uses an agile development approach.
You need to recommend a branching strategy for the team’s Git repository. The strategy must meet the
following requirements.
Provide the ability to work on multiple independent tasks in parallel.
Ensure that checked-in code remains in a releasable state always.
Ensure that new features can be abandoned at any time.
Encourage experimentation.
What should you recommend?




















A picture containing text
Description automatically generated
Graphical user interface, text, application
Description automatically generated
Graphical user interface, text, application
Description automatically generated
Graphical user interface, text, application
Description automatically generated












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












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









D:\mudassar\Untitled.jpg