πŸ”

AZ-400 β€” questions

Page 14 of 18 Β· 358 total questions.

Topic 7 Β· Question 384

You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention compliance for the resources deployed to Subscription1. You have a pipeline named Pipeline1 in Azure Pipelines. Pipeline1 deploys Azure Resource Manager (ARM) resources to Subscription1. You need to ensure that the resources deployed by Pipeline1 comply with Policy1. What should you add to Pipeline1?

  • Aa pre-deployment task that runs a security and compliance assessment (correct answer)
  • Ba post-deployment task that runs a security and compliance assessment
  • Can ARM template deployment task to assign Policy1 to Subscription1
  • Dan ARM template deployment task to deploy Policy1 to Subscription1
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: a pre-deployment task that runs a security and compliance assessment.

Topic 7 Β· Question 386

You have a project in Azure DevOps. You need to push notifications about pull requests to a Microsoft Teams channel. The solution must minimize development effort. What should you do?

  • AInstall the Azure Pipelines app for Teams and configure a subscription to receive notifications in the channel.
  • BUse Azure Automation to connect to the Azure DevOps REST API and send messages to Teams.
  • CInstall the Azure Repos app for Teams and configure a subscription to receive notifications in the channel. (correct answer)
  • DUse an Azure function to connect to the Azure DevOps REST API and send messages to Teams.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Install the Azure Repos app for Teams and configure a subscription to receive notifications in the channel.

Topic 7 Β· Question 388

You have an Azure DevOps project that produces Node Package Manager (npm) packages. Multiple projects consume the packages. You need to configure Azure Artifacts to ensure that both the latest and pre-release versions of the packages are available for consumption. What should you do?

  • ACreate two feed views named @prerelease and @release, Set @release as the default view. Configure a release pipeline that tags the packages as release after successful testing.
  • BCreate a feed view named @prerelease. Configure a release pipeline that tags the packages as release after successful testing.
  • CCreate two feed views named @prerelease and @default. Configure a release pipeline that promotes a package to the @default view after successful testing.
  • DCreate two feed views named @prerelease and @release. Set @release as the default view. Configure a release pipeline that promotes a package to the @release view after successful testing. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create two feed views named @prerelease and @release. Set @release as the default view. Configure a release pipeline that promotes a package to the @release view after successful testing.

Topic 7 Β· Question 389

You have an Azure subscription that contains the resources shown in the following table. Project produces npm packages that are published to Feed1. Feed1 is consumed by multiple projects. You need to ensure that only tested packages are available for consumption. The solution must minimize development effort. What should you do?

Exhibit 1 for question 389
  • ACreate a feed view named @release and set @release as the default view. After the npm packages test successfully, configure a release pipeline that promotes a package to the @release view. (correct answer)
  • BCreate a feed view named @release and set @release as the default view. After the npm packages test successfully, configure a release pipeline that tags the packages as release.
  • CCreate a feed view named @default. After the npm packages test successfully, configure a release pipeline that tags the packages as release.
  • DCreate a feed view named @default. After the npm packages test successfully, configure a release pipeline that promotes a package to the @default view.
Reveal answer & explanation
Correct answer: A

Create a feed view named @release and set it as the default view, then configure a release pipeline that promotes a package to the @release view only after it tests successfully (A). Consumers using the default view then see only tested (released) packages. Promoting to a view β€” not tagging β€” is how Azure Artifacts gates package quality with minimal effort.

Topic 7 Β· Question 390

Your company has an Azure DevOps project that produces Node Package Manager (npm) packages. Multiple projects consume the packages. You need to minimize the amount of disk space used by older packages in Azure Artifacts. What should you modify?

  • Athe retention settings of the project’s release
  • Bthe retention settings of the project’s pipeline (correct answer)
  • Cthe retention settings of the project’s tests
  • Dthe retention settings of the company pipeline
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: the retention settings of the project’s pipeline.

Topic 8 Β· Question 396

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?

  • AIn Azure Cloud Shell, run Azure CLI commands to create and delete the new virtual machines in a staging resource group.
  • BIn Azure DevOps, configure new tasks in the release pipeline to deploy to Azure Cloud Services.
  • CFrom Azure Cloud Shell, run Azure PowerShell commands to create and delete the new virtual machines in a staging resource group.
  • DIn Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: In Azure DevOps, configure new tasks in the release pipeline to create and delete the virtual machines in Azure DevTest Labs.

Explanation

An Azure Virtual Machine provides full control of the OS when you need to run custom or legacy workloads.

Topic 8 Β· Question 400

Your company uses Azure DevOps to manage the build and release processes for applications. You use a Git repository for applications source control. You plan to create a new branch from an existing pull request. Later, you plan to merge the new branch and the target branch of the pull request. You need to use a pull request action to create the new branch. The solution must ensure that the branch uses only a portion of the code in the pull request. Which pull request action should you use?

  • ASet as default branch
  • BApprove with suggestions
  • CCherry-pick (correct answer)
  • DReactivate
  • ERevert
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Cherry-pick.

Topic 8 Β· Question 402

You are designing a build pipeline in Azure Pipelines. The pipeline requires a self-hosted agent. The build pipeline will run once daily and will take 30 minutes to complete. You need to recommend a compute type for the agent. The solution must minimize costs. What should you recommend?

  • Aan Azure Kubernetes Service (AKS) cluster
  • BAzure Container Instances
  • Can Azure virtual machine scale set
  • DAzure virtual machines (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Azure virtual machines

Explanation

An Azure Virtual Machine provides full control of the OS when you need to run custom or legacy workloads. This option delivers the requirement at the lowest cost.

Topic 8 Β· Question 404

You have a project in Azure DevOps. You have an Azure Resource Group deployment project in Microsoft Visual Studio that is checked in to the Azure DevOps project. You need to create a release pipeline that will deploy resources by using Azure Resource Manager templates. The solution must minimize administrative effort. Which task type should you include in the solution?

  • AAzure Cloud Service Deployment
  • BAzure RM Web App Deployment
  • CAzure PowerShell (correct answer)
  • DAzure App Service Manage
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Azure PowerShell.

Topic 8 Β· Question 407

You have an Azure DevOps project that contains a release pipeline and a Git repository. When a new code revision is committed to the repository, a build and release is triggered. You need to ensure that release information for the pipeline is added automatically to the work items associated to the Git commit. What should you do?

  • AModify the Integrations options for the pipeline. (correct answer)
  • BModify the post-deployment conditions for the last stage of the pipeline.
  • CAdd an agentless job to the pipeline.
  • DModify the service hooks for the project.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Modify the Integrations options for the pipeline.

Topic 8 Β· Question 409

Your company has a release pipeline in an Azure DevOps project. You plan to deploy to an Azure Kubernetes Services (AKS) cluster by using the Helm package and deploy task. You need to install a service in the AKS namespace for the planned deployment. Which service should you install?

  • AAzure Container Registry
  • BChart
  • CKubectl
  • DTiller (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Tiller.

Topic 8 Β· Question 413 Β· Select all that apply

You plan to use Terraform to deploy an Azure resource group from a Windows system. You need to install the required frameworks to support the planned deployment. Which two frameworks should you install? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AVault
  • BTerratest (correct answer)
  • CNode.js
  • DYeoman (correct answer)
  • ETiller
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Terratest Option D: Yeoman.

Topic 8 Β· Question 419

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 approval process that contains a condition. The condition requires that releases be approved by a team leader before they are deployed. You have a policy stating that approvals must occur within eight hours. You discover that deployment fail if the approvals take longer than two hours. You need to ensure that the deployments only fail if the approvals take longer than eight hours. Solution: From Post-deployment conditions, you modify the Time between re-evaluation of gates option. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 8 Β· Question 420

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 approval process that contains a condition. The condition requires that releases be approved by a team leader before they are deployed. You have a policy stating that approvals must occur within eight hours. You discover that deployment fail if the approvals take longer than two hours. You need to ensure that the deployments only fail if the approvals take longer than eight hours. Solution: From Pre-deployment conditions, you modify the Time between re-evaluation of gates option. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 8 Β· Question 421

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 approval process that contains a condition. The condition requires that releases be approved by a team leader before they are deployed. You have a policy stating that approvals must occur within eight hours. You discover that deployment fail if the approvals take longer than two hours. You need to ensure that the deployments only fail if the approvals take longer than eight hours. Solution: From Pre-deployment conditions, you modify the Timeout setting for pre-deployment approvals. Does this meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 8 Β· Question 423

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 approval process that contains a condition. The condition requires that releases be approved by a team leader before they are deployed. You have a policy stating that approvals must occur within eight hours. You discover that deployment fail if the approvals take longer than two hours. You need to ensure that the deployments only fail if the approvals take longer than eight hours. Solution: From Post-deployment conditions, you modify the Timeout setting for post-deployment approvals. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 8 Β· Question 425

You have a free tier of an Azure DevOps organization named Contoso. Contoso contains 10 private projects. Each project has multiple jobs with no dependencies. The build process requires access to resource files located in an on-premises file system. You frequently run the jobs on five self-hosted agents but experience long build times and frequently queued builds. You need to minimize the number of queued builds and the time it takes to run the builds. What should you do?

  • AConfigure the pipelines to use the Microsoft-hosted agents.
  • BRegister additional self-hosted agents.
  • CPurchase self-hosted parallel jobs. (correct answer)
  • DPurchase Microsoft-hosted parallel jobs.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Purchase self-hosted parallel jobs.

Topic 8 Β· Question 427

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure SQL database named DB1. You need to create a release pipeline that uses the Azure SQL Database Deployment task to update DB1. Which artifact should you deploy?

  • Aa BACPAC
  • Ba DACPAC (correct answer)
  • Can LDF file
  • Dan MDF file
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: a DACPAC.

Topic 8 Β· Question 429 Β· Select all that apply

Your company has a project in Azure DevOps for a new web application. The company uses ServiceNow for change management. You need to ensure that a change request is processed before any components can be deployed to the production environment. What are two ways to integrate ServiceNow into the Azure DevOps release pipeline? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • ADefine a deployment control that invokes the ServiceNow REST API.
  • BDefine a pre-deployment gate before the deployment to the Prod stage. (correct answer)
  • CDefine a deployment control that invokes the ServiceNow SOAP API.
  • DDefine a post-deployment gate after the deployment to the QA stage. (correct answer)
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Define a pre-deployment gate before the deployment to the Prod stage. Option D: Define a post-deployment gate after the deployment to the QA stage.

Topic 8 Β· Question 430

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?

  • AImplement a feature flag. (correct answer)
  • BCreate a fork in the build.
  • CCreate a branch in the build.
  • DImplement a branch policy.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Implement a feature flag.

Showing questions 261–280 of 358 Β· Page 14 of 18