Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam AZ-400 Topic 3 Question 117 Discussion

Actual exam question for Microsoft's AZ-400 exam
Question #: 117
Topic #: 3
[All AZ-400 Questions]

SIMULATION

Task 7

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

In the User 1-42147509 organization, you need to install the Microsoft Security DevOps extension.

Next, create a new starter pipeline named starter1 that will use the following starter code.

Ensure that starter! includes a task that executes the extension and uses the following input*:

* Command: run

* Policy aruredevops

* Publish: true

Save the pipeline to a new branch named starter

Show Suggested Answer Hide Answer
Suggested Answer: A

Step 1: Initialize the Default Main Branch

Navigate to Azure DevOps:

Go toAzure DevOpsand 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 branch1.

Step 2: Install the Microsoft Security DevOps Extension

Navigate to Extensions:

In Azure DevOps, click on theShopping Bagicon in the top right corner and selectBrowse Marketplace.

Search for the Extension:

Search forMicrosoft Security DevOps.

Install the Extension:

Click onGet it free.

Select your organization (User1-42147509) and clickInstall.

Follow the prompts to complete the installation2.

Step 3: Create a New Starter Pipeline

Navigate to Pipelines:

Go toPipelines>New pipeline.

Select the Repository:

ChooseAzure Repos Gitand select the relevant repository.

Configure the Pipeline:

SelectStarter pipelineand replace the default YAML with the following starter code:

trigger:

- starter

pool:

vmImage: 'windows-latest'

steps:

- task: MicrosoftSecurityDevOps@1

inputs:

command: 'run'

policy: 'azuredevops'

publish: true

Save the Pipeline:

Click onSaveand enterstarteras the branch name.

Click onSave and runto save the pipeline to the new branch namedstarter3.

By following these steps, you will have successfully initialized the main branch, installed the Microsoft Security DevOps extension, and created a new starter pipeline namedstarter1that includes the specified task


Contribute your Thoughts:

Rickie
22 hours ago
Hold up, 'starter!' with an exclamation mark? Bet that's a typo, better double-check that.
upvoted 0 times
...
Colton
2 days ago
Haha, 'starter1' - they really want to keep us on our toes with these naming conventions!
upvoted 0 times
...
Tawna
3 days ago
That's a good point, let's make sure we understand it before proceeding.
upvoted 0 times
...
Lezlie
4 days ago
Hmm, the image in the question is important. Gotta make sure I set that up correctly in the pipeline.
upvoted 0 times
...
Eun
4 days ago
We can refer to the example code given to understand the input parameters.
upvoted 0 times
...
Hyman
5 days ago
Looks straightforward, just need to create the starter pipeline with the specified input. Shouldn't be too hard.
upvoted 0 times
...
Becky
6 days ago
I'm not sure about the input parameters for the task though.
upvoted 0 times
...
Tawna
7 days ago
I agree, it seems like we just need to follow the steps provided.
upvoted 0 times
...
Eun
14 days ago
I think this task is straightforward.
upvoted 0 times
...

Save Cancel