Skip to Content

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

The latest Microsoft AZ-400 Designing and Implementing Microsoft DevOps Solutions certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the Microsoft AZ-400 Designing and Implementing Microsoft DevOps Solutions exam and earn Microsoft AZ-400 Designing and Implementing Microsoft DevOps Solutions certification.

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

Exam Question 21

You have an Azure DevOps organization named Contoso, an Azure DevOps project named Project1, an Azure subscription named Sub1, and an Azure key vault named vault1.
You need to ensure that you can reference the values of the secrets stored in vault1 in all the pipelines of Project1. The solution must prevent the values from being stored in the pipelines.
What should you do?

A. Create a variable group in Project1.
B. Add a secure file to Project1.
C. Modify the security settings of the pipelines.
D. Configure the security policy of Contoso.
Correct Answer:
A. Create a variable group in Project1.
Answer Description:
Use a variable group to store values that you want to control and make available across multiple pipelines.
References:
Microsoft Docs > Add and use variable groups

Exam Question 22

Your team uses an agile development approach.
You need to recommend a branching strategy for the team’s Git repository. The strategy must meet the following requirements:

  • Provide the ability to work on multiple independent tasks in parallel.
  • Ensure that checked-in code remains in a releasable state always.
  • Ensure that new features can be abandoned at any time.
  • Encourage experimentation.

What should you recommend?

A. a single long-running branch
B. multiple long-running branches
C. a single fork per team member
D. a single-running branch with multiple short-lived topic branches
Correct Answer:
D. a single-running branch with multiple short-lived topic branches
Answer Description:
Topic branches, however, are useful in projects of any size. A topic branch is a short-lived branch that you create and use for a single particular feature or related work. This is something you’ve likely never done with a VCS before because it’s generally too expensive to create and merge branches. But in Git it’s common to create, work on, merge, and delete branches several times a day.
References:
3.4 Git Branching – Branching Workflows

Exam Question 23

Your company has a project in Azure DevOps for a new web application.
The company identifies security as one of the highest priorities.
You need to recommend a solution to minimize the likelihood that infrastructure credentials will be leaked.
What should you recommend?

A. Add a Run Inline Azure PowerShell task to the pipeline.
B. Add a PowerShell task to the pipeline and run Set-AzureKeyVaultSecret.
C. Add a Azure Key Vault task to the pipeline.
D. Add Azure Key Vault references to Azure Resource Manger templates.
Correct Answer:
B. Add a PowerShell task to the pipeline and run Set-AzureKeyVaultSecret.
Answer Description:
Azure Key Vault provides a way to securely store credentials and other keys and secrets.
The Set-AzureKeyVaultSecret cmdlet creates or updates a secret in a key vault in Azure Key Vault.
References:
Microsoft Docs > Set-AzureKeyVaultSecret

Exam Question 24

You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

  • The builds must access an on-premises dependency management system.
  • The build outputs must be stored as Server artifacts in Azure DevOps.
  • The source code must be stored in a Git repository in Azure DevOps.

Solution: Configure an Octopus Tentacle on an on-premises machine. Use the Package Application task in the build pipeline.
Does this meet the goal?

A. Yes
B. No
Correct Answer:
A. Yes
Answer Description:
Octopus Deploy is an automated deployment server that makes it easy to automate deployment of ASP.NET web applications, Java applications, NodeJS application and custom scripts to multiple environments.
Octopus can be installed on various platforms including Windows, Mac and Linux. It can also be integrated with most version control tools including VSTS and GIT.
When you deploy software to Windows servers, you need to install Tentacle, a lightweight agent service, on your Windows servers so they can communicate with the Octopus server.
When defining your deployment process, the most common step type will be a package step. This step deploys your packaged application onto one or more deployment targets.
When deploying a package you will need to select the machine role that the package will be deployed to.
References:
Octopus Deploy > Packages
Octopus for Automated Deployment in DevOps models

Exam Question 25

You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

  • The builds must access an on-premises dependency management system.
  • The build outputs must be stored as Server artifacts in Azure DevOps.
  • The source code must be stored in a Git repository in Azure DevOps.

Solution: Install and configure a self-hosted build agent on an on-premises machine. Configure the build pipeline to use the Default agent pool. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?

A. Yes
B. No
Correct Answer:
B. No
Answer Description:
Instead use Octopus Tentacle.
References:
Octopus for Automated Deployment in DevOps models

Exam Question 26

You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

  • The builds must access an on-premises dependency management system.
  • The build outputs must be stored as Server artifacts in Azure DevOps.
  • The source code must be stored in a Git repository in Azure DevOps.

Solution: Configure the build pipeline to use a Hosted VS 2017 agent pool. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?

A. Yes
B. No
Correct Answer:
B. No
Answer Description:
Instead use Octopus Tentacle.
References:
Octopus for Automated Deployment in DevOps models

Exam Question 27

You are designing the development process for your company.
You need to recommend a solution for continuous inspection of the company’s code base to locate common code patterns that are known to be problematic.
What should you include in the recommendation?

A. Microsoft Visual Studio test plans
B. Gradle wrapper scripts
C. SonarCloud analysis
D. the JavaScript task runner
Correct Answer:
C. SonarCloud analysis
Answer Description:
SonarCloud is a cloud service offered by SonarSource and based on SonarQube. SonarQube is a widely adopted open source platform to inspect continuously the quality of source code and detect bugs, vulnerabilities and code smells in more than 20 different languages.
Note: The SonarCloud Azure DevOps extension brings everything you need to have your projects analyzed on SonarCloud very quickly.
Incorrect Answers: Test plans are used to group together test suites and individual test cases. This includes static test suites, requirement-based suites, and query-based suites.
References:
Using SonarCloud with Travis CI
Get started with Azure DevOps Services

Exam Question 28

Your company builds a multi-tier web application.
You use Azure DevOps and host the production application on Azure virtual machines.
Your team prepares an Azure Resource Manager template of the virtual machine that you will use to test new features.
You need to create a staging environment in Azure that meets the following requirements:

  • Minimizes the cost of Azure hosting
  • Provisions the virtual machines automatically
  • Uses the custom Azure Resource Manager template to provision the virtual machines

What should you do?

A. In Azure Cloud Shell, run Azure CLI commands to create and delete the new virtual machines in a staging resource group.
B. In Azure DevOps, configure new tasks in the release pipeline to deploy to Azure Cloud Services.
C. From Azure Cloud Shell, run Azure PowerShell commands to create and delete the new virtual machines in a staging resource group.
D. In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.
Correct Answer:
D. In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.
Answer Description:
You can use the Azure DevTest Labs Tasks extension that’s installed in Azure DevOps to easily integrate your CI/CD build-and-release pipeline with Azure DevTest Labs. The extension installs three tasks:

  1. Create a VM
  2. Create a custom image from a VM
  3. Delete a VM

The process makes it easy to, for example, quickly deploy a “golden image” for a specific test task and then delete it when the test is finished.
References:
Microsoft Docs > Integrate Azure DevTest Labs into your Azure Pipelines CI/CD pipeline

Exam Question 29

You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

  • The builds must access an on-premises dependency management system.
  • The build outputs must be stored as Server artifacts in Azure DevOps.
  • The source code must be stored in a Git repository in Azure DevOps.

Solution: Configure the build pipeline to use a Hosted Ubuntu agent pool. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?

A. Yes
B. No
Correct Answer:
B. No
Answer Description:
Instead use Octopus Tentacle.
References:
Octopus for Automated Deployment in DevOps models

Exam Question 30

Your company has a hybrid cloud between Azure and Azure Stack.
The company uses Azure DevOps for its full CI/CD pipelines. Some applications are built by using Erlang and Hack.
You need to ensure that Erlang and Hack are supported as part of the build strategy across the hybrid clouThe solution must minimize management overhead.
What should you use to execute the build pipeline?

A. a Microsoft-hosted agent
B. Azure DevOps self-hosted agents on Azure DevTest Labs virtual machines.
C. Azure DevOps self-hosted agents on Hyper-V virtual machines
D. Azure DevOps self-hosted agents on virtual machines that run on Azure Stack
Correct Answer:
D. Azure DevOps self-hosted agents on virtual machines that run on Azure Stack
Answer Description:
Azure Stack offers virtual machines (VMs) as one type of an on-demand, scalable computing resource. You can choose a VM when you need more control over the computing environment.
References:
Microsoft Docs > Introduction to Azure Stack Hub VMs