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 have an Azure DevOps organization named Contoso and an Azure subscription. The
subscription contains an Azure virtual machine scale set named VMSS1 that is configured
for auto scaling.
You have a project in Azure DevOps named Project1. Project1 is used to build a web app
named App1 and deploy App1 to VMSS1.
You need to ensure that an email alert is generated whenever VMSS1 scales in or out.
Solution: From Azure DevOps, configure the Service hooks settings for Project1.
Does this meet the goal?
Show answerHide answer
Correct answer: BNo
Question 42Choose 1
You have an Azure Automation account that contains a webbook. The webbook is used to
configure the application infrastructure of an Azure subscription.
You have a project in Azure DevOps named Project). Project1 contains a repository that
stores code for the webbook.
You need to ensure that every committed change to the code will update automatically and
publish the webbook to Azure Automation.
What should you configure?
Show answerHide answer
Correct answer: Cthe Source control settings for the Automation account
Question 43Choose 1
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 test coverage.
Does this meet the goal?
Show answerHide answer
Correct answer: BNo
Explanation
Instead reduce the code complexity.
Question 44Choose 1
Your company uses Azure DevOps.
Only users who have accounts in Azure Active Directory can access the Azure DevOps
environment.
You need to ensure that only devices that are connected to the on-premises network can
access the Azure DevOps environment.
What should you do?
Show answerHide answer
Correct answer: DIn Azure Active Directory, configure conditional access.
Explanation
Conditional Access is a capability of Azure Active Directory. With Conditional Access, you can implement automated access control decisions for accessing your cloud apps that are based on
conditions. Conditional Access policies are enforced after the first-factor authentication has been
completed.
Question 45Choose 1
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 manage a project in Azure DevOps.
You need to prevent the configuration of the project from changing over time.
Solution: Add a code coverage step to the build pipelines.
Does this meet the goal?
Show answerHide answer
Correct answer: BNo
Question 46Choose 1
You are designing an Azure DevOps strategy for your company’s development team.
You suspect that the team’s productivity is low due to accumulate technical debt.
You need to recommend a metric to assess the amount of the team’s technical debt.
What should you recommend?
Show answerHide answer
Correct answer: Dthe percentage of overall time spent on rework
Question 47Choose 1
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 update the Azure DevOps strategy of your company.
You need to identify the following issues as they occur during the company’s development
process:
Licensing violations
Prohibited libraries
Solution: You implement continuous integration.
Does this meet the goal?
Show answerHide answer
Correct answer: AYes
Explanation
WhiteSource is the leader in continuous open-source software security and compliance
management. WhiteSource integrates into your build process, irrespective of your
programming languages, build tools, or development environments. It works automatically,
continuously, and silently in the background, checking the security, licensing, and quality of
your open source components against WhiteSource constantly-updated denitive database
of open-source repositories.
Question 48Choose 1
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 main template that will deploy the resources in one resource group and
a nested template that will deploy the resources in the other resource group. Does this meet the goal?
Show answerHide answer
Correct answer: BNo
Explanation
Use two linked templates, instead of the nested template.
Question 49Choose 1
You have an existing build pipeline in Azure Pipelines.
You need to use incremental builds without purging the environment between pipeline
executions.
What should you use?
Show answerHide answer
Correct answer: Ba self-hosted agent
Explanation
When you run a pipeline on a self-hosted agent, by default, none of the subdirectories are
cleaned in between two consecutive runs. As a result, you can do incremental builds and
deployments, provided that tasks are implemented to make use of that. You can override
this behavior using the workspace setting on the job.
Question 50Choose 2
You have an Azure subscription that contains a Log Analytics workspace named WS1 and
a virtual machine named VM1.
You need to install the Microsoft Enterprise Cloud Monitoring extension on VM1.
Which two values are required to configure the extension? Each correct answer presents
part of the solution.
NOTE: Each correct answer is worth one point.
Show answerHide answer
Correct answer: D, EthelDofWS1
the resource ID of VM1
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.