Microsoft Designing and Implementing Microsoft DevOps Solutions AZ-400 Exam Questions

Page: 1 / 14
Total 667 questions
Question 1

Your company uses a Git repository in Azure Repos lo manage the source code of a web application. The master branch is protected from direct updates. Developers work on new features in the topic branches.

Because of the high volume of requested features, it is difficult to follow the history of the changes to the master branch.

You need to enforce a pull request merge strategy. The strategy must meet the following requirements:

* Consolidate commit histories

* Merge tie changes into a tingle commit

Which merge strategy should you use in the branch policy?



Answer : C

Squash merging is a merge option that allows you to condense the Git history of topic branches when you complete a pull request. Instead of each commit on the topic branch being added to the history of the default branch, a squash merge takes all the file changes and adds them to a single new commit on the default branch.

A simple way to think about this is that squash merge gives you just the file changes, and a regular merge gives you the file changes and the commit history.

Note: Squash merging keeps your default branch histories clean and easy to follow without demanding any workflow changes on your team. Contributors to the topic branch work how they want in the topic branch, and the default branches keep a linear history through the use of squash merges. The commit history of a master branch updated with squash merges will have one commit for each merged branch. You can step through this history commit by commit to find out exactly when work was done.


Question 2

SIMULATION

Task 10

You need to create a variable group named varGroup1 that will contain the following variables and default values:

* username: Userl-48901628

* password: aFpJ2j+6M!

The PASSWORD variable must be secret.



Answer : A

Task 10: Create a Variable Group in Azure DevOps

Step 1: Navigate to Library

In your Azure DevOps Project (Project1), click on the Pipelines section in the left menu.

In the Pipelines submenu, click on Library.

Step 2: Create a New Variable Group

Click on the + Variable group button.

Enter the Name:

nginx

Copy

varGroup1

Step 3: Add Variables

Add the first variable:

Click Add.

In the Name field, enter:

nginx

Copy

username

In the Value field, enter:

Copy

Userl-48901628

Add the second variable:

Click Add again.

In the Name field, enter:

nginx

Copy

password

In the Value field, enter:

Copy

aFpJ2j+6M!

Check the box Keep this value secret.

Step 4: Save the Variable Group

Click Save at the top to save the variable group.


Question 3

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a web application named

WebApp1. WebApp1 uses state full sessions.

The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.

You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.

You need to implement limited user testing for the new version of WebApp1 on VMSS1.

Which three actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.



Answer : B, C, D


Question 4

You need to configure GitHub to use Azure Active Directory (Azure AD) for authentication. What should you do first?



Answer : D

When you connect to a Git repository from your Git client for the first time, the credential manager prompts for credentials. Provide your Microsoft account or Azure AD credentials.

Note: Git Credential Managers simplify authentication with your Azure Repos Git repositories. Credential managers let you use the same credentials that you use for the Azure DevOps Services web portal. Credential managers support multi-factor authentication through Microsoft account or Azure Active Directory (Azure AD). Besides supporting multi-factor authentication with Azure Repos, credential managers also support two-factor authentication with GitHub repositories.


https://docs.microsoft.com/en-us/azure/devops/repos/git/set-up-credential-managers

Question 5

You have a GitHub Actions workflow named workflow1 that is used to deploy an app name Appl. You need to ensure that App1 is deployed only when the following conditions are met:

* A pull request is merged to the main branch.

* The change includes a JavaScript file.

Solution. You configure the YAML file of workflow1 to include the following.

Does this meet the goal?



Answer : A


Question 6

SIMULATION

You plan to deploy a template named D:\Deploy.json to a resource group named Deploy-lod9940427.

You need to modify the template to meet the following requirements, and then to deploy the template:

The address space must be reduced to support only 256 total IP addresses.

The subnet address space must be reduced to support only 64 total IP addresses.

To complete this task, sign in to the Microsoft Azure portal.



Answer : A

1. Sign in to the portal,

2. Choose template Deploy-lod9940427

3. Select Edit template, and then paste your JSON template code into the code window.

4. Change the ASddressPrefixes to 10.0.0.0/24 in order to support only 256 total IP addresses.

addressSpace':{'addressPrefixes': ['10.0.0.0/24']},

5. Change the firstSubnet addressprefix to 10.0.0.0/26 to support only 64 total IP addresses.

'subnets':[

{

'name':'firstSubnet',

'properties':{

'addressPrefix':'10.0.0.0/24'

}

6. Select Save.

7. Select Edit parameters, provide values for the parameters that are shown, and then select OK.

8 Select Subscription. Choose the subscription you want to use, and then select OK.

9. Select Resource group. Choose an existing resource group or create a new one, and then select OK.

10. Select Create. A new tile on the dashboard tracks the progress of your template deployment.


https://docs.microsoft.com/en-us/azure-stack/user/azure-stack-deploy-template-portal?view=azs-1908

https://docs.microsoft.com/en-us/azure/architecture/building-blocks/extending-templates/update-resource

Question 7

You have a 1-TB Azure Repos repository named repol.

You need to clone repol. The solution must meet the following requirements;

* You must be able to search the commit history of the /src directory.

* The amount of time it takes to clone the repository must be minimized

Which command should you run?



Answer : C


Page:    1 / 14   
Total 667 questions