πŸ”

AZ-400 β€” questions

Page 18 of 18 Β· 358 total questions.

Topic 9 Β· Question 520

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 use an Azure Pipelines pipeline to build and release web apps. You need to configure the pipeline to meet the following requirements: β€’ Only run when there is a change in the /webapp folder. β€’ Only run when a pr is created. Solution: You configure the pipeline definition by using the following elements. Does this meet the goal?

Exhibit 1 for question 520
  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 9 Β· Question 525

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 need to use an Azure Pipelines pipeline to test an app. The solution meet the following requirements: β€’ The pipeline must fail if any tests fail. β€’ The test results must be published to the pipeline. β€’ The test for every pipeline run must be triggered unless the pipeline is cancelled. Solution: You include the following elements in the YAML definition of the pipeline. Does this meet the goal?

Exhibit 1 for question 525
  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 9 Β· Question 526

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 need to use an Azure Pipelines pipeline to test an app. The solution meet the following requirements: β€’ The pipeline must fail if any tests fail. β€’ The test results must be published to the pipeline. β€’ The test for every pipeline run must be triggered unless the pipeline is cancelled. Solution: You include the following elements in the YAML definition of the pipeline. Does this meet the goal?

Exhibit 1 for question 526
  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 9 Β· Question 528 Β· Select all that apply

You have an Azure DevOps subscription that contains the projects shown in the following table. You build apps for the projects by using Azure Pipelines. Which two projects meet the criteria for granting free parallel jobs? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Exhibit 1 for question 528
  • AProject1 (correct answer)
  • BProject3
  • CProject4
  • DProject2 (correct answer)
  • EProject5
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Project1 Option D: Project2.

Topic 9 Β· Question 530

You use an Azure Pipelines pipeline to build and test an app named App1. Your company’s development department works in the feature branches. You need to ensure that a pull request will merge into the main branch only when testing covers more than 90 percent of the code. What should you do?

  • AConfigure a branch policy for the feature branches.
  • BConfigure a branch policy for the main branch. (correct answer)
  • CCreate a Publish Test Results task,
  • DCreate a code coverage configuration YAML file.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure a branch policy for the main branch.

Topic 9 Β· Question 532

You have an Azure Pipelines pipeline named Pipeline1 and a user named User1. Pipeline1 contains a temporary final stage named final1. You need to ensure that User1 can delete final1 when testing is complete. The solution must follow the principle of least privilege. At which level should you grant permissions to User1?

  • Apipeline (correct answer)
  • Borganization
  • Cstage
  • Dproject
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: pipeline.

Topic 10 Β· Question 534

You plan to deploy a new database environment. The solution must meet the technical requirements. You need to prepare the database for the deployment. How should you format the export?

  • ANDF
  • BBACPAC (correct answer)
  • CDACPAC
  • DMDF
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: BACPAC.

Topic 10 Β· Question 535

You need to meet the technical requirements for monitoring App1. What should you use?

  • ASplunk
  • BAzure Application Insights (correct answer)
  • CAzure Advisor
  • DApp Service logs
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Azure Application Insights

Explanation

Application Insights provides application performance monitoring and diagnostics for apps.

Topic 12 Β· Question 537

You add the virtual machines as managed nodes in Azure Automation State Configuration. You need to configure the managed computers in Pool7. What should you do next?

  • AModify the RefreshMode property of the Local Configuration Manager (LCM).
  • BRun the Register-AzureRmAutomationDscNode Azure Powershell cmdlet.
  • CModify the ConfigurationMode property of the Local Configuration Manager (LCM). (correct answer)
  • DInstall PowerShell Core.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Modify the ConfigurationMode property of the Local Configuration Manager (LCM).

Topic 14 Β· Question 543

You need to meet the technical requirements for controlling access to Azure DevOps. What should you use?

  • AAzure Multi-Factor Authentication (MFA)
  • Bon-premises firewall rules
  • Cconditional access policies in Azure AD (correct answer)
  • DAzure role-based access control (Azure RBAC)
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: conditional access policies in Azure AD

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access. Conditional Access enforces access policies based on user, device, location, and risk signals.

Topic 14 Β· Question 544

You need to configure Azure Pipelines to control App2 builds. Which authentication method should you use?

  • AWindows NTLM
  • Bcertificate
  • CSAML
  • Dpersonal access token (PAT) (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: personal access token (PAT).

Topic 15 Β· Question 547

You need to the merge the POC branch into the default branch. The solution must meet the technical requirements. Which command should you run?

  • Agit rebase (correct answer)
  • Bgit merge --squash
  • Cgit push
  • Dgit merge --allow-unrelated-histories
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: git rebase.

Topic 16 Β· Question 548

You need to perform the GitHub code migration. The solution must support the planned changes for the DevOps environment. What should you use?

  • Agit clone
  • BGitHub Importer (correct answer)
  • CImport repository in Azure Repos
  • Dgit-tfs
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: GitHub Importer.

Topic 17 Β· Question 550

In Azure DevOps, you create Project3. You need to meet the requirements of the project. What should you do first?

  • AFrom Azure DevOps, modify the build definition.
  • BFrom SonarQube, obtain an authentication token.
  • CFrom Azure DevOps, create a service endpoint.
  • DFrom SonarQube, create a project. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: From SonarQube, create a project.

Topic 17 Β· Question 551

You need to implement Project4. What should you do first?

  • AAdd the FROM instruction in the Dockerfile file.
  • BAdd a Copy and Publish Build Artifacts task to the build pipeline.
  • CAdd a Docker task to the build pipeline. (correct answer)
  • DAdd the MAINTAINER instruction in the Dockerfile file.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Add a Docker task to the build pipeline.

Topic 18 Β· Question 554

To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?

  • AChange the value of the ConfigurationMode parameter. (correct answer)
  • BReplace the Register-AzureRmAutomationDscNode cmdlet with Register-AzureRmAutomationScheduledRunbook
  • CAdd the AllowModuleOverwrite parameter.
  • DAdd the DefaultProfile parameter.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Change the value of the ConfigurationMode parameter.

Topic 18 Β· Question 555

Which branching strategy should you recommend for the investment planning applications suite?

  • Arelease isolation
  • Bmain only
  • Cdevelopment isolation
  • Dfeature isolation (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: feature isolation.

Topic 18 Β· Question 556

What should you use to implement the code quality restriction on the release pipeline for the investment planning applications suite?

  • Aa pre-deployment approval
  • Ba deployment gate (correct answer)
  • Ca post-deployment approval
  • Da trigger
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: a deployment gate.

Showing questions 341–358 of 358 Β· Page 18 of 18