πŸ”

AZ-400 β€” questions

Page 16 of 18 Β· 358 total questions.

Topic 8 Β· Question 465

You use Azure DevOps processes to build and deploy code. You need to compare how much time is spent troubleshooting issues found during development and how much time is spent troubleshooting issues found in released code. Which KPI should you use?

  • Adefect escape rate (correct answer)
  • Bunplanned work rate
  • Cdefect rate
  • Drework rate
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: defect escape rate.

Topic 8 Β· Question 466

You have a project in Azure DevOps named Project1. You implement a Continuous Integration/Continuous Deployment (CI/CD) pipeline that uses PowerShell Desired State Configuration (DSC) to configure the application infrastructure. You need to perform a unit test and an integration test of the configuration before Project1 is deployed. What should you use?

  • Athe PSScriptAnalyzer tool
  • Bthe Pester test framework (correct answer)
  • Cthe PSCodeHealth module
  • Dthe Test-DscConfiguration cmdlet
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: the Pester test framework.

Topic 8 Β· Question 467

You use Azure Repos to manage source code and Azure Pipelines to implement continuous integration and continuous deployment (CI/CD). You need to ensure that all comments on pull requests are resolved before the pull requests are included in a build. The solution must minimize administrative effort. What should you include in the solution?

  • Aa custom action
  • Ba post-deployment gate
  • Ca branch policy (correct answer)
  • Da pre-deployment gate
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: a branch policy.

Topic 9 Β· Question 470

You plan to create an image that will contain a .NET Core application. You have a Dockerfile file that contains the following code. (Line numbers are included for reference only.) You need to ensure that the image is as small as possible when the image is built. Which line should you modify in the file?

Exhibit 1 for question 470
  • A1
  • B3
  • C4 (correct answer)
  • D7
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 4.

Topic 9 Β· Question 471

You have a project in Azure DevOps named Project1. Project1 contains a build pipeline named Pipe1 that builds an application named App1. You have an agent pool named Pool1 that contains a Windows Server 2022-based self-hosted agent. Pipe1 uses Pool1. You plan to implement another project named Project2. Project2 will have a build pipeline named Pipe2 that builds an application named App2. App1 and App2 have conflicting dependencies. You need to minimize the possibility that the two build pipelines will conflict with each other. The solution must minimize infrastructure costs. What should you do?

  • AAdd another self-hosted agent.
  • BAdd a Docker Compose task to the build pipelines.
  • CChange the self-hosted agent to use Red Hat Enterprise Linux (RHEL) 9.
  • DCreate two container jobs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create two container jobs.

Topic 9 Β· Question 472

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 Vault1. You need to configure ADFPipeline1 to retrieve the credential from Vault1. Which type of activity should you use?

Exhibit 1 for question 472
  • ALookup
  • BGet Metadata
  • CΠ‘oΡ€y
  • DWeb (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Web.

Topic 9 Β· Question 473

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 473
  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 9 Β· Question 474

You have an Azure web app that is deployed by using Azure Pipelines. You need to ensure that when a new version of the app is deployed to production, you can roll back to the previous version. The solution must meet the following requirements: β€’ Minimize downtime during the deployment. β€’ Minimize the time it takes for the rollback. What should you use?

  • Aa single web app and two deployment slots (correct answer)
  • Ba single web app and two deployment pipelines
  • Ctwo web apps and an Azure Standard Load Balancer
  • Dtwo web apps and an Azure Traffic Manager instance
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: a single web app and two deployment slots.

Topic 9 Β· Question 475

You have an app named App1 that you release by using Azure Pipelines. App1 has the versions shown in the following table. You complete a code change to fix a bug that was introduced in version 3.4.3. Which version number should you assign to the release?

Exhibit 1 for question 475
  • A3.4.4
  • B3.4.8
  • C3.5.0
  • D4.0.1 (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 4.0.1.

Topic 9 Β· Question 476

You are automating the testing process for your company. You need to automate UI testing of a web application. Which framework should you use?

  • AJaCoco
  • BPlaywright (correct answer)
  • CXamarin.UITest
  • DMicrosoft.CodeAnalysis
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Playwright.

Topic 9 Β· Question 477

You have a project in Azure DevOps named Project1 that references an Azure Artifacts feed named Feed1. You have a package named Package1 that has the versions shown in the following table. You need to perform a build of Project1. Which version of Package1 will be used?

Exhibit 1 for question 477
  • A1.0.3
  • B1.4.0 (correct answer)
  • C2.0.0
  • D2.3.1
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1.4.0.

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

You use Azure Pipelines to build and test code projects. You notice an increase in cycle times. You need to identify whether agent pool exhaustion is causing the issue. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • AQuery the PipelineRun/PipelineRuns endpoint.
  • BQuery the TaskAgentPoolSizeSnapshots endpoint. (correct answer)
  • CView the Pipeline duration report.
  • DView the pool consumption report at the organization level. (correct answer)
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Query the TaskAgentPoolSizeSnapshots endpoint. Option D: View the pool consumption report at the organization level.

Topic 9 Β· Question 481

You have an Azure subscription that contains an Azure pipeline named Pipeline1 and a GitHub repository named Repo1. Repo1 contains Bicep modules. Pipeline1 deploys Azure resources by using the Bicep modules. You need to ensure that all releases comply with Azure Policy before they are deployed to production. What should you do?

  • ATo Pipeline1, add a step that runs a What if deployment before the deployment step.
  • BConfigure a deployment gate for Pipeline1 that uses Azure Automation to run a What If deployment.
  • CCreate an Azure DevOps build that runs on the creation of a pull request and assesses the code for compliance.
  • DConfigure a deployment gate for Pipeline1 and include the Azure DevOps Security and compliance assessment task. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure a deployment gate for Pipeline1 and include the Azure DevOps Security and compliance assessment task.

Topic 9 Β· Question 483

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 Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently. You identify that the failures are unrelated to changes in the source code and execution environment. You need to minimize troubleshooting effort for the TestSuite1 failures. Solution: You enable flaky test management. Does this meet the goal?

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

The correct answer is A. Option A: Yes.

Topic 9 Β· Question 484

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 Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently. You identify that the failures are unrelated to changes in the source code and execution environment. You need to minimize troubleshooting effort for the TestSuite1 failures. Solution: You implement the Test Results Trend widget. Does this meet the goal?

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

The correct answer is B. Option B: No.

Topic 9 Β· Question 485

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 Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently. You identify that the failures are unrelated to changes in the source code and execution environment. You need to minimize troubleshooting effort for the TestSuite1 failures. Solution: You enable Test Impact Analysis (TIA). Does this meet the goal?

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

The correct answer is B. Option B: No.

Topic 9 Β· Question 486

You plan to publish build artifacts by using an Azure pipeline. You need to create an .artifactignore file that meets the following requirements: β€’ Includes all files in the build output folder and all subfolders β€’ Excludes files that have the .dll extension What should you include in the file?

  • A./**!*.dll
  • B**/*!*.dll (correct answer)
  • C*/***.dll
  • D**/*#*.dll
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: **/*!*.dll.

Topic 9 Β· Question 488

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 Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently. You identify that the failures are unrelated to changes in the source code and execution environment. You need to minimize troubleshooting effort for the TestSuite1 failures. Solution: You increase code coverage. Does this meet the goal?

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

The correct answer is B. Option B: No.

Topic 9 Β· Question 489

You have an Azure pipeline that is used to build and deploy an app named App1. The build job uses a Microsoft-hosted Windows agent. The build job for App1 intermittently returns a timeout error. You need to ensure that the build job completes successfully. The solution must minimize administrative effort. What should you do?

  • AChange the configuration of the build agent.
  • BDeploy a self-hosted agent.
  • CChange to a Microsoft-hosted Linux agent.
  • DPurchase more parallel jobs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Purchase more parallel jobs.

Topic 9 Β· Question 490

You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and a user named User1. Pipeline1 is used to build and test an app named App1. User1 is assigned the Contributors role for Pipeline1. You plan to test App1 by using an Azure Deployment Environments environment. You need to ensure that User1 can provision the environment. The solution must follow the principle of least privilege. Which role should you assign to User1?

  • ADevCenter Project Admin
  • BDeployment Environments User (correct answer)
  • CContributors
  • DBuild Administrators
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deployment Environments User.

Showing questions 301–320 of 358 Β· Page 16 of 18