ExamGecko
Home Home / Microsoft / AZ-400

Microsoft AZ-400 Practice Test - Questions Answers, Page 27

Question list
Search
Search

List of questions

Search

Related questions











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. The lead developer at your company reports that adding new application features takes longer than expected due to a large accumulated technical debt. You need to recommend changes to reduce the accumulated technical debt.

Solution: You recommend reducing the code coupling and the dependency cycles?

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

Instead reduce the code complexity.

Note: Technical debt is the accumulation of sub-optimal technical decisions made over the lifetime of an application. Eventually, it gets harder and harder to change things: it's the 'sand in the gears' that sees IT initiatives grind to a halt.

Reference:

https://dzone.com/articles/fight-through-the-pain-how-to-deal-with-technical https://www.devopsgroup.com/blog/five-ways-devops-helps-with-technical-debt/

Your company uses Azure DevOps for the build pipelines and deployment pipelines of Java-based projects. You need to recommend a strategy for managing technical debt.

Which two actions should you include in the recommendation? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A.
Configure post-deployment approvals in the deployment pipeline.
A.
Configure post-deployment approvals in the deployment pipeline.
Answers
B.
Configure pre-deployment approvals in the deployment pipeline.
B.
Configure pre-deployment approvals in the deployment pipeline.
Answers
C.
Integrate Azure DevOps and SonarQube.
C.
Integrate Azure DevOps and SonarQube.
Answers
D.
Integrate Azure DevOps and Azure DevTest Labs.
D.
Integrate Azure DevOps and Azure DevTest Labs.
Answers
Suggested answer: B, C

Explanation:

B: With SonarQube pre-approval, you can set quality gate.

C: You can manage technical debt with SonarQube and Azure DevOps.

Note: Technical debt is the set of problems in a development effort that make forward progress on customer value inefficient. Technical debt saps productivity by making code hard to understand, fragile, time-consuming to change, difficult to validate, and creates unplanned work that blocks progress. Unless they are managed, technical debt can accumulate and hurt the overall quality of the software and the productivity of the development team in the long term SonarQube an open source platform for continuous inspection of code quality to perform automatic reviews with static analysis of code to: Detect Bugs Code Smells

Security Vulnerabilities

Centralize Quality

What's covered in this lab

Reference: https://azuredevopslabs.com/labs/vstsextend/sonarqube/

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?

A.
Gradle
A.
Gradle
Answers
B.
CocoaPods
B.
CocoaPods
Answers
C.
Grunt
C.
Grunt
Answers
D.
Gulp
D.
Gulp
Answers
Suggested answer: A

Explanation:

SonarQube is a set of static analyzers that can be used to identify areas of improvement in your code. It allows you to analyze the technical debt in your project and keep track of it in the future. With Maven and Gradle build tasks, you can run SonarQube analysis with minimal setup in a new or existing Azure DevOps Services build task.

Prepare Analysis Configuration task, to configure all the required settings before executing the build. This task is mandatory.

In case of .NET solutions or Java projects, it helps to integrate seamlessly with MSBuild, Maven and Gradle tasks.

Incorrect Answers:

B: CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects.

Note: There are several versions of this question in the exam. The question can have three correct answers:

MSBuild

Maven

Gradle

The question can also have different incorrect options, including:

Chef

Octopus

xCODE

Reference:

https://docs3.sonarqube.org/latest/analysis/scan/sonarscanner-for-azure-devops/

https://docs.microsoft.com/en-us/azure/devops/java/sonarqube?view=azure-devops

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?

A.
Grunt
A.
Grunt
Answers
B.
Octopus
B.
Octopus
Answers
C.
Maven
C.
Maven
Answers
D.
Gulp
D.
Gulp
Answers
Suggested answer: C

Explanation:

SonarQube is a set of static analyzers that can be used to identify areas of improvement in your code. It allows you to analyze the technical debt in your project and keep track of it in the future. With Maven and Gradle build tasks, you can run SonarQube analysis with minimal setup in a new or existing Azure DevOps Services build task.

Prepare Analysis Configuration task, to configure all the required settings before executing the build. This task is mandatory.

In case of .NET solutions or Java projects, it helps to integrate seamlessly with MSBuild, Maven and Gradle tasks.

Note: There are several versions of this question in the exam. The question can have three correct answers:

MSBuild

Maven

Gradle

The question can also have different incorrect options, including:

Chef

xCODE

CocoaPods

Reference:

https://docs3.sonarqube.org/latest/analysis/scan/sonarscanner-for-azure-devops/

https://docs.microsoft.com/en-us/azure/devops/java/sonarqube?view=azure-devops

Your company uses Azure DevOps for the build pipelines and deployment pipelines of Java-based projects. You need to recommend a strategy for managing technical debt.

Which action should you include in the recommendation?

A.
Configure post-deployment approvals in the deployment pipeline.
A.
Configure post-deployment approvals in the deployment pipeline.
Answers
B.
Integrate Azure DevOps and SonarQube.
B.
Integrate Azure DevOps and SonarQube.
Answers
C.
Integrate Azure DevOps and Azure DevTest Labs.
C.
Integrate Azure DevOps and Azure DevTest Labs.
Answers
Suggested answer: B

Explanation:

You can manage technical debt with SonarQube and Azure DevOps.

Note: Technical debt is the set of problems in a development effort that make forward progress on customer value inefficient. Technical debt saps productivity by making code hard to understand, fragile, time-consuming to change, difficult to validate, and creates unplanned work that blocks progress. Unless they are managed, technical debt can accumulate and hurt the overall quality of the software and the productivity of the development team in the long term

SonarQube an open source platform for continuous inspection of code quality to perform automatic reviews with static analysis of code to:

Detect Bugs

Code Smells

Security Vulnerabilities

Centralize Quality

What’s covered in this lab

Reference:

https://azuredevopslabs.com/labs/vstsextend/sonarqube/

DRAG DROP

You are developing a full Microsoft .NET Framework solution that includes unit tests.

You need to configure SonarQube to perform a code quality validation of the C# code as part of the build pipelines.

Which four tasks should you perform in sequence? To answer, move the appropriate tasks from the list of tasks to the answer area and arrange them in the correct order.


Question 266
Correct answer: Question 266

Explanation:

Step 1: Prepare Analysis Configuration

Prepare Analysis Configuration task, to configure all the required settings before executing the build. This task is mandatory.

In case of .NET solutions or Java projects, it helps to integrate seamlessly with MSBuild, Maven and Gradle tasks.

Step 2: Visual Studio Build

Reorder the tasks to respect the following order:

Prepare Analysis Configuration task before any MSBuild or Visual Studio Build task.

Step 3: Visual Studio Test

Reorder the tasks to respect the following order:

Run Code Analysis task after the Visual Studio Test task.

Step 4: Run Code Analysis

Run Code Analysis task, to actually execute the analysis of the source code.

This task is not required for Maven or Gradle projects, because scanner will be run as part of the Maven/Gradle build.

Note:

References: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Extension+for+VSTS-TFS

DRAG DROP

You need to find and isolate shared code. The shared code will be maintained in a series of packages.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Question 267
Correct answer: Question 267

Explanation:

Step 1: Create a dependency graph for the application

By linking work items and other objects, you can track related work, dependencies, and changes made over time. All links are defined with a specific link type. For example, you can use Parent/Child links to link work items to support a hierarchical tree structure. Whereas, the Commit and Branch link types support links between work items and commits and branches, respectively.

Step 2: Group the related components.

Packages enable you to share code across your organization: you can compose a large product, develop multiple products based on a common shared framework, or create and share reusable components and libraries.

Step 3: Assign ownership to each component graph

References:

https://docs.microsoft.com/en-us/azure/devops/boards/queries/link-work-items-support-traceability?view=azure-devops&tabs=new-web-form

https://docs.microsoft.com/en-us/visualstudio/releasenotes/tfs2017-relnotes

DRAG DROP

You are creating a NuGet package.

You plan to distribute the package to your development team privately.

You need to share the package and test that the package can be consumed.

Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Question 268
Correct answer: Question 268

Explanation:

Step 1: Configure a self-hosted agent.

The build will run on a Microsoft hosted agent.

Step 2: Create a new Azure Artifacts feed

Microsoft offers an official extension for publishing and managing your private NuGet feeds.

Step 3: Publish the package.

Publish, pack and push the built project to your NuGet feed.

Step 4: Connect to an Azure Artifacts feed.

With the package now available, you can point Visual Studio to the feed, and download the newly published package

References:

https://medium.com/@dan.cokely/creating-nuget-packages-in-azure-devops-with-azure-pipelines-and-yaml-d6fa30f0f15e

You use GitHub for source control.

A file that contains sensitive data is committed accidentally to the Get repository of a project.

You need to delete the file and its history form the repository.

Which two tools can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.
the get filter-branch command
A.
the get filter-branch command
Answers
B.
BFG Repo-Cleaner
B.
BFG Repo-Cleaner
Answers
C.
the get rebase command
C.
the get rebase command
Answers
D.
GitHub Desktop
D.
GitHub Desktop
Answers
Suggested answer: B, C

Explanation:


Your company uses GitHub for source control. The company has a team that performs code reviews.

You need to automate the assignment of the code reviews. The solution must meet the following requirements:

Prioritize the assignment of code reviews to team members who have the fewest outstanding assignments. Ensure that each team member performs an equal number of code reviews in any 30-day period.

Prevent the assignment of code reviews to the team leader.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Clear Never assign certain team members.
A.
Clear Never assign certain team members.
Answers
B.
Select If assigning team members, don’t notify the entire team.
B.
Select If assigning team members, don’t notify the entire team.
Answers
C.
Select Never assign certain team members.
C.
Select Never assign certain team members.
Answers
D.
Set Routing algorithm to Round robin.
D.
Set Routing algorithm to Round robin.
Answers
E.
Set Routing algorithm to Load balance.
E.
Set Routing algorithm to Load balance.
Answers
Suggested answer: A, E

Explanation:

A: To always skip certain members of the team, select Never assign certain team members. Then, select one or more team members you'd like to always skip. In this case select the team leader. E: The load balance algorithm chooses reviewers based on each member's total number of recent review requests and considers the number of outstanding reviews for each member. The load balance algorithm tries to ensure that each team member reviews an equal number of pull requests in any 30 day period.

Incorrect Answers:

D: The round robin algorithm chooses reviewers based on who's received the least recent review request, focusing on alternating between all members of the team regardless of the number of outstanding reviews they currently have.

Reference:

https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-assignment-for-your-team

Total 482 questions
Go to page: of 49