AZ-400試験無料問題集「Microsoft Designing and Implementing Microsoft DevOps Solutions 認定」
You have a project in Azure DevOps named Project1.
You implement a Continuous Integration/Continuous Deployment (CI/CD) pipeline that uses PowerShell Desired State Configuration (DSC) to configure the application infrastructure.
You need to perform a unit test and an integration test of the configuration before Project1 is deployed.
What should you use?
You implement a Continuous Integration/Continuous Deployment (CI/CD) pipeline that uses PowerShell Desired State Configuration (DSC) to configure the application infrastructure.
You need to perform a unit test and an integration test of the configuration before Project1 is deployed.
What should you use?
正解:C
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
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?
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?
正解:D
解答を投票する
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unit 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 if the review screen.
You use an Azure Pipelines pipeline to build and release web apps.
You need to configure the pipeline to meet the following requirements:
* Only run when there is a change in the /webapp folder.
* Only run when a pr is created.
Solution: You configure the pipeline definition by using the following elements.
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 if the review screen.
You use an Azure Pipelines pipeline to build and release web apps.
You need to configure the pipeline to meet the following requirements:
* Only run when there is a change in the /webapp folder.
* Only run when a pr is created.
Solution: You configure the pipeline definition by using the following elements.
Does this meet the goal?
正解:B
解答を投票する
Task 4
Initialize the default main branch, if it does not exist already.
In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.
The process must use the four-eyes principle and have at least one approval on every iteration.
Initialize the default main branch, if it does not exist already.
In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.
The process must use the four-eyes principle and have at least one approval on every iteration.
正解:
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 the Main 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 branch.
Step 2: Implement an Approval Process for the Main Branch
* Navigate to Branch Policies:
* Go to Repos > Branches.
* Find the main branch and click on the ... (ellipsis) next to it.
* Select Branch policies.
* Enable Required Reviewers:
* Under Policies, enable Minimum number of reviewers.
* Set the minimum number of reviewers to 2 to enforce the four-eyes principle.
* Add Required Reviewers:
* Add the users who should review the changes. Ensure that at least one approval is required on every iteration.
* Enable Reset Code Reviewer Votes:
* Enable the Reset code reviewer votes when there are new changes option to ensure that any new changes require re-approval.
* Save Changes:
* Click on Save changes to apply the policies.
Step 3: Verify the Approval Process
* Create a Pull Request:
* Make a change in a branch and create a pull request to merge it into the main branch.
* Review and Approve:
* Ensure that the pull request requires at least two reviewers to approve it before it can be merged.
By following these steps, you will have successfully initialized the main branch and implemented an approval process that adheres to the four-eyes principle, ensuring that every iteration has at least one approval
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 the Main 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 branch.
Step 2: Implement an Approval Process for the Main Branch
* Navigate to Branch Policies:
* Go to Repos > Branches.
* Find the main branch and click on the ... (ellipsis) next to it.
* Select Branch policies.
* Enable Required Reviewers:
* Under Policies, enable Minimum number of reviewers.
* Set the minimum number of reviewers to 2 to enforce the four-eyes principle.
* Add Required Reviewers:
* Add the users who should review the changes. Ensure that at least one approval is required on every iteration.
* Enable Reset Code Reviewer Votes:
* Enable the Reset code reviewer votes when there are new changes option to ensure that any new changes require re-approval.
* Save Changes:
* Click on Save changes to apply the policies.
Step 3: Verify the Approval Process
* Create a Pull Request:
* Make a change in a branch and create a pull request to merge it into the main branch.
* Review and Approve:
* Ensure that the pull request requires at least two reviewers to approve it before it can be merged.
By following these steps, you will have successfully initialized the main branch and implemented an approval process that adheres to the four-eyes principle, ensuring that every iteration has at least one approval
Your company has an Azure subscription.
The company requires that all resource group in the subscription have a tag named organization set to a value of Contoso.
You need to implement a policy to meet the tagging requirement.
How should you complete the policy? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
The company requires that all resource group in the subscription have a tag named organization set to a value of Contoso.
You need to implement a policy to meet the tagging requirement.
How should you complete the policy? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
正解:
Explanation:
Box 1: " Microsoft.Resources/subscriptions/resourceGroups"
Box 2: "Deny",
Sample - Enforce tag and its value on resource groups
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Resources/subscriptions/resourceGroups"
},
{
"not": {
"field": "[concat('tags[',parameters('tagName'), ']')]",
"equals": "[parameters('tagValue')]"
}
}
]
},
"then": {
"effect": "deny"
}
}
}
}
References:
https://docs.microsoft.com/en-us/azure/governance/policy/samples/enforce-tag-on-resource-groups
You have an Azure subscription that contains 50 virtual machines.
You manage the configuration of the virtual machines by using Azure Automation State Configuration.
You need to ensure that Windows Defender is installed on each virtual machine and the Windows Defender service is running.
How should you complete the Desired State Configuration (DSC) 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 between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
You manage the configuration of the virtual machines by using Azure Automation State Configuration.
You need to ensure that Windows Defender is installed on each virtual machine and the Windows Defender service is running.
How should you complete the Desired State Configuration (DSC) 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 between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
正解:
Explanation:
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 need to ensure that all the open source libraries comply with your company's licensing standards.
Which service should you use?
正解:C
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You have an application that consists of several Azure App Service web apps and Azure functions.
You need to access the security of the web apps and the functions.
Which Azure features can you use to provide a recommendation for the security of the application?
You need to access the security of the web apps and the functions.
Which Azure features can you use to provide a recommendation for the security of the application?
正解:A
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
You use Semantic Versioning (Sem Ver) as a dependency versioning strategy.
You perform changes to code as shown in the following table.
Which part of the version should you increment for each change? To answer, drag the appropriate parts to the correct changes. Each part 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 perform changes to code as shown in the following table.
Which part of the version should you increment for each change? To answer, drag the appropriate parts to the correct changes. Each part 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.
正解:
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 code duplication.
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 code duplication.
Does this meet the goal?
正解:A
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
Note: This question part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the staled goals. Some question sets might have more than one correct solution, whale 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 integrate a cloud-hosted Jenkins server and a new Azure DevOps depsoyment.
You need Azure DevOps to send a notification to Jenkins when a developer commits changes to a branch in Azure Repos.
Solution: You add a trigger to the build pipeline.
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.
You integrate a cloud-hosted Jenkins server and a new Azure DevOps depsoyment.
You need Azure DevOps to send a notification to Jenkins when a developer commits changes to a branch in Azure Repos.
Solution: You add a trigger to the build pipeline.
Does this meet the goal?
正解:B
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
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?
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?
正解:B
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)