πŸ”

AZ-400 β€” questions

Page 12 of 18 Β· 358 total questions.

Topic 7 Β· Question 332

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 an explicit merge. 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 333

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 a three-way merge. 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 334

You need to recommend a Docker container build strategy that meets the following requirements: β€’ Minimizes image sizes β€’ Minimizes the security surface area of the final image What should you include in the recommendation?

  • Amulti-stage builds (correct answer)
  • BPowerShell Desired State Configuration (DSC)
  • CDocker Swarm
  • Dsingle-stage builds
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: multi-stage builds.

Topic 7 Β· Question 335

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?

  • A1
  • B3
  • C4 (correct answer)
  • D7
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 4.

Topic 7 Β· Question 336

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 has a project 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 select Batch changes while a build is in progress. 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 338

You have 50 Node.js-based projects that you scan by using WhiteSource. Each project includes Package.json, Package-lock.json, and Npm-shrinkwrap.json files. You need to minimize the number of libraries reports by WhiteSource to only the libraries that you explicitly reference. What should you do?

  • AConfigure the File System Agent plug-in.
  • BAdd a devDependencies section to Package-lock.json. (correct answer)
  • CConfigure the Artifactory plug-in.
  • DDelete Package-lock.json.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Add a devDependencies section to Package-lock.json.

Topic 7 Β· Question 339

Your company deploys applications in Docker containers. You want to detect known exploits in the Docker images used to provision the Docker containers. You need to integrate image scanning into the application lifecycle. The solution must expose the exploits as early as possible during the application lifecycle. What should you configure?

  • Aa task executed in the continuous integration pipeline and a scheduled task that analyzes the image registry (correct answer)
  • Bmanual tasks performed during the planning phase and the deployment phase
  • Ca task executed in the continuous deployment pipeline and a scheduled task against a running production container
  • Da task executed in the continuous integration pipeline and a scheduled task that analyzes the production container
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: a task executed in the continuous integration pipeline and a scheduled task that analyzes the image registry.

Topic 7 Β· Question 340

Your company has a hybrid cloud between Azure and Azure Stack. The company uses Azure DevOps for its full CI/CD pipelines. Some applications are built by using Erlang and Hack. You need to ensure that Erlang and Hack are supported as part of the build strategy across the hybrid cloud. The solution must minimize management overhead. What should you use to execute the build pipeline?

  • Aa Microsoft-hosted agent
  • BAzure DevOps self-hosted agents on Azure DevTest Labs virtual machines.
  • CAzure DevOps self-hosted agents on Hyper-V virtual machines
  • DAzure DevOps self-hosted agents on virtual machines that run on Azure Stack (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Azure DevOps self-hosted agents on virtual machines that run on Azure Stack

Explanation

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

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

Your company has an Azure DevOps project, The source code for the project is stored in an on-premises repository and uses on an on-premises build server. You plan to use Azure DevOps to control the build process on the build server by using a self-hosted agent. You need to implement the self-hosted agent. You download and install the agent on the build server. Which two actions should you perform next? Each correct answer presents part of the solution.

  • AFrom Azure, create a shared access signature (SAS).
  • BFrom the build server, create a certificate, and then upload the certificate to Azure Storage.
  • CFrom the build server, create a certificate, and then upload the certificate to Azure Key Vault.
  • DFrom DevOps, create a personal access token (PAT). (correct answer)
  • EFrom the build server, run config.cmd. (correct answer)
Reveal answer & explanation
Correct answer: D, E

The correct answer is D, E. Option D: From DevOps, create a personal access token (PAT). Option E: From the build server, run config.cmd.

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

You have an Azure subscription that contains an Azure Active Directory (Azure AD) tenant. You are configuring a build pipeline in Azure Pipelines that will include a task named Task1. Task1 will authenticate by using an Azure AD service principal. Which three values should you configure for Task1? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • Athe tenant ID (correct answer)
  • Bthe subscription ID
  • Cthe client secret (correct answer)
  • Dthe app ID (correct answer)
  • Ethe object ID
Reveal answer & explanation
Correct answer: A, C, D

The correct answer is A, C, D. Option A: the tenant ID Option C: the client secret Option D: the app ID.

Topic 7 Β· Question 344

You need to execute inline testing of an Azure DevOps pipeline that uses a Docker deployment model. The solution must prevent the results from being published to the pipeline. What should you use for the inline testing?

  • Aa single stage Dockerfile
  • Ban Azure Kubernetes Service (AKS) pod
  • Ca multi-stage Dockerfile (correct answer)
  • Da Docker Compose file
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: a multi-stage Dockerfile.

Topic 7 Β· Question 345

You are designing an Azure DevOps strategy for your company's development team. You suspect that the team's productivity is low due to accumulate technical debt. You need to recommend a metric to assess the amount of the team's technical debt. What should you recommend?

  • Athe number of code modules in an application
  • Bthe number of unit test failures
  • Cthe percentage of unit test failures
  • Dthe percentage of overall time spent on rework (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: the percentage of overall time spent on rework.

Topic 7 Β· Question 346

You are developing an open source solution that uses a GitHub repository. You create a new public project in Azure DevOps. You plan to use Azure Pipelines for continuous build. The solution will use the GitHub Checks API. Which authentication type should you use?

  • AOpenID
  • BGitHub App (correct answer)
  • Ca personal access token (PAT)
  • DSAML
Reveal answer & explanation
Correct answer: B

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

Topic 7 Β· Question 347

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 has a project 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 Continuous deployment trigger settings of the release pipeline, you enable the Pull request trigger setting. 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 348

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 has a project 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 Pre-deployment conditions settings of the release pipeline, you select After stage. 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 349

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 has a project 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 Pre-deployment conditions settings of the release pipeline, you select Batch changes while a build is in progress. 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 351 Β· Select all that apply

You have a build pipeline in Azure Pipelines that uses different jobs to compile an application for 10 different architectures. The build pipeline takes approximately one day to complete. You need to reduce the time it takes to execute the build pipeline. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AMove to a blue/green deployment pattern
  • BCreate a deployment group
  • CIncrease the number of parallel jobs (correct answer)
  • DReduce the size of the repository
  • ECreate an agent pool (correct answer)
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: Increase the number of parallel jobs Option E: Create an agent pool.

Topic 7 Β· Question 352

You are creating a build pipeline in Azure Pipelines. You define several tests that might fail due to third-party applications. You need to ensure that the build pipeline completes successfully if the third-party applications are unavailable. What should you do?

  • AConfigure the build pipeline to use parallel jobs
  • BConfigure flaky tests (correct answer)
  • CIncrease the test pass percentage
  • DAdd the Requirements quality widget to your dashboard
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure flaky tests.

Topic 7 Β· Question 354

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 has a project 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 select Enable continuous integration. 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 355 Β· Select all that apply

You have an Azure DevOps organization named Contoso and an Azure DevOps project named Project1. You plan to use Microsoft-hosted agents to build container images that will host full Microsoft .NET Framework apps in a YAML pipeline in Project1. What are two possible virtual machine images that you can use for the Microsoft-hosted agent pool? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • Avs2017-win2016 (correct answer)
  • Bubuntu-16.04
  • Cwin1803
  • DmacOS-10.13
  • Evs.2015-win2012r2 (correct answer)
Reveal answer & explanation
Correct answer: A, E

The correct answer is A, E. Option A: vs2017-win2016 Option E: vs.2015-win2012r2.

Showing questions 221–240 of 358 Β· Page 12 of 18