ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











DRAG DROP

You have an Azure subscription.

You have the standards shown in the following table.

You plan to use Azure Pipelines to build and release web apps.

You need to recommend a solution to build the pipelines. The solution must meet the following requirements:

* Ensure that all new pipelines meet the security requirements defined in Standards

* Ensure that the first stage of all new pipelines contains the software prerequisites defined in Standard2.

* Minimize administrative effort.

What should you use to implement each standard? To answer, drag the appropriate options to the correct standards. Each component 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 451
Correct answer: Question 451

HOTSPOT

You have an Azure Pipelines pipeline named Pipeline1 that has the following YAML definition.

NOTE: Each correct selection is worth one point.


Question 452
Correct answer: Question 452

DRAG DROP

You have a GitHub repository named repo1.

You migrate repo1 to an Azure Repos repository named repo2.

After the migration, changes are made to repo1.

You need to sync the changes to repo2.

How should you complete the script? 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.


Question 453
Correct answer: Question 453

You manage a project by using Azure Boards, and you manage the project code by using Azure Repos. You have a bug work item that has an ID of 123. You need to set the work item state to Resolved. What should you add to the commit message?

A.
Fixes #123
A.
Fixes #123
Answers
B.
Resolves #AB-123
B.
Resolves #AB-123
Answers
C.
#123 completes
C.
#123 completes
Answers
D.
#123 Resolved
D.
#123 Resolved
Answers
Suggested answer: A

You manage projects by using Azure Boards. You manage project code by using GitHub. You have a work item that has an ID of 456. You need to link work item 456 to a new pull request.

What are two ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

A.
To the description of the pull request, add #AB456.
A.
To the description of the pull request, add #AB456.
Answers
B.
To work item 456, add a comment that includes the URL of the pull request.
B.
To work item 456, add a comment that includes the URL of the pull request.
Answers
C.
In the Development section for work item 456. select Add link, and then enter the URL of the pull request
C.
In the Development section for work item 456. select Add link, and then enter the URL of the pull request
Answers
D.
From work item 456, open the Links tab, select Add link, select Existing item and then enter the URL of the commit.
D.
From work item 456, open the Links tab, select Add link, select Existing item and then enter the URL of the commit.
Answers
Suggested answer: A, B

You need to use an Azure Pipelines pipeline to build and test an app and test the database of the app. The solution must meet the following requirements.

* The test stages must be run in parallel.

* The Publish_Test_Results stage must always be run.

* The test stages must be run after successful completion of the build stage.

* The Publish_Test_Results stage must be run after completion of all the test stages

Solution: You include the following elements in the YAML definition of the pipeline.

Does this meet the goal?

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

SIMULATION

Task 1

Navigate to https://dev.azure.com, select Start Free, and specify the following credentials:

* [email protected]

* Password: eWrSalD2!

Use the default setting to sign up for Azure DevOps and create an Azure DevOps organization. Once the organization is created. creates private project named Project1.

You need to add an external user that has an email address of [email protected] as a stakeholder of the User1 -42147509 Azure DevOps organization.

The user must be added to the most restrictive Azure DevOps group.

To complete this task, sign in to the Azure DevOps portal as Userl-42147509ExamUsers.com.

A.
See the solution below in explanation
A.
See the solution below in explanation
Answers
Suggested answer: A

Explanation:

Step 1: Sign Up for Azure DevOps

Navigate to Azure DevOps.

Click onStart Free.

Enter the credentials:

Email: [email protected]

Password: eWrSalD2!

Follow the prompts to complete the sign-up process using the default settings.

Step 2: Create an Azure DevOps Organization

Once signed in, you will be prompted to create a new organization.

Enter a name for your organization and select your region.

Click onContinueto create the organization.

Step 3: Create a Private Project

In your new organization, click onNew Project.

Name the projectProject1.

Set the visibility toPrivate.

Click onCreate.

Step 4: Add an External User as a Stakeholder

Go to theOrganization Settings.

UnderGeneral, selectUsers.

Click onAdd users.

Enter the email address: [email protected].

Set the access level toStakeholder.

Add the user to the most restrictive group, which is typically theReadersgroup.

Click onAddto complete the process.

Step 5: Verify the User Addition

Ensure that the external user has been added successfully by checking theUserslist.

Confirm that the user has theStakeholderaccess level and is part of theReadersgroup.

By following these steps, you should be able to complete the task successfully. If you encounter any issues, feel free to ask for further assistance!

SIMULATION

Task 2

For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAG that can be triggered in any region by using Alerts.

The action group must email two users named admin1 @contoso.com and [email protected] and notify members of the Owner role for the resource.

Use only the common alert schema for notifying the resource owners.

A.
See the solution below in explanation
A.
See the solution below in explanation
Answers
Suggested answer: A

Explanation:

Step 1: Create an Action Group

Navigate to Azure Portal:

Go to Azure Portal and sign in with your credentials.

Access Azure Monitor:

In the left-hand menu, selectMonitor.

Create Action Group:

UnderAlerts, selectAction groups.

Click on+ Create.

Configure Basic Settings:

Subscription: Select your subscription.

Resource Group: SelectRG1 lod42147S09.

Action Group Name: EnterDevOpsAG.

Display Name: Enter a display name for the action group.

Step 2: Define Actions

Add Email Notifications:

Click onAdd action.

Action Type: SelectEmail/SMS message/Push/Voice.

Action Name: Enter a name for the action (e.g.,EmailAdmins).

Email: [email protected]@contoso.com.

ClickOK.

Notify Resource Owners:

Click onAdd actionagain.

Action Type: SelectEmail/SMS message/Push/Voice.

Action Name: Enter a name for the action (e.g.,NotifyOwners).

Email: SelectNotify all owners.

ClickOK.

Step 3: Enable Common Alert Schema

Common Alert Schema:

In theAdvancedtab, enable theCommon alert schemaoption1.

Step 4: Review and Create

Review:

Review all the settings you have configured.

Create:

Click onReview + createand thenCreate.

By following these steps, you will have successfully created an action group namedDevOpsAGthat emails the specified users and notifies resource owners using the common alert schema

SIMULATION

Task 3

You need to create a new team dashboard named Dashboard1 for the default project team of Project1. The dashboard must display the members of the team

A.
See the solution below in explanation
A.
See the solution below in explanation
Answers
Suggested answer: A

Explanation:

Step 1: Create a New Team Dashboard

Navigate to Azure DevOps:

Go toAzure DevOpsand sign in with your credentials.

Select Your Project:

ChooseProject1from your list of projects.

Access Dashboards:

In the left-hand menu, selectDashboards.

Create a New Dashboard:

Click onNew Dashboard.

Enter the nameDashboard1.

Ensure the dashboard type is set toTeam Dashboard.

ClickCreate.

Step 2: Add the Team Members Widget

Open the Widget Catalog:

After creating the dashboard, the widget catalog will open automatically. If it doesn't, click onAdd Widget.

Search for Team Members Widget:

In the widget catalog, search forTeam Members.

Add the Widget:

Click on theTeam Memberswidget and then clickAddto place it on your dashboard.

Configure the Widget:

Once added, you can resize and move the widget to your preferred location on the dashboard.

Step 3: Save and Share the Dashboard

Save the Dashboard:

Click onSaveto save your changes.

Share the Dashboard:

You can share the dashboard URL with your team members or set permissions to control who can view or edit the dashboard.

By following these steps, you will have a new team dashboard namedDashboard1that displays the members of the default project team forProject1

SIMULATION

Task 4

Initialize the default main branch, if it does not exist already.

In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.

The process must use the four-eyes principle and have at least one approval on every iteration.

A.
See the solution below in explanation
A.
See the solution below in explanation
Answers
Suggested answer: A

Explanation:

Step 1: Initialize the Default Main Branch

Navigate to Azure DevOps:

Go to Azure DevOps and sign in with your credentials.

Select Your Project:

ChooseProject1from your list of projects.

Initialize the Main Branch:

Go toRepos>Files.

If the main branch does not exist, you will see an option to initialize it. Click onInitializeand follow the prompts to create the main branch.

Step 2: Implement an Approval Process for the Main Branch

Navigate to Branch Policies:

Go toRepos>Branches.

Find themainbranch and click on the...(ellipsis) next to it.

SelectBranch policies.

Enable Required Reviewers:

UnderPolicies, enableMinimum number of reviewers.

Set the minimum number of reviewers to2to enforce the four-eyes principle.

Add Required Reviewers:

Add the users who should review the changes. Ensure that at least one approval is required on every iteration.

Enable Reset Code Reviewer Votes:

Enable theReset code reviewer votes when there are new changesoption to ensure that any new changes require re-approval.

Save Changes:

Click onSave changesto apply the policies.

Step 3: Verify the Approval Process

Create a Pull Request:

Make a change in a branch and create a pull request to merge it into the main branch.

Review and Approve:

Ensure that the pull request requires at least two reviewers to approve it before it can be merged.

By following these steps, you will have successfully initialized the main branch and implemented an approval process that adheres to the four-eyes principle, ensuring that every iteration has at least one approval

Total 482 questions
Go to page: of 49