microsoft az-400 practice test

Microsoft Azure DevOps Solutions (beta)

Note: This exam has case studies

Question 1 Topic 6, Mixed Questions

DRAG DROP
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.
Select and Place:

Answer:

Explanation:
Woodgrove Bank identifies the following technical requirements:
The Azure DevOps dashboard must display the metrics shown in the following table:


Box 1: Velocity
Velocity displays your team velocity. It shows what your team delivered as compared to plan.
Box 2: Release pipeline overview
Release pipeline overview shows the status of environments in a release definition.
Box 3: Query tile
Query tile displays the total number of results from a query.
Reference: https://docs.microsoft.com/en-us/azure/devops/report/dashboards/widget-catalog?view=azure-devops

Discussions

Question 2 Topic 6, Mixed Questions

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?

  • A. --squash
  • B. --no-verify
  • C. --message ''
  • D. --no-post-rewrite
Answer:

B

Explanation:
The commit-msg hook is invoked by git-commit and git-merge, and can be bypassed with the --no-verify option.
Reference:
https://git-scm.com/docs/githooks

Discussions

Question 3 Topic 6, Mixed Questions

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?

  • A. path filters
  • B. batch changes
  • C. scheduled builds
  • D. branch filters
Answer:

B

Explanation:
Batching CI runs
If you have many team members uploading changes often, you may want to reduce the number of runs you start. If you set
batch to true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes
that have not yet been built.
Example:
# specific branch build with batching trigger:
batch: true branches: include: - master
To clarify this example, let us say that a push A to master caused the above pipeline to run. While that pipeline is running,
additional pushes B and C occur into the repository. These updates do not start new independent runs immediately. But after
the first run is completed, all pushes until that point of time are batched together and a new run is started.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github

Discussions

Question 4 Topic 6, Mixed Questions

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.
Hot Area:

Answer:

Explanation:
Box 1: Get-AzResource
Use the following command to examine the access control mode for all workspaces in the subscription:
PowerShell
Get-AzResource -ResourceType Microsoft.OperationalInsights/workspaces -ExpandProperties | foreach {$_.Name + ": " +
$_.Properties.features.enableLogAccessUsingOnlyResourcePermissions Box 2: -ResourceType
Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/logs/manage-access

Discussions

Question 5 Topic 6, Mixed Questions

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.
Hot Area:

Answer:

Explanation:
Box 1: rwx
The Log Analytics agent for Linux runs as the omsagent user. To grant >write permission to the omsagent user, run the
command setfacl -m u:omsagent:rwx /tmp.
Box 2: /tmp
Deploying DSC to a Linux node uses the /tmp folder.
Reference: https://docs.microsoft.com/en-us/azure/automation/automation-dsc-onboarding

Discussions

Question 6 Topic 6, Mixed Questions

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.

  • A. authorization credentials
  • B. the project name
  • C. the deployment group name
  • D. the organization URL
  • E. the agent pool name
Answer:

A D

Explanation:
Unattended config:
The agent can be set up from a script with no human intervention. You must pass --unattended and the answers to all
questions.
To configure an agent, it must know the URL to your organization or collection and credentials of someone authorized to set
up agents. All other responses are optional.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows

Discussions

Question 7 Topic 6, Mixed Questions

HOTSPOT
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.
Hot Area:

Answer:

Explanation:
Branch lifetime: Short-lived
Branch type: Feature
Feature branches are used when developing 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 branch will be finished, it will always be merged back into the master branch.
References: https://gist.github.com/digitaljhelms/4287848

Discussions

Question 8 Topic 6, Mixed Questions

Your company has an on-premises Bitbucket Server that is used for Git-based source control. The server is protected by a
firewall that blocks inbound Internet traffic.
You plan to use Azure DevOps to manage the build and release processes.
Which two components are required to integrate Azure DevOps and Bitbucket? Each correct answer presents part of the
solution.
NOTE: Each correct selection is worth one point.

  • A. a deployment group
  • B. a Microsoft-hosted agent
  • C. service hooks
  • D. a self-hosted agent
  • E. an External Git service connection
Answer:

D E

Explanation:
E: GitLab CI/CD can be used with GitHub or any other Git server such as BitBucket. Instead of moving your entire project to
GitLab, you can connect your external repository to get the benefits of GitLab CI/ CD.
Note: When a pipeline uses a remote, 3rd-party repository host such as Bitbucket Cloud, the repository is configured with
webhooks that notify Azure Pipelines Server or TFS when code has changed and a build should be triggered. Since on-
premises installations are normally protected behind a firewall, 3rd-party webhooks are unable to reach the on-premises
server. As a workaround, you can use the External Git repository type which uses polling instead of webhooks to trigger a
build when code has changed.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git

Discussions

Question 9 Topic 6, Mixed Questions

SIMULATION
You plan to deploy a website that will be hosted in two Azure regions.
You need to create an Azure Traffic Manager profile named az400123456789n1-tm in a resource group named
RG1lod123456789. The solution must ensure that users will always connect to a copy of the website that is in the same
country.
To complete this task, sign in to the Microsoft Azure portal.

Answer:

See explanation below.

Explanation:
1. Go to the Azure portal, navigate to Traffic Manager profiles and click on the Add button to create a routing profile.

2, In the Create Traffic Manager profile, enter, or select these settings:
Name: az400123456789n1-tm
Routing method: Geographic
Resource group: RG1lod123456789

Note: Traffic Manager profiles can be configured to use the Geographic routing method so that users are directed to specific
endpoints (Azure, External or Nested) based on which geographic location their DNS query originates from. This empowers
Traffic Manager customers to enable scenarios where knowing a users geographic region and routing them based on that is
important.
Reference:
https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-geographic-routing-capability-in-azure-traffic-
manager/

Discussions

Question 10 Topic 6, Mixed Questions

You have a private distribution group that contains provisioned and unprovisioned devices.
You need to distribute a new iOS application to the distribution group by using Microsoft Visual Studio App Center.
What should you do?

  • A. Select Register devices and sign my app.
  • B. Create an active subscription in App Center Test.
  • C. Create an unsigned build.
  • D. Add the device owner to the collaborators group.
Answer:

A

Explanation:
The following diagram displays the entire app re-signing flow in App Center.

Incorrect Answers:
C: The application build must be signed.
D: The device owner does not need to be added.
Reference:
https://docs.microsoft.com/hu-hu/appcenter/distribution/auto-provisioning

Discussions
To page 2