Microsoft Designing and Implementing Microsoft DevOps Solutions AZ-400 Exam Questions

Page: 1 / 14
Total 628 questions
Question 1

You have a free tier of an Azure DevOps organization named Contoso. Contoso contains 10 private projects. Each project has multiple jobs with no dependencies.

You frequently run the jobs on five self-hosted agents but experience long build times and frequently queued builds.

You need to minimize the number of queued builds and the time it takes to run the builds.

What should you do?



Question 2

During a code review, you discover many quality issues. Many modules contain unused variables and empty catch Modes. You need to recommend a solution to improve the quality o' the code. What should you recommend?



Answer : D

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth.

There is an Apache Maven PMD Plugin which allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results.


Question 3

SIMULATION

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.



Answer : A

1. Open Microsoft Azure Portal

2. Log into your Azure account and go to App Service and look under Monitoring then you will see Alert.

3. Select Add an alert rule

4. Configure the alert rule as per below and click Ok.

Source: Alert on Metrics

Resource Group: az400-9940427-main

Resource: az400-9940427-main

Threshold: 5

Period: Over the last 5 minutes

Webhook: https://contoso.com/notify


https://azure.microsoft.com/es-es/blog/webhooks-for-azure-alerts/

Question 4

You are automating the testing process for your company.

You need to automate UI testing of a web application.

Which framework should you use?



Answer : B

Performing user interface (UI) testing as part of the release pipeline is a great way of detecting unexpected changes, and need not be difficult. Selenium can be used to test your website during a continuous deployment release and test automation.


https://docs.microsoft.com/en-us/azure/devops/pipelines/test/continuous-test-selenium?view=azure-devops

Question 5

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?



Answer : B

Jira Software is a development tool used by agile teams to plan, track, and manage software releases. Using Azure Pipelines, teams can configure CI/CD pipelines for applications of any language, deploying to any platform or any cloud.

Note: Microsoft and Atlassian have partnered together to build an integration between Azure Pipelines and Jira Software.

This integration connects the two products, providing full tracking of how and when the value envisioned with an issue is delivered to end users. This enables teams to setup a tight development cycle from issue creation through release. Key development milestones like builds and deployments associated to a Jira issue can then be tracked from within Jira Software.


https://devblogs.microsoft.com/devops/azure-pipelines-integration-with-jira-software/

Question 6

You use GitHub for source control and Azure Boards for project management. GitHub and Azure Boards are integrated.

You plan to create a pull request in GitHub.

You need to automatically link the request to an existing Azure Boards work item by using the text of AB#.

To which two elements can you add the text? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.



Answer : C, D

You can add the text 'AB#<WORKITEMNUMBER>' to the title or description of the pull request in GitHub, which will automatically link the request to an existing Azure Boards work item with that number.


Azure DevOps Docs: Link a work item to a pull request https://docs.microsoft.com/en-us/azure/devops/repos/git/pull-requests?view=azure-devops#link-a-work-item-to-a-pull-request

GitHub Docs: Creating a pull request https://docs.github.com/en-us/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request

Question 7

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?



Answer : C

Before this will work, the build needs permission to access the Azure Key Vault. This can be added in the Azure Portal.

Open the Access Policies in the Key Vault and add a new one. Choose the principle used in the DevOps build.


https://docs.microsoft.com/en-us/azure/devops/pipelines/release/azure-key-vault

Page:    1 / 14   
Total 628 questions