Win IT Exam with Last Dumps 2025


Microsoft AZ-400 Exam

Page 39/54
Viewing Questions 381 390 out of 535 Questions
72.22%

Question 381
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?



The Gradle build task now supports SonarQube analysis.
SonarQube analysis for Java.
In October 2016, we updated the Maven task to support SonarQube analysis (See The Maven build task now simplifies SonarQube analysis). This time, we are pleased to announce an updated Gradle task which makes it easy for Java developers using Gradle to trigger a SonarQube analysis in Visual Studio Team
Services.
Using the Gradle task with SonarQube.
Just as for Maven, we have added a Code Analysis section in which you can now check the "Run SonarQube Analysis" checkbox, which then shows more options.
AZ-400_381E.jpg related to the Microsoft AZ-400 Exam
Reference:
https://devblogs.microsoft.com/devops/the-gradle-build-task-now-supports-sonarqube-analysis/

Question 382
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?



The SonarScanner for Maven is recommended as the default scanner for Maven projects.
The ability to execute the SonarQube analysis via a regular Maven goal makes it available anywhere Maven is available (developer build, CI server, etc.), without the need to manually download, setup, and maintain a SonarQube Runner installation. The Maven build already has much of the information needed for
SonarQube to successfully analyze a project. By preconfiguring the analysis based on that information, the need for manual configuration is reduced significantly.
Reference:
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/

Question 383
You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention compliance for the resources deployed to Subscription1.
You have a pipeline named Pipeline1 in Azure Pipelines. Pipeline1 deploys Azure Resource Manager (ARM) resources to Subscription1.
You need to ensure that the resources deployed by Pipeline1 comply with Policy1.
What should you add to Pipeline1?



Check policy compliance with gates.
Prepare -
1. Create an Azure Policy in the Azure portal. There are several predefined sample policies that can be applied to a management group, subscription, and resource group.
2. In Azure DevOps create a release pipeline that contains at least one stage, or open an existing release pipeline.
3. Add a pre- or post-deployment condition that includes the Security and compliance assessment task as a gate.
AZ-400_383E.jpg related to the Microsoft AZ-400 Exam
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/policies/azure-policy

Question 384
HOTSPOT -
You plan to use Desired State Configuration (DSC) to maintain the configuration state of virtual machines that run Windows Server.
You need to perform the following:
- Install Internet Information Services (IIS) on the virtual machines.
- Update the default home page of the IIS web server.
How should you configure the DSC configuration file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
AZ-400_384Q.png related to the Microsoft AZ-400 Exam
Image AZ-400_384R.png related to the Microsoft AZ-400 Exam



Box 1: WindowsFeature -
Example:
Configuration WebsiteTest {
# Import the module that contains the resources we're using.
Import-DscResource -ModuleName PsDesiredStateConfiguration
# The Node statement specifies which targets this configuration will be applied to.
Node 'localhost' {
# The first resource block ensures that the Web-Server (IIS) feature is enabled.
WindowsFeature WebServer {
Ensure = "Present"
Name = "Web-Server"
}
Box 2: File -
Example continued:
# The second resource block ensures that the website content copied to the website root folder.
File WebsiteContent {
Ensure = 'Present'
SourcePath = 'c: est\index.htm'
DestinationPath = 'c:\inetpub\wwwroot'
}
Reference:
https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart

Question 385
You have a project in Azure DevOps.
You need to push notifications about pull requests to a Microsoft Teams channel. The solution must minimize development effort.
What should you do?



If you use Microsoft Teams, you can use the Azure Repos app for Teams to easily monitor your repositories. Set up and manage subscriptions to receive notifications in your channel whenever code is pushed/checked in or when a pull request (PR) is created, updated or merged. The app supports monitoring both
Git and Team Foundation Version Control (TFVC) repositories.
Reference:
https://docs.microsoft.com/en-us/azure/devops/repos/integrations/repos-teams


Question 386
HOTSPOT -
You are creating a YAML-based Azure pipeline to deploy an Azure Data Factory instance that has the following requirements:
- If a Data Factory instance exists already, the instance must be overwritten.
- No other resources in a resource group named Fabrikam must be affected.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
AZ-400_386Q.jpg related to the Microsoft AZ-400 Exam
Image AZ-400_386R.jpg related to the Microsoft AZ-400 Exam




Question 387
You have an Azure DevOps project that produces Node Package Manager (npm) packages. Multiple projects consume the packages.
You need to configure Azure Artifacts to ensure that both the latest and pre-release versions of the packages are available for consumption.
What should you do?




Question 388
You have an Azure subscription that contains the resources shown in the following table.
AZ-400_388Q.png related to the Microsoft AZ-400 Exam
Project produces npm packages that are published to Feed1. Feed1 is consumed by multiple projects.
You need to ensure that only tested packages are available for consumption. The solution must minimize development effort.
What should you do?




Question 389
Your company has an Azure DevOps project that produces Node Package Manager (npm) packages. Multiple projects consume the packages.
You need to minimize the amount of disk space used by older packages in Azure Artifacts.
What should you modify?




Question 390
DRAG DROP
-
You have an Azure DevOps pipeline that is used to deploy a Node.js app.
You need to ensure that the dependencies are cached between builds.
How should you configure the deployment YAML? 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.
AZ-400_390Q.png related to the Microsoft AZ-400 Exam
Image AZ-400_390R.png related to the Microsoft AZ-400 Exam