ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 460 - AZ-400 discussion

Report
Export

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
Answers
A.
See the solution below in explanation
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

asked 02/10/2024
Alberto Castillo
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first