🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 10 hours remaining!

Microsoft DevOps Engineer Expert AZ-400 Practice Question

You maintain an Azure DevOps YAML pipeline that runs on Microsoft-hosted Ubuntu agents. During the test stage you execute dotnet test for a solution that uses xUnit. The build must satisfy the following requirements:

  • If any tests fail, the job must stop and be marked failed.
  • A 'Tests' tab must appear in the pipeline run with detailed results that include pass/fail status for each test case.
  • You must not introduce any additional build tools or extensions.

Which set of two tasks should you add immediately after the build step to meet the requirements with the smallest footprint?

  • A VisualStudioTest@2 task configured for test assemblies **\*test*.dll, followed by a PublishTestResults@2 task.

  • A single DotNetCoreCLI task with command test and no additional arguments, relying on its default behavior.

  • A Bash script that runs dotnet test and pipes the output to the console, with no additional tasks.

  • A DotNetCoreCLI task with command set to test and arguments --logger trx, followed by a PublishTestResults@2 task that points to **/*.trx.

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot