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 project.
Your build process creates several artifacts.
You need to deploy the artifacts to on-premises servers.
Solution: You deploy an Octopus Deploy server. You deploy a polled Tentacle agent to an
on-premises server. You add an Octopus task to the deployment pipeline.
Does this meet the goal?
Show answerHide answer
Correct answer: BNo
Explanation
Explanation:
Instead you should deploy an Azure self-hosted agent to an on-premises server.
Note: To build your code or deploy your software using Azure Pipelines, you need at least
one agent.
If your on-premises environments do not have connectivity to a Microsoft-hosted agent pool
(which is typically the case due to intermediate firewalls), you'll need to manually configure
a self-hosted agent on on-premises computer(s).
Question 112Choose 1
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?
Show answerHide answer
Correct answer: Da subscription
Question 113Choose 1
Your company has a project in Azure DevOps for a new application. The application will be
deployed to several Azure virtual machines that run Windows Server 2016.
You need to recommend a deployment strategy for the virtual machines. The strategy must
meet the following requirements:
Ensure that the virtual machines maintain a consistent configuration.
Minimize administrative effort to configure the virtual machines
What should you include in the recommendation?
Show answerHide answer
Correct answer: CAzure Resource Manager templates and the PowerShell Desired State Configuration
(DSC) extension for Windows
Explanation
Explanation:
The Custom Script Extension downloads and executes scripts on Azure virtual machines.
This extension is useful for post deployment configuration, software installation, or any
other configuration or management tasks. Scripts can be downloaded from Azure storage
or GitHub, or provided to the Azure portal at extension run time. The Custom Script
Extension integrates with Azure Resource Manager templates, and can be run using the
Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.
Question 114Choose 1
Your company is concerned that when developers introduce open source libraries, it
creates licensing compliance issues.
You need to add an automated process to the build pipeline to detect when common open
source libraries are added to the code base.
What should you use?
Show answerHide answer
Correct answer: CWhiteSource
Question 115Choose 1
You have a containerized solution that runs in Azure Container Instances. The solution
contains a frontend container named App1 and a backend container named DB1. DB1
loads a large amount of data during startup.
You need to verify that DB1 can handle incoming requests before users can submit
requests to Appl.
What should you configure?
Show answerHide answer
Correct answer: Ca readiness probe
Explanation
Explanation:
For containerized applications that serve traffic, you might want to verify that your container
is ready to handle incoming requests. Azure Container Instances supports readiness
probes to include configurations so that your container can't be accessed under certain
conditions.
Question 116Choose 1
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?
Show answerHide answer
Correct answer: CBlack Duck
Explanation
Explanation:
Secure and Manage Open Source Software
Black Duck helps organizations identify and mitigate open source security, license
compliance and code-quality risks across application and container portfolios.
Black Duck Hub and its plugin for Team Foundation Server (TFS) allows you to
automatically find and fix open source security vulnerabilities during the build process, so
you can proactively manage risk. The integration allows you to receive alerts and fail builds
when any Black Duck Hub policy violations are met.
Question 117Choose 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.
Your company uses Azure DevOps to manage the build and release processes for
applications.
You use a Git repository for applications source control.
You need to implement a pull request strategy that reduces the history volume in the
master branch.
Solution: You implement a pull request strategy that uses squash merges.
Does this meet the goal?
Show answerHide answer
Correct answer: BNo
Question 118Choose 2
You use GitHub for source control.
A file that contains sensitive data is committed accidentally to the Get repository of a
project.
You need to delete the file and its history form the repository.
Which two tools can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Show answerHide answer
Correct answer: A, Bthe git filter-branch commandBFG Repo-Cleaner
Explanation
Explanation:
To entirely remove unwanted files from a repository's history you can use either the git
filter-branch command or the BFG Repo-Cleaner open source tool.
Question 119
You need to ensure that Microsoft Visual Studio 2017 can remotely attach to an Azure
Function named fa-11566895.
To complete this task, sign in to the Microsoft Azure portal.
Show answerHide answer
Explanation
Explanation:
Enable Remote Debugging
Before we start a debugging session to our Azure Function app we need to enable the
functionality.
Navigate in the Azure portal to your function app fa-11566895
Go to the “Application settings”
Under “Debugging” set Remote Debugging to On and set Remote Visual Studio
version to 2017.
Question 120Choose 1
You plan to use a NuGet package in a project in Azure DevOps. The NuGet package is in a
feed that requires authentication.
You need to ensure that the project can restore the NuGet package automatically.
What should the project use to automate the authentication?
Show answerHide answer
Correct answer: Ban Azure Artifacts Credential Provider
Explanation
Explanation:
The Azure Artifacts Credential Provider automates the acquisition of credentials needed to
restore NuGet
packages as part of your .NET development workflow. It integrates with MSBuild, dotnet,
and NuGet(.exe) and works on Windows, Mac, and Linux. Any time you want to use
packages from an Azure Artifacts feed, the Credential Provider will automatically acquire
and securely store a token on behalf of the NuGet client you're using.
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.