πŸ”

AZ-400 β€” questions

Page 7 of 18 Β· 358 total questions.

Topic 5 Β· Question 191

You are designing the development process for your company. You need to recommend a solution for continuous inspection of the company's code base to locate common code patterns that are known to be problematic. What should you include in the recommendation?

  • AMicrosoft Visual Studio test plans
  • BGradle wrapper scripts
  • CSonarCloud analysis (correct answer)
  • Dthe JavaScript task runner
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: SonarCloud analysis.

Topic 5 Β· Question 192

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?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 5 Β· Question 193 Β· Select all that apply

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.

  • AConfigure post-deployment approvals in the deployment pipeline.
  • BConfigure pre-deployment approvals in the deployment pipeline. (correct answer)
  • CIntegrate Azure DevOps and SonarQube. (correct answer)
  • DIntegrate Azure DevOps and Azure DevTest Labs.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Configure pre-deployment approvals in the deployment pipeline. Option C: Integrate Azure DevOps and SonarQube.

Topic 5 Β· Question 194

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?

  • AGradle (correct answer)
  • BCocoaPods
  • CGrunt
  • DGulp
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Gradle.

Topic 5 Β· Question 196

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?

  • AGrunt
  • BOctopus
  • CMaven (correct answer)
  • DGulp
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Maven.

Topic 5 Β· Question 198

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?

  • AConfigure post-deployment approvals in the deployment pipeline.
  • BIntegrate Azure DevOps and SonarQube. (correct answer)
  • CIntegrate Azure DevOps and Azure DevTest Labs.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Integrate Azure DevOps and SonarQube.

Topic 5 Β· Question 201

During a code review, you discover many quality issues. Many modules contain unused variables and empty catch blocks. You need to recommend a solution to improve the quality of the code. What should you recommend?

  • AIn a Grunt build task, select Enabled from Control Options.
  • BIn a Maven build task, select Run PMD. (correct answer)
  • CIn a Xcode build task, select Use xcpretty from Advanced.
  • DIn a Gradle build task, select Run Checkstyle.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: In a Maven build task, select Run PMD.

Topic 5 Β· Question 202 Β· Select all that apply

Your development team is building a new web solution by using the Microsoft Visual Studio integrated development environment (IDE). You need to make a custom package available to all the developers. The package must be managed centrally, and the latest version must be available for consumption in Visual Studio automatically. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • APublish the package to a feed. (correct answer)
  • BCreate a new feed in Azure Artifacts. (correct answer)
  • CUpload a package to a Git repository.
  • DAdd the package URL to the Environment settings in Visual Studio.
  • EAdd the package URL to the NuGet Package Manager settings in Visual Studio. (correct answer)
  • FCreate a Git repository in Azure Repos.
Reveal answer & explanation
Correct answer: A, B, E

The correct answer is A, B, E. Option A: Publish the package to a feed. Option B: Create a new feed in Azure Artifacts. Option E: Add the package URL to the NuGet Package Manager settings in Visual Studio.

Topic 5 Β· Question 203 Β· Select all that apply

You use GitHub for source control. A file that contains sensitive data is committed accidentally to the Git 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.

  • Athe git filter-branch command (correct answer)
  • BBFG Repo-Cleaner (correct answer)
  • Cthe git rebase command
  • DGitHub Desktop
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: the git filter-branch command Option B: BFG Repo-Cleaner.

Topic 5 Β· Question 204 Β· Select all that apply

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.

  • AClear Never assign certain team members.
  • BSelect If assigning team members, don't notify the entire team.
  • CSelect Never assign certain team members. (correct answer)
  • DSet Routing algorithm to Round robin.
  • ESet Routing algorithm to Load balance. (correct answer)
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: Select Never assign certain team members. Option E: Set Routing algorithm to Load balance.

Topic 5 Β· Question 205

You have a GitHub repository. You create a new repository in Azure DevOps. You need to recommend a procedure to clone the repository from GitHub to Azure DevOps. What should you recommend?

  • ACreate a pull request.
  • BCreate a webhook.
  • CCreate a service connection for GitHub.
  • DFrom Import a Git repository, click Import. (correct answer)
  • ECreate a personal access token in Azure DevOps.
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: From Import a Git repository, click Import.

Topic 5 Β· Question 206

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 increasing the code duplication. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 5 Β· Question 207

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 increasing the test coverage. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 5 Β· Question 208

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 complexity. Does this meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 5 Β· Question 209

During a code review, you discover quality issues in a Java application. You need to recommend a solution to detect quality issues including unused variables and empty catch blocks. What should you recommend?

  • AIn a Maven build task, select Run PMD. (correct answer)
  • BIn an Xcode build task, select Use xcpretty from Advanced.
  • CIn a Gulp build task, specify a custom condition expression.
  • DIn a Grunt build task, select Enabled from Control Options.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: In a Maven build task, select Run PMD.

Topic 5 Β· Question 210

You use Azure Artifacts to host NuGet packages that you create. You need to make one of the packages available to anonymous users outside your organization. The solution must minimize the number of publication points. What should you do?

  • AChange the feed URL of the package
  • BCreate a new feed for the package
  • CPromote the package to a release view.
  • DPublish the package to a public NuGet repository. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Publish the package to a public NuGet repository.

Topic 5 Β· Question 211 Β· Select all that apply

You use GitHub for source control and project-related discussions. You receive a notification when an entry is made to any team discussion. You need to ensure that you receive email notifications only for discussions in which you commented or in which you are mentioned. Which two Notifications settings should you clear? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AAutomatically watch teams (correct answer)
  • BParticipating
  • CAutomatically watch repositories (correct answer)
  • DWatching
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Automatically watch teams Option C: Automatically watch repositories.

Topic 5 Β· Question 212

You have an Azure Automation account that contains a runbook. The runbook is used to configure the application infrastructure of an Azure subscription. You have a project in Azure DevOps named Project1. Project1 contains a repository that stores code for the runbook. You need to ensure that every committed change to the code will update automatically and publish the runbook to Azure Automation. What should you configure?

  • Athe Service hooks settings for Project1
  • Bthe Connections settings for the Automation account
  • Cthe Source control settings for the Automation account (correct answer)
  • Dthe Service connections settings for Project1
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: the Source control settings for the Automation account.

Topic 5 Β· Question 213 Β· Select all that apply

You use Git for source control. You enable GitHub code scanning. You raise a pull request from a non-default branch. In the code scanning output, you receive the following error message: β€œAnalysis not found.” You need to ensure that the code scanning completes successfully for the pull request. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AAdd the name of the default branch to the on: push specification in the code scanning workflow.
  • BAdd the name of the non-default branch to the on:push specification in the code scanning workflow. (correct answer)
  • CDelete the pull request, and then raise the request again from the default branch.
  • DUpdate the code in the pull request. (correct answer)
  • EAdd a new workflow for code scanning.
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Add the name of the non-default branch to the on:push specification in the code scanning workflow. Option D: Update the code in the pull request.

Topic 5 Β· Question 215

You have a GitHub repository that contains multiple versions of an Azure Pipelines template. You plan to deploy multiple pipelines that will use a template stored in the repository. You need to ensure that you use a fixed version of the template. What should you use to reference which version of the template repository to use?

  • Athe serial
  • Bthe SHA-based hashes (correct answer)
  • Cthe runner
  • Dthe branch
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: the SHA-based hashes.

Showing questions 121–140 of 358 Β· Page 7 of 18