AZ-400 Microsoft Azure DevOps Solutions Questions and Answers
You have an Azure DevOps organization named Contoso and an Azure subscription.
You use Azure DevOps to build and deploy a web app named App1. Azure Monitor is configured to generate an email notification in response to alerts generated whenever App1 generates a server-side error.
You need to receive notifications in Microsoft Teams whenever an Azure Monitor alert is generated.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You are automating the build process for a Java-based application by using Azure DevOps.
You need to add code coverage testing and publish the outcomes to the pipeline.
What should you use?
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.
Your company creates a web application.
You need to recommend a solution that automatically sends to Microsoft Teams a dairy summary of the exceptions that occur m the application.
Which two Azure services should you recommend? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You have an Azure virtual machine that is monitored by using Azure Monitor.
The virtual machine has the Azure Log Analytics agent installed.
You plan to deploy the Service Map solution from Azure Marketplace.
What should you deploy to the virtual machine to support the Service Map solution?
You use GitHub for source control of .NET applications.
You need to deploy a documentation solution that meets the following requirements:
Documents will be written in Markdown as developers make code changes
Changes to the documents will trigger the recompilation of a static website.
Users will access the documents from the static websites
Documents will be stored in a GitHub repository
Which two tools can you use to compile the website? Each correct answer presents a complete solution.
You have an Azure subscription.
You need to create a storage account by using a Bicep file.
How should you complete the file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You have project in Azure DevOps.
You create the following template named Template1.yml.

You create the following pipeline named File1.yml.

You need to ensure that Template1.yaml runs before File1.yml.
How should you update File1.yml?

You are designing a build pipeline in Azure Pipelines.
The pipeline requires a self-hosted agent. The build pipeline will run once daily and will take 30 minutes to complete.
You need to recommend a compute type for the agent. The solution must minimize costs.
What should you recommend?
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 reducing the code complexity.
Does this meet the goal?
You have a project m Azure DevOps that has a release pipeline.
You need to integrate work item tracking and an Agile project management system to meet the following requirements:
• Ensure that developers can track whether their commits are deployed to production.
• Report the deployment status.
• Minimize integration effort.
Which system should you use?
To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?
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.

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.

Which branching strategy should you recommend 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.

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.

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.

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.

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

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

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

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 add the virtual machines as managed nodes in Azure Automation State Configuration.
You need to configure the computer in Group7.
What should you do?
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.
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 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?
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?
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 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?
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 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.
Task 11
You need to create a new artifact feed named artifact_feed.
Only 10 versions of the packages must be retained, and downloaded packages must be retained for 90 days.
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 have an Azure subscription that contains an Azure Kubernetes Service (AKS) instance named AKS1. You collect and analyze metrics for AKS1 by using the Azure Monitor managed service for Prometheus. You need to analyze the performance of AKS1.
Which query language should you use?
Task 1
Navigate to aex.dev.azure.com and specify the following credentials:
• UserUser1-48901628@cxamUsers.com
• Password: aFpJ2j-6M!
Use the default setting to sign up for Azure DevOps and create an Azure DevOps organization. Once the organization is created. create a private project named Project1.
You need to ensure that the maximum file size for all the Azure DevOps repositories of Project1 is 2 MB.
Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have an on-premises web server named Server1.
You need to ensure that you can build .NET apps and deploy the apps to Server1 by using Azure Pipelines.
Solution: You deploy a virtual machine scale set and select a custom Ubuntu image that includes the .NET command-line interface (CU) tools.
Does this meet the goal?
You need to ensure that the https://contoso.com/statushook webhook is called every time a repository named az40010480345acr1 receives a new version of an image named dotnetapp.
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 11
You need to write a KQL query that will count the number of inbound requests for each source IP address, for any connection made during the last three months of 2021.
Open Azure Data Explorer by using the following link:
https//dataexploter azure.com/clusters/help/databases/Securiitylogs
The requests are contained in a table named InboundBrowsing in the Securitylogs connection.
The query must return two columns named NumberOfRequests and SourcelP.
Export the query result to C:\Samples
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?
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.
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.
Task 10
For Project1, you need to ensure that artifacts, symbols, and attachments are retained for 60 days.
You have an app named App1 that will be deployed by using Azure Container Apps. You need to ensure that App1 can be deployed by using the blue-green deployment strategy. Which two actions should you perform in Container Apps? Each correct answer presents part of the solution. NOTE; Each correct selection is worth one point.
Task 8
You need to ensure that the https://contoso.com/statushook webhookis called every time a repository named az40038443478acr 1 receives a new version of an image named dotnetapp
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 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 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 an Azure web app named az400-9940427-main supports rolling upgrades. The solution must ensure that only 10 percent of users who connect to az400-9940427-main use update versions of the app.
The solution must minimize administrative effort.
To complete this task, sign in to the Microsoft Azure portal.
You have a 1-TB Azure Repos repository named repol.
You need to clone repol. The solution must meet the following requirements;
• You must be able to search the commit history of the /src directory.
• The amount of time it takes to clone the repository must be minimized
Which command should you run?
You need to meet the technical requirements for controlling access to Azure DevOps.
What should you use?
You need to configure Azure Pipelines to control App2 builds.
Which authentication method 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 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 perform the GitHub code migration. The solution must support the planned changes for the DevOps environment.
What should you use?
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 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 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.










































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