AZ-400 無料問題集「Microsoft Designing and Implementing Microsoft DevOps Solutions」
You have a project in Azure DevOps that contains a Continuous Integration/Continuous Deployment (CI/CD) pipeline.
You need to enable detailed logging by defining a pipeline variable.
Mow should you configure the variable? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You need to enable detailed logging by defining a pipeline variable.
Mow should you configure the variable? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

正解:

Explanation:

You use Git for source control.
You enable GitHub code scanning.
You raise a pull request from a non-default branch. In the code scanning output you receive the following error message: "Analysis not found." You need to ensure that the code scanning completes successfully for the pull request.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You enable GitHub code scanning.
You raise a pull request from a non-default branch. In the code scanning output you receive the following error message: "Analysis not found." You need to ensure that the code scanning completes successfully for the pull request.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
正解:A、C
解答を投票する
You need to create a virtual machine template in an Azure DevTestLabs 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.
To complete this task, sign in to the Microsoft Azure portal.
正解:
See solution below.
Explanation:
1. Open Microsoft Azure Portal
2. Select All Services, and then select DevTest Labs in the DEVOPS section.

3. From the list of labs, select the az400-9940427-dtl1 lab
4. On the home page for your lab, select + Add on the toolbar.
5. Select the Windows Server 2016 Datacenter base image for the VM.
6. Select automation options at the bottom of the page above the Submit button.
7. You see the Azure Resource Manager template for creating thevirtual machine.
8. The JSON segment in the resources section has the definition for the image type you selected earlier.
References:
https://docs.microsoft.com/bs-cyrl-ba/azure//lab-services/devtest-lab-vm-powershell
Explanation:
1. Open Microsoft Azure Portal
2. Select All Services, and then select DevTest Labs in the DEVOPS section.

3. From the list of labs, select the az400-9940427-dtl1 lab
4. On the home page for your lab, select + Add on the toolbar.
5. Select the Windows Server 2016 Datacenter base image for the VM.
6. Select automation options at the bottom of the page above the Submit button.
7. You see the Azure Resource Manager template for creating thevirtual machine.
8. The JSON segment in the resources section has the definition for the image type you selected earlier.
References:
https://docs.microsoft.com/bs-cyrl-ba/azure//lab-services/devtest-lab-vm-powershell
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?
* 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?
正解:B
解答を投票する
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 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.

正解:

Explanation:

https://docs.microsoft.com/en-us/azure/azure-monitor/app/performance-counters
Note: This question is part of a series of questions that presentthe 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?
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?
正解:B
解答を投票する
解説: (JPNTest メンバーにのみ表示されます)
You have several Azure virtual machines that run Windows Server 2019.
You need to identify the distinct event IDs of each virtual machine as shown in the following table.
How should you complete the Azure Monitor query? To answer, drag the appropriate values to the correct locations. Each value may be used once, more than once, or not at all. You may need todrag the split bar between panes or scroll to view content.

You need to identify the distinct event IDs of each virtual machine as shown in the following table.
How should you complete the Azure Monitor query? To answer, drag the appropriate values to the correct locations. Each value may be used once, more than once, or not at all. You may need todrag the split bar between panes or scroll to view content.

正解:

Explanation:

You can use makelist to pivot data by the order of values in a particular column. For example, you may want to explore the most common order events take place on your machines. You can essentially pivot the data by the order of EventIDs on each machine.
Example:
Event
| where TimeGenerated > ago(12h)
| order by TimeGenerated desc
| summarize makelist(EventID) by Computer
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/advanced-aggregations
Your company is creating a suite of three mobile applications.
You need to controlaccess 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.

You need to controlaccess 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.

正解:

Explanation:

Box 1: Microsoft Visual Studio App Center distribution Groups
Distribution Groups are used to control access to releases. A Distribution Group represents a set of users that can be managed jointly and can have common access to releases. Exampleof Distribution Groups can be teams of users, like the QA Team or External Beta Testers or can represent stages or rings of releases, such as Staging.
Box 2: Shared
Shared distribution groups are private or public distribution groups that are shared across multiple apps in a single organization. Shared distribution groups eliminate the need to replicate distribution groups across multiple apps.
Note: With the Deploy with App Center Task in Visual Studio Team Services, you can deploy your apps from Azure DevOps (formerly known as VSTS) to App Center. By deploying to App Center, you will be able to distribute your builds to your users.
References:https://docs.microsoft.com/en-us/appcenter/distribution/groups
Your company has a project in Azure DevOps for a new application. The application will be deployed to several Azure virtual machines that run Windows Server 2022. You need to recommend adeployment strategy for the virtual machines. The strategy must meet the following requirements:
* Ensure that the virtual machines maintain a consistent configuration.
* Minimize administrative effort to configure the virtual machines.
What shouldyou include in the recommendation?
* Ensure that the virtual machines maintain a consistent configuration.
* Minimize administrative effort to configure the virtual machines.
What shouldyou include in the recommendation?
正解:B
解答を投票する
You plan to create alerts that will be triggered based on the page load performance of a home page.
You have the Application Insights log queryshown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
You have the Application Insights log queryshown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
正解:

Explanation:

Box 1: percentile_duration_95
Box 2: success
For example -
requests
| project name, url, success
| where success == "False"
This will return all the failed requests in my App Insights within the specified time range.
Reference:
https://devblogs.microsoft.com/premier-developer/alerts-based-on-analytics-query-using-custom-log-search/
Your company uses Git as a source code control system for a complex app named App1.
You plan to add a new functionality to App1.
You need to design a branching model for the new functionality.
Which branch lifetime and branch time should you use in the branching model? To answer, select the appropriate options in the answer area.
NOTE:Each correct selection is worth one point.

You plan to add a new functionality to App1.
You need to design a branching model for the new functionality.
Which branch lifetime and branch time should you use in the branching model? To answer, select the appropriate options in the answer area.
NOTE:Each correct selection is worth one point.

正解:

Explanation:

Branch lifetime: Short-lived
Branch type: Feature
Feature branches are used whendeveloping a new feature or enhancement which has the potential of a development lifespan longer than a single deployment. When starting development, the deployment in which this feature will be released may not be known. No matter when the feature branchwill be finished, it will always be merged back into the master branch.
References:
https://gist.github.com/digitaljhelms/4287848
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.
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.
正解:
See the solution below in explanation.
Explanation:
Step 1: Initialize the Default Main Branch
Navigate to Azure DevOps:
Go to Azure DevOps and sign in with your credentials.
Select Your Project:
Choose Project1 from your list of projects.
Initialize theMain Branch:
Go to Repos > Files.
If the main branch does not exist, you will see an option to initialize it. Click on Initialize and follow the prompts to create the main branch1.
Step 2: Create a New Branch for the Pipeline
Navigate to Branches:
Go to Repos > Branches.
Click on New branch.
Create the Branch:
Enter azure-pipelines as the branch name.
Select main as the base branch.
Click Create2.
Step 3: Create a New Azure Pipelines YAML Pipeline
Navigate to Pipelines:
Go to Pipelines > New pipeline.
Select the Repository:
Choose Azure Repos Git and select the relevant repository.
Configure the Pipeline:
Select Starter pipeline.
Replace the default YAML with the ASP.NET template. You can find the ASP.NET template in the Azure Pipelines documentation oruse the following example:
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '5.x'
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: |
dotnet build --configuration $(buildConfiguration)
displayName: 'Build project'
- script: |
dotnet test --no-build --configuration $(buildConfiguration)
displayName: 'Run tests'
Save the Pipeline:
Click on Save and enter azure-pipelines as the branch name.
Click on Save and run to save the pipeline to the new branch named azure-pipelines3.
By following these steps, you will have successfully initialized the main branch, created a new branch named azure-pipelines, and set up a new Azure Pipelines YAML pipeline using the ASP.NET template
Explanation:
Step 1: Initialize the Default Main Branch
Navigate to Azure DevOps:
Go to Azure DevOps and sign in with your credentials.
Select Your Project:
Choose Project1 from your list of projects.
Initialize theMain Branch:
Go to Repos > Files.
If the main branch does not exist, you will see an option to initialize it. Click on Initialize and follow the prompts to create the main branch1.
Step 2: Create a New Branch for the Pipeline
Navigate to Branches:
Go to Repos > Branches.
Click on New branch.
Create the Branch:
Enter azure-pipelines as the branch name.
Select main as the base branch.
Click Create2.
Step 3: Create a New Azure Pipelines YAML Pipeline
Navigate to Pipelines:
Go to Pipelines > New pipeline.
Select the Repository:
Choose Azure Repos Git and select the relevant repository.
Configure the Pipeline:
Select Starter pipeline.
Replace the default YAML with the ASP.NET template. You can find the ASP.NET template in the Azure Pipelines documentation oruse the following example:
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '5.x'
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: |
dotnet build --configuration $(buildConfiguration)
displayName: 'Build project'
- script: |
dotnet test --no-build --configuration $(buildConfiguration)
displayName: 'Run tests'
Save the Pipeline:
Click on Save and enter azure-pipelines as the branch name.
Click on Save and run to save the pipeline to the new branch named azure-pipelines3.
By following these steps, you will have successfully initialized the main branch, created a new branch named azure-pipelines, and set up a new Azure Pipelines YAML pipeline using the ASP.NET template