πŸ”

AZ-400 β€” questions

Page 11 of 18 Β· 358 total questions.

Topic 7 Β· Question 303

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 recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements: β€’ The build 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 the Windows Server 2019 with Visual Studio 2019 image. Include the Java Tool Installer task in the build pipeline. Does this meet the goal?

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

The correct answer is B. Option B: No.

Topic 7 Β· Question 304

You have a project in Azure DevOps. You create the following YAML template named Template1.yml. steps: - script: npm install - script: yarn install - script: npm run compile You create the following pipeline named File1.yml. parameters: usersteps: - task: MyTask@1 - script: echo Done You need to ensure that Template1.yaml runs before File1.yml. How should you update File1.yml?

  • Aparameters: usersteps: extends: template: template1.yml - task: MyTask@1 - script: echo Done
  • Btemplate: template1.yml parameters: usersteps: - task: MyTask@1 - script: echo Done
  • Cextends: template: templatel.yml parameters: usersteps: - task: MyTask@1 - script: echo Done (correct answer)
  • Dparameters: usersteps: - template: templatel.yml - task: MyTask@1 - script: echo Done
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: extends: template: templatel.yml parameters: usersteps: - task: MyTask@1 - script: echo Done.

Topic 7 Β· Question 305

You have an Azure solution that contains a build pipeline in Azure Pipelines. You experience intermittent delays before the build pipeline starts. You need to reduce the time it takes to start the build pipeline. What should you do?

  • AEnable self-hosted build agents. (correct answer)
  • BCreate a new agent pool.
  • CSplit the build pipeline into multiple stages.
  • DPurchase an additional parallel job.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Enable self-hosted build agents.

Topic 7 Β· Question 306

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 recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements: β€’ The build 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?

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

The correct answer is B. Option B: No.

Topic 7 Β· Question 307

You store source code in a Git repository in Azure Repos. You use a third-party continuous integration (CI) tool to control builds. What will Azure DevOps use to authenticate with the tool?

  • Acertificate authentication
  • Ba personal access token (PAT) (correct answer)
  • Ca Shared Access Signature (SAS) token
  • DNTLM authentication
Reveal answer & explanation
Correct answer: B

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

Topic 7 Β· Question 309

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 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?

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

The correct answer is B. Option B: No.

Topic 7 Β· Question 310

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 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?

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

The correct answer is A. Option A: Yes.

Topic 7 Β· Question 311

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 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 2019 agent pool. Include the Java Tool Installer task in the build pipeline. Does this meet the goal?

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

The correct answer is B. Option B: No.

Topic 7 Β· Question 312

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 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?

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

The correct answer is B. Option B: No.

Topic 7 Β· Question 313

Your company uses a Git repository in Azure Repos to manage the source code of a web application. The master branch is protected from direct updates. Developers work on new features in the topic branches. Because of the high volume of requested features, it is difficult to follow the history of the changes to the master branch. You need to enforce a pull request merge strategy. The strategy must meet the following requirements: β€’ Consolidate commit histories. β€’ Merge the changes into a single commit. Which merge strategy should you use in the branch policy?

  • Asquash merge (correct answer)
  • Bfast-forward merge
  • CGit fetch
  • Dno-fast-forward merge
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: squash merge.

Topic 7 Β· Question 314 Β· Select all that apply

Your company uses cloud-hosted Jenkins for builds. You need to ensure that Jenkins can retrieve source code from Azure Repos. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • ACreate a webhook in Jenkins.
  • BAdd the Team Foundation Server (TFS) plug-in to Jenkins. (correct answer)
  • CAdd a personal access token to your Jenkins account. (correct answer)
  • DCreate a personal access token (PAT) in your Azure DevOps account. (correct answer)
  • ECreate a service hook in Azure DevOps.
Reveal answer & explanation
Correct answer: B, C, D

The correct answer is B, C, D. Option B: Add the Team Foundation Server (TFS) plug-in to Jenkins. Option C: Add a personal access token to your Jenkins account. Option D: Create a personal access token (PAT) in your Azure DevOps account.

Topic 7 Β· Question 316

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?

  • ABullseye Coverage
  • BJUnit
  • CJaCoCo (correct answer)
  • DMSTest
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: JaCoCo.

Topic 7 Β· Question 319

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?

  • ACobertura (correct answer)
  • BBullseye Coverage
  • CMSTest
  • DCoverlet
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Cobertura.

Topic 7 Β· Question 320

You have an existing build pipeline in Azure Pipelines. You need to use incremental builds without purging the environment between pipeline executions. What should you use?

  • Aa self-hosted agent (correct answer)
  • BMicrosoft-hosted parallel jobs
  • Ca File Transform task
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: a self-hosted agent.

Topic 7 Β· Question 322

You have a private project in Azure DevOps. You need to ensure that a project manager can create custom work item queries to report on the project's progress. The solution must use the principle of least privilege. To which security group should you add the project manager?

  • AReader
  • BProject Collection Administrators
  • CProject Administrators
  • DContributor (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Contributor.

Topic 7 Β· Question 323

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 2019. 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?

  • AAzure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows (correct answer)
  • BDeployment YAML and Azure pipeline deployment groups
  • CAzure Resource Manager templates and the Custom Script Extension for Windows
  • DDeployment YAML and Azure pipeline stage templates
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Azure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows.

Topic 7 Β· Question 324

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?

  • AUniversal Packages
  • Bupstream sources (correct answer)
  • Cviews in Azure Artifacts
  • Da symbol server
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: upstream sources.

Topic 7 Β· Question 329

You use a Git repository in Azure Repos to manage the source code of a web application. Developers commit changes directly to the default branch. You need to implement a change management procedure that meets the following requirements: β€’ The default branch must be protected, and new changes must be built in the feature branches first. β€’ Changes must be reviewed and approved by at least one release manager before each merge. β€’ Changes must be brought into the default branch by using pull requests. What should you configure in Azure Repos?

  • Abranch policies of the default branch (correct answer)
  • BServices in Project Settings
  • CDeployment pools in Project Settings
  • Dbranch security of the default branch
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: branch policies of the default branch.

Topic 7 Β· Question 330

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 fast-forward merges. Does this meet the goal?

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

The correct answer is B. Option B: No.

Topic 7 Β· Question 331

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?

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

The correct answer is A. Option A: Yes.

Showing questions 201–220 of 358 Β· Page 11 of 18