ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











DRAG DROP

You have a GitHub organization named org1 and an Azure tenant named Tenant1.

You need to enable single sign-on (SSO) in Azure Active Directory (Azure AD) for the users in org1.

Which URIs should you use for the SAML configuration in Azure AD? To answer, drag the appropriate URIs to the correct settings. Each URI 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.


Question 251
Correct answer: Question 251

Explanation:

Reference:

https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/github-tutorial

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?

A.
In a Grunt build task, select Enabled from Control Options.
A.
In a Grunt build task, select Enabled from Control Options.
Answers
B.
In a Maven build task, select Run PMD.
B.
In a Maven build task, select Run PMD.
Answers
C.
In a Xcode build task, select Use xcpretty from Advanced.
C.
In a Xcode build task, select Use xcpretty from Advanced.
Answers
D.
In a Gradle build task, select Run Checkstyle.
D.
In a Gradle build task, select Run Checkstyle.
Answers
Suggested answer: B

Explanation:

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. There is an Apache Maven PMD Plugin which allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. Incorrect Answers:

C: xcpretty is a fast and flexible formatter for xcodebuild.

Reference:

https://pmd.github.io/

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.

A.
Publish the package to a feed.
A.
Publish the package to a feed.
Answers
B.
Create a new feed in Azure Artifacts.
B.
Create a new feed in Azure Artifacts.
Answers
C.
Upload a package to a Get repository.
C.
Upload a package to a Get repository.
Answers
D.
Add the package URL to the Environment settings in Visual Studio.
D.
Add the package URL to the Environment settings in Visual Studio.
Answers
E.
Add the package URL to the NuGet Package Manager settings in Visual Studio.
E.
Add the package URL to the NuGet Package Manager settings in Visual Studio.
Answers
F.
Create a Git repository in Azure Repos.
F.
Create a Git repository in Azure Repos.
Answers
Suggested answer: A, B, E

Explanation:

B: By using your custom NuGet package feed within your Azure DevOps (previously VSTS) instance, you'll be able to distribute your packages within your organization with ease. Start by creating a new feed. A: We can publish, pack and push the built project to our NuGet feed.

E: Consume your private NuGet Feed

Go back to the Packages area in Azure DevOps, select your feed and hit "Connect to feed". You'll see some instructions for your feed, but it's fairly simple to set up. Just copy your package source URL, go to Visual Studio, open the NuGet Package Manager, go to its settings and add a new source. Choose a fancy name, insert the source URL. Done. Search for your package in the NuGet Package Manager and it should appear there, ready for installation. Make sure to select the appropriate feed (or just all feeds) from the top right select box.

Reference: https://medium.com/medialesson/get-started-with-private-nuget-feeds-in-azure-devops-8c7b5f022a68

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?

A.
Create a pull request.
A.
Create a pull request.
Answers
B.
Create a webhook.
B.
Create a webhook.
Answers
C.
Create a service connection for GitHub.
C.
Create a service connection for GitHub.
Answers
D.
From Import a Get repository, click Import.
D.
From Import a Get repository, click Import.
Answers
E.
Create a personal access token in Azure DevOps.
E.
Create a personal access token in Azure DevOps.
Answers
Suggested answer: D

Explanation:

You can import an existing Git repo from GitHub, Bitbucket, GitLab, or other location into a new or empty existing repo in your project in Azure DevOps. Import into a new repo

1. Select Repos, Files.

2. From the repo drop-down, select Import repository.

3. If the source repo is publicly available, just enter the clone URL of the source repository and a name for your new Git repository.

Reference: https://docs.microsoft.com/en-us/azure/devops/repos/git/import-git-repository?view=azure-devops

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?

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/

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?

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/

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?

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

Explanation:

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/

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?

A.
In a Maven build task, select Run PMD.
A.
In a Maven build task, select Run PMD.
Answers
B.
In an Xcode build task, select Use xcpretty from Advanced.
B.
In an Xcode build task, select Use xcpretty from Advanced.
Answers
C.
In a Gulp build task, specify a custom condition expression.
C.
In a Gulp build task, specify a custom condition expression.
Answers
D.
In a Grunt build task, select Enabled from Control Options.
D.
In a Grunt build task, select Enabled from Control Options.
Answers
Suggested answer: A

Explanation:

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. There is an Apache Maven PMD Plugin which allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. Incorrect Answers:

B: xcpretty is a fast and flexible formatter for xcodebuild.

Reference:

https://pmd.github.io/

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?

A.
Change the feed URL of the package
A.
Change the feed URL of the package
Answers
B.
Create a new feed for the package
B.
Create a new feed for the package
Answers
C.
Promote the package to a release view.
C.
Promote the package to a release view.
Answers
D.
Publish the package to a public NuGet repository.
D.
Publish the package to a public NuGet repository.
Answers
Suggested answer: B

Explanation:

Azure Artifacts introduces the concept of multiple feeds that you can use to organize and control access to your packages. Packages you host in Azure Artifacts are stored in a feed. Setting permissions on the feed allows you to share your packages with as many or as few people as your scenario requires. Feeds have four levels of access: Owners, Contributors, Collaborators, and Readers.

Reference:

https://docs.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=vsts&tabs=new-nav

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?

A.
Microsoft Visual Studio test plans
A.
Microsoft Visual Studio test plans
Answers
B.
Gradle wrapper scripts
B.
Gradle wrapper scripts
Answers
C.
SonarCloud analysis
C.
SonarCloud analysis
Answers
D.
the JavaScript task runner
D.
the JavaScript task runner
Answers
Suggested answer: C

Explanation:

SonarCloud is a cloud service offered by SonarSource and based on SonarQube. SonarQube is a widely adopted open source platform to inspect continuously the quality of source code and detect bugs, vulnerabilities and code smells in more than 20 different languages.

Note: The SonarCloud Azure DevOps extension brings everything you need to have your projects analyzed on SonarCloud very quickly. Incorrect Answers:

A: Test plans are used to group together test suites and individual test cases. This includes static test suites, requirement-based suites, and query-based suites.

Reference: https://docs.travis-ci.com/user/sonarcloud/ https://sonarcloud.io/documentation/integrations/vsts/

Total 482 questions
Go to page: of 49