Download Microsoft.AZ-400.Dump4Pass.2023-12-08.118q.vcex

Download Exam

File Info

Exam Microsoft Azure DevOps Solutions
Number AZ-400
File Name Microsoft.AZ-400.Dump4Pass.2023-12-08.118q.vcex
Size 5 MB
Posted Dec 08, 2023
Download Microsoft.AZ-400.Dump4Pass.2023-12-08.118q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

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?


  1. Yes
  2. No 
Correct answer: B
Explanation:
Instead use Octopus Tentacle.    Reference: https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models
Instead use Octopus Tentacle.  
  
Reference: 
https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models



Question 2

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?


  1. Yes
  2. No
Correct answer: B
Explanation:
Instead use Octopus Tentacle.    Reference: https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models
Instead use Octopus Tentacle.  
  
Reference: 
https://explore.emtecinc.com/blog/octopus-for-automated-deployment-in-devops-models



Question 3

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.


  1. Create a webhook in Jenkins.
  2. Add the Team Foundation Server (TFS) plug-in to Jenkins.
  3. Add a personal access token to your Jenkins account. 
  4. Create a personal access token (PAT) in your Azure DevOps account.
  5. Create a service hook in Azure DevOps.
Correct answer: BDE
Explanation:
B: Jenkins requires a plug-in to connect to TFS and check for updates to a project. Jenkins’ built-in Git Plugin or Team Foundation Server Plugin can poll a Team Services repository every few minutes and queue a job when changes are detected.    C: Use Azure DevOps/ Visual Studio Team Services to create a Personal access token. D: After you have generated credentials using Visual Studio Team Services, you need to use those credentials in Jenkins.   Reference:   http://www.aisoftwarellc.com/blog/post/how-to-setup-automated-builds-using-jenkins-and-visual-studio-team-foundation-server/2044
B: Jenkins requires a plug-in to connect to TFS and check for updates to a project. 
Jenkins’ built-in Git Plugin or Team Foundation Server Plugin can poll a Team Services repository every few minutes and queue a job when changes are detected.    
C: Use Azure DevOps/ Visual Studio Team Services to create a Personal access token. 
D: After you have generated credentials using Visual Studio Team Services, you need to use those credentials in Jenkins. 
  
Reference:   
http://www.aisoftwarellc.com/blog/post/how-to-setup-automated-builds-using-jenkins-and-visual-studio-team-foundation-server/2044



Question 4

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?  


  1. Bullseye Coverage
  2. JUnit
  3. JaCoCo
  4. MSTest
Correct answer: C
Explanation:
Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in  Cobertura or JaCoCo format.    Incorrect Answers: A: Bullseye Coverage is used for C++ code, and not for Java.   Note: There are several versions of this question in the exam. The question has two possible correct answers: Cobertura  JaCoCo    Other incorrect answer options you may see on the exam include the following: Coverlet  NUnit  Coverage.py    Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results
Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in  
Cobertura or JaCoCo format.  
  
Incorrect Answers: 
A: Bullseye Coverage is used for C++ code, and not for Java. 
  
Note: 
There are several versions of this question in the exam. The question has two possible correct answers: 
  • Cobertura  
  • JaCoCo    
Other incorrect answer options you may see on the exam include the following: 
  • Coverlet  
  • NUnit  
  • Coverage.py    
Reference: 
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results



Question 5

You are configuring Azure DevOps build pipelines.  
You plan to use hosted build agents.  
Which build agent pool should you use to compile each application type? To answer, drag the appropriate build agent pools to the correct application types. Each build agent pool may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.    
NOTE: Each correct selection is worth one point. 


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
Box 1: Hosted macOS Hosted macOS pool (Azure Pipelines only): Enables you to build and release on macOS without having to configure a self-hosted macOS agent. This option affects where your data is stored.    Box 2: Hosted Hosted pool (Azure Pipelines only): The Hosted pool is the built-in pool that is a collection of Microsoft-hosted agents.   Incorrect Answers: Default pool: Use it to register self-hosted agents that you've set up.   Hosted Windows Container pool (Azure Pipelines only): Enabled you to build and release inside Windows containers. Unless you're building using containers, Windows builds should run in the Hosted VS2017 or Hosted pools.  Hosted Linux/Ubuntu 18.04 does not apply for Mac OS or for Microsoft IIS.  Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents
Box 1: Hosted macOS 
Hosted macOS pool (Azure Pipelines only): Enables you to build and release on macOS without having to configure a self-hosted macOS agent. This option affects where your data is stored.    
Box 2: Hosted 
Hosted pool (Azure Pipelines only): The Hosted pool is the built-in pool that is a collection of Microsoft-hosted agents.   
Incorrect Answers: 
Default pool: Use it to register self-hosted agents that you've set up.   
Hosted Windows Container pool (Azure Pipelines only): Enabled you to build and release inside Windows containers. Unless you're building using containers, Windows builds should run in the Hosted VS2017 or Hosted pools.  
Hosted Linux/Ubuntu 18.04 does not apply for Mac OS or for Microsoft IIS.  
Reference: 
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents



Question 6

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?


  1. Cobertura
  2. Bullseye Coverage
  3. MSTest
  4. Coverlet
Correct answer: A
Explanation:
Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in Cobertura or JaCoCo format.    Incorrect Answers: B: Bullseye Coverage is used for C++ code, and not for Java.   D: If you're building on Linux or macOS, you can use Coverlet or a similar tool to collect code coverage metrics. Code coverage results can be published to the server by using the Publish Code Coverage Results task. To leverage this functionality, the coverage tool must be configured to generate results in Cobertura or JaCoCo coverage format.  F: Coverage.py is used for Python, not for Java. Note: There are several versions of this question in the exam. The question has two possible correct answers: 1. Cobertura  2. JaCoCo    Other incorrect answer options you may see on the exam include the following: 1. Junit  2. NUnit  3. Coverage.py    Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results
Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in Cobertura or JaCoCo format.  
  
Incorrect Answers: 
B: Bullseye Coverage is used for C++ code, and not for Java. 
  
D: If you're building on Linux or macOS, you can use Coverlet or a similar tool to collect code coverage metrics. Code coverage results can be published to the server by using the Publish Code Coverage Results task. To leverage this functionality, the coverage tool must be configured to generate results in Cobertura or JaCoCo coverage format.  
F: Coverage.py is used for Python, not for Java. 
Note: 
There are several versions of this question in the exam. The question has two possible correct answers: 
1. Cobertura  
2. JaCoCo  
  
Other incorrect answer options you may see on the exam include the following: 
1. Junit  
2. NUnit  
3. Coverage.py  
  
Reference: 
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results



Question 7

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?


  1. a self-hosted agent
  2. Microsoft-hosted parallel jobs
  3. a File Transform task 
Correct answer: A
Explanation:
When you run a pipeline on a self-hosted agent, by default, none of the subdirectories are cleaned in between two consecutive runs. As a result, you can do incremental builds and deployments, provided that tasks are implemented to make use of that. You can override this behavior using the workspace setting on the job.    Incorrect Answers: B: The workspace clean options are applicable only for self-hosted agents. When using Microsoft-hosted agents job are always run on a new agent.   Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases
When you run a pipeline on a self-hosted agent, by default, none of the subdirectories are cleaned in between two consecutive runs. As a result, you can do incremental builds and deployments, provided that tasks are implemented to make use of that. You can override this behavior using the workspace setting on the job.  
  
Incorrect Answers: 
B: The workspace clean options are applicable only for self-hosted agents. When using Microsoft-hosted agents job are always run on a new agent. 
  
Reference: 
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases



Question 8

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?


  1. Azure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows
  2. Deployment YAML and Azure pipeline deployment groups
  3. Azure Resource Manager templates and the Custom Script Extension for Windows
  4. Deployment YAML and Azure pipeline stage templates 
Correct answer: A
Explanation:
The Custom Script Extension downloads and executes scripts on Azure virtual machines. This extension is useful for post deployment configuration, software installation, or any other configuration or management tasks. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script Extension integrates with Azure Resource Manager templates, and can be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.    Incorrect Answers: B: YAML doesn't work with Azure pipeline deployment groups.   Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows
The Custom Script Extension downloads and executes scripts on Azure virtual machines. This extension is useful for post deployment configuration, software installation, or any other configuration or management tasks. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script Extension integrates with Azure Resource Manager templates, and can be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.  
  
Incorrect Answers: 
B: YAML doesn't work with Azure pipeline deployment groups. 
  
Reference: 
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows



Question 9

Your company has two virtual machines that run Linux in a third-party public cloud.    
You plan to use the company’s Azure Automation State Configuration implementation to manage the two virtual machines and detect configuration drift.  
You need to onboard the Linux virtual machines.  
You install PowerShell Desired State Configuration (DSC) on the virtual machines, and then run register.py.    
Which three actions should you perform next in sequence? To answer, move the actions from the list of actions to the answer area and arrange them in the correct order.    


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
Step 1: Create a DSC metaconfiguration Load up the DSC Configuration into Azure Automation.    Step 2: Copy the metaconfiguration to the virtual machines. Linking the Node Configuration to the Linux Host    Step 3: Add the virtual machines as DSC nodes in Azure Automation. go to DSC Nodes, select your node, and then click Assign node configuration. This step assigns the DSC configuration to the Linux machine.    Next up will be to link the node configuration to the host. Go to the host and press the “Assign node…”-button. Next up you can select your node configuration.
Step 1: Create a DSC metaconfiguration 
Load up the DSC Configuration into Azure Automation.  
  
Step 2: Copy the metaconfiguration to the virtual machines. 
Linking the Node Configuration to the Linux Host  
  
Step 3: Add the virtual machines as DSC nodes in Azure Automation. 
go to DSC Nodes, select your node, and then click Assign node configuration. This step assigns the DSC configuration to the Linux machine.  
  
Next up will be to link the node configuration to the host. Go to the host and press the “Assign node…”-button. Next up you can select your node configuration.



Question 10

You are creating a container for an ASP.NET Core app.    
You need to create a Dockerfile file to build the image. The solution must ensure that the size of the image is minimized.    
How should you configure the file? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all.  
You may need to drag the split bar between panes or scroll to view content.    
NOTE: Each correct selection is worth one point. 


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
Box 1: mcr.microsoft.com/dotnet/sdk:5.0 The first group of lines declares from which base image we will use to build our container on top of. If the local system does not have this image already, then docker will automatically try and fetch it. The mcr.microsoft.com/dotnet/core/sdk:5.0 comes packaged with the .NET core 5.0 SDK installed, so it's up to the task of building ASP .NET core projects targeting version 5.0    Box 2: dotnet restore The next instruction changes the working directory in our container to be /app, so all commands following this one execute under this context.    COPY *.csproj ./  RUN dotnet restore    Box 3: mcr.microsoft.com/dotnet/aspnet:5.0 When building container images, it's good practice to include only the production payload and its dependencies in the container image. We don't want the .NET core SDK included in our final image because we only need the .NET core runtime, so the dockerfile is written to use a temporary container that is packaged with the SDK called build-env to build the app.    Reference: https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/building-sample-app
Box 1: mcr.microsoft.com/dotnet/sdk:5.0 
The first group of lines declares from which base image we will use to build our container on top of. If the local system does not have this image already, then docker will automatically try and fetch it. The mcr.microsoft.com/dotnet/core/sdk:5.0 comes packaged with the .NET core 5.0 SDK installed, so it's up to the task of building ASP .NET core projects targeting version 5.0  
  
Box 2: dotnet restore 
The next instruction changes the working directory in our container to be /app, so all commands following this one execute under this context.  
  
COPY *.csproj ./  
RUN dotnet restore  
  
Box 3: mcr.microsoft.com/dotnet/aspnet:5.0 
When building container images, it's good practice to include only the production payload and its dependencies in the container image. We don't want the .NET core SDK included in our final image because we only need the .NET core runtime, so the dockerfile is written to use a temporary container that is packaged with the SDK called build-env to build the app.  
  
Reference: 
https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/building-sample-app









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files