ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You plan to use Desired State Configuration (DSC) to maintain the configuration of a server that runs Windows Server 2022. The server must have the following features installed:

* A web server

* An email server

How should you complete the DSC configuration file? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 421
Correct answer: Question 421

You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and an app named App1. Pipeline1 is used to automate the building of App1.

You have a Slack channel named App1chat that includes an incoming webhook.

You need to ensure that when a successful build of App1 is created, a notification is sent to App1chat by using the webhook.

What should you use?

A.
an alert rule
A.
an alert rule
Answers
B.
a notification
B.
a notification
Answers
C.
an action group
C.
an action group
Answers
D.
a subscription
D.
a subscription
Answers
Suggested answer: D

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 have an Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app.

TestSuite1 fails intermittently.

You identify that the failures are unrelated to changes in the source code and execution environment.

You need to minimize troubleshooting effort for the TestSuite1 failures.

Solution: You increase code coverage.

Does this meet the goal?

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

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.

A.
Add a new workflow for code scanning.
A.
Add a new workflow for code scanning.
Answers
B.
Add the name of the non-default branch to the on: push specification in the code scanning workflow.
B.
Add the name of the non-default branch to the on: push specification in the code scanning workflow.
Answers
C.
Update the code in the pull request.
C.
Update the code in the pull request.
Answers
D.
Add the name of the default branch to the on: push specification in the code scanning workflow.
D.
Add the name of the default branch to the on: push specification in the code scanning workflow.
Answers
E.
Delete the pull request, and then raise the request again from the default branch.
E.
Delete the pull request, and then raise the request again from the default branch.
Answers
Suggested answer: C, D

DRAG DROP

You have a tendril in Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra. The tenant contains three groups named Group1. Group2, and Group3.

You create a new project in Azure DevOps named Project1.

You need to secure the service connections for Project1. The solution must meet the following requirements:

* The members of Group1 must be able to share and unshare a service connection with other projects.

* The members of Group2 must be able to rename a service connection and update the description.

* The members of Group3 must be able to use the service connection within build or release pipelines.

* The principle of least privilege must be followed.

Which permission should you grant to each group? To answer, drag the appropriate permissions to the correct groups. Each permission 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 425
Correct answer: Question 425

You have an Azure subscription that contains an Azure container registry. The container registry contains an ACR Tasks task named Task1. Task1 is configured to run once every five days.

You need to trigger Task1 to run immediately.

Which command should you run?

A.
az acr build
A.
az acr build
Answers
B.
az acr task run
B.
az acr task run
Answers
C.
az acr run
C.
az acr run
Answers
D.
az acr taskrun
D.
az acr taskrun
Answers
Suggested answer: B

DRAG DROP

You have the repositories shown in the following table.

You need to migrate the contents of the GitHub repository to the Azure Repos repository. The solution must ensure that the Azure Repos repository only contains branches and history from the GitHub repository.

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

Question 427
Correct answer: Question 427

Explanation:

git clone --bare...

cd project1.git

git push ~~mirror...


DRAG DROP

You have a project in Azure DevOps.

You need to configure a dashboard that will provide information on the following metrics.

* How long it takes to close a work item

* The number of completed backlog items

* How long it takes to restore failed services

Which type of widget should you use for each metric? To answer, drag the appropriate widget types to the correct metrics. Each widget type 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 428
Correct answer: Question 428

You have a public GitHub repository named Public1.

A commit is made to Public1. The commit contains a pattern that matches a regular expression.

Who is notified first when the commit is made?

A.
the owner of Public1
A.
the owner of Public1
Answers
B.
the secret scanning partner
B.
the secret scanning partner
Answers
C.
the committer
C.
the committer
Answers
D.
the administrator of the GitHub organization
D.
the administrator of the GitHub organization
Answers
Suggested answer: B

You manage code by using GitHub.

You plan to use Dependabot to scan for code dependencies.

You need to identify when scanning will be triggered automatically.

Which two actions will trigger a scan? Each correct answer presents a complete solution.

NOTE: Each correct solution is worth one point

A.
The dependency graph of a repository changes.
A.
The dependency graph of a repository changes.
Answers
B.
Any commit is pushed.
B.
Any commit is pushed.
Answers
C.
A branch is forked.
C.
A branch is forked.
Answers
D.
A pull request is created.
D.
A pull request is created.
Answers
E.
A new advisory is added.
E.
A new advisory is added.
Answers
Suggested answer: B, D
Total 482 questions
Go to page: of 49