Microsoft certification · Exam AZ-400

AZ-400 Mock Exam Page 4

Microsoft Azure DevOps Solutions (beta)

Free AZ-400 mock exam questions 31–40, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free AZ-400 questions

31–40 of 145 free
Question 31 Choose 1
You have an Azure DevOps project that uses many package feeds. You need to simplify the project by using a single feed that stores packages produced by your company and packages consumed from remote feeds. The solution must support public feeds and authenticated feeds. What should you enable in DevOps?
Show answerHide answer

Correct answer: C upstream sources

Question 32 Choose 1
You have an Azure subscription that contains the resources shown in the following table. DepPipeline1 and ADFPipeline1 use a single credential that is stored in Vault'. You need to configure ADFPipeline1 to retrieve the credential from Vault1. Which type of activity should you use?
Show answerHide answer

Correct answer: A Web

Question 33 Choose 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 two standalone templates, each of which will deploy the resources in its respective group. Does this meet the goal?
Show answerHide answer

Correct answer: B No

Question 34 Choose 1
You have an Azure DevOps organization named Contoso. You need to receive Microsoft Teams notifications when work items are updated. What should you do?
Show answerHide answer

Correct answer: A From Azure DevOps. configure a service hook subscription.

Question 35 Choose 3
You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a web application named
WebApp1. WebApp1 uses state full sessions.
The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.
You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.
You need to implement limited user testing for the new version of WebApp1 on VMSS1. Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Show answerHide answer

Correct answer: B, C, D Redeploy VMSS1. Upload a custom script file to sa1. Modify the Custom Script extension settings of VMSS1.

Question 36 Choose 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 ft. As a result, these questions will not appear in the review screen.
  • You company has a prefect in Azure DevOps for a new web application.
  • You need to ensure that when code is checked in, a build runs automatically.
Solution: From the Triggers tab of the build pipeline, you selected Batch changes while a build is in progress. Does this meet the goal?
Show answerHide answer

Correct answer: B No

Question 37 Choose 1
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 Microsoft-hosted agent pool running a Linux image. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?
Show answerHide answer

Correct answer: A Yes

Explanation

To run your jobs, you'll need at least one agent. A Linux agent can build and deploy different kinds of apps, including Java and Android apps. If your pipelines are in Azure Pipelines and a Microsoft-hosted agent meets your needs, you can skip setting up a private Linux agent. The Azure Pipelines agent pool offers several virtual machine images to choose from, each including a broad range of tools and software. We support Ubuntu, Red Hat, and CentOS.
Question 38 Choose 1
You manage code by using GitHub. You need to ensure that repository owners are notified if a new vulnerable dependency or malware is found in their repository. What should you do?
Show answerHide answer

Correct answer: B Configure Dependabot alerts.

Question 39 Choose 1
You are automating the build process for a Java-based application by using Azure DevOps. You need to add code coverage testing and publish the outcomes to the pipeline. What should you use?
Show answerHide answer

Correct answer: A Cobertura

Question 40 Choose 1
You have an Azure subscription linked to a tenant in Microsoft Azure Active Directory (Azure AD), part of Entrap. The tenant is licensed for Azure AD Premium Plan 1. A security review indicates that too many users have privileged access to resources.
You need to deploy a privileged access management solution that meets the following requirements:
  • Enforces time limits on the use of privileged access
  • Requires approval to activate privileged access
  • Minimizes costs
What should you do first?
Show answerHide answer

Correct answer: D Upgrade the license of the Azure AD tenant.

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.

Get full AZ-400 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 488questions in the bank
  • Newmock on every attempt