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.
You plan to create a release pipeline that will deploy Azure resources by using Azure
Resource Manager templates. The release pipeline will create the following resources:
Two resource groups
Four Azure virtual machines in one resource group
Two Azure SQL databases in other resource group
You need to recommend a solution to deploy the resources.
Solution: Create a single standalone template that will deploy all the resources.
Does this meet the goal?
Show answerHide answer
Correct answer: AYes
Explanation
Explanation:
Use two templates, one for each resource group, and link the templates.
Question 102Choose 1
Your company uses a Git repository in Azure Repos lo manage the source code of a web
application. The master branch is protected from direct updates. Developers work on new
features in the topic branches.
Because of the high volume of requested features, it is difficult to follow the history of the
changes to the master branch.
You need to enforce a pull request merge strategy. The strategy must meet the following
requirements:
Consolidate commit histories
Merge tie changes into a tingle commit
Which merge strategy should you use in the branch policy?
Show answerHide answer
Correct answer: Csquash merge
Explanation
Explanation:
Squash merging is a merge option that allows you to condense the Git history of topic
branches when you complete a pull request. Instead of each commit on the topic branch
being added to the history of the default branch, a squash merge takes all the file changes
and adds them to a single new commit on the default branch.
A simple way to think about this is that squash merge gives you just the file changes, and a
regular merge gives you the file changes and the commit history.
Note: Squash merging keeps your default branch histories clean and easy to follow without
demanding any workflow changes on your team. Contributors to the topic branch work how
they want in the topic branch, and the default branches keep a linear history through the use of squash merges. The commit history of a master branch updated with squash
merges will have one commit for each merged branch. You can step through this history
commit by commit to find out exactly when work was done.
Question 103Choose 1
You have a private GitHub repository.
You need to display the commit status of the repository on Azure Boards.
What should you do first?
Show answerHide answer
Correct answer: DAdd the Azure Boards app to the repository.
Explanation
Explanation:
To connect Azure Boards to GitHub.com, connect and configure from Azure Boards. Or,
alternatively, install and configure the Azure Boards app from GitHub. Both methods have
been streamlined and support authenticating and operating via the app rather than an
individual.
Note (see step 4 below):
Add a GitHub connection:
Sign into Azure Boards.
Choose (1) Project Settings, choose (2) GitHub connections and then (3) Connect
your GitHub account.
If this is your first time connecting to GitHub from Azure Boards, you will be asked
to sign in using your GitHub credentials. Choose an account for which you are an
administrator for the repositories you want to connect to.
The Add GitHub Repositories dialog automatically displays and selects all
GitHub.com repositories for which you are an administrator. Unselect any
repositories that you don't want to participate in the integration.
Question 104Choose 1
You have a multi-tier application. The front end of the application is hosted in Azure App
Service. You need to identify the average load times of the application pages. What should
you use?
Show answerHide answer
Correct answer: BAzure Application Insights
Question 105Choose 1
You have an app named App1 that uses Application Insights to monitor application
performance.
You need to analyze how often a page in App1 is accessed.
Which pane in Application Insights should you use?
Show answerHide answer
Correct answer: DUsers
Question 106Choose 1
You are monitoring the health and performance of an Azure web app by using Azure
Application Insights.
You need to ensure that an alert is sent when the web app has a sudden rise in
performance issues and failures.
What should you use?
Show answerHide answer
Correct answer: DSmart Detection
Explanation
Explanation:
Smart Detection automatically warns you of potential performance problems and failure
anomalies in your web application. It performs proactive analysis of the telemetry that your
app sends to Application
Insights. If there is a sudden rise in failure rates, or abnormal patterns in client or server
performance, you get an alert.
Question 107Choose 1
You store source code in a Git repository in Azure repos. You use a third-party continuous
integration (CI) tool to control builds.
What will Azure DevOps use to authenticate with the tool?
Show answerHide answer
Correct answer: Ba personal access token (PAT)
Explanation
Personal access tokens (PATs) give you access to Azure DevOps and Team Foundation
Server (TFS), without using your username and password directly.
Question 108Choose 1
Your company hosts a web application in Azure. The company uses Azure Pipelines for the
build and release management of the application.
Stakeholders report that the past few releases have negatively affected system
performance.
You configure alerts in Azure Monitor.
You need to ensure that new releases are only deployed to production if the releases meet
defined performance baseline criteria in the staging environment first
What should you use to prevent the deployment of releases that fail to meet the
performance baseline?
Show answerHide answer
Correct answer: Ca gate
Question 109Choose 1
Your company develops an application named App1 that is deployed in production. As part of an application update, a new service is being added to App1. The new service
requires access to an application named App2 that is currently in development.
You need to ensure that you can deploy the update to App1 before App2 becomes
available. You must be able to enable the service in App1 once App2 is deployed.
What should you do?
Show answerHide answer
Correct answer: DImplement a feature flag
Question 110Choose 1
You are designing a configuration management solution to support five apps hosted on
Azure App Service.
Each app is available in the following three environments: development, test, and
production.
You need to recommend a configuration management solution that meets the following
requirements:
Supports feature flags
Tracks configuration changes from the past 30 days
Controls access to the configurations by using role-based access control (RBAC)
permission
Stores shared values as key/value pairs that can be used by all the apps
Which Azure service should you recommend as the configuration management solution?
Show answerHide answer
Correct answer: AAzure Cosmos DB
Explanation
Explanation:
The Feature Manager in the Azure portal for App Configuration provides a UI for creating
and managing the feature flags that you use in your applications.
App Configuration offers the following benefits:
A fully managed service that can be set up in minutes
Flexible key representations and mappings
Tagging with labels
Point-in-time replay of settings
Dedicated UI for feature flag management
Comparison of two sets of configurations on custom-defined dimensions
Enhanced security through Azure-managed identities
Encryption of sensitive information at rest and in transit
Native integration with popular frameworks
App Configuration complements Azure Key Vault, which is used to store application
secrets.
Full mock exam
Sit the AZ-400 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real AZ-400 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.