ExamGecko
Home / Microsoft / AZ-400 / List of questions
Ask Question

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

List of questions

Question 41

Report
Export
Collapse

HOTSPOT

You use Azure Pipelines to manage the build and deployment of apps.

You are planning the release strategies for a new app.

You need to choose strategies for the following scenarios:

Releases will be made available to users who are grouped by their tolerance for software faults.

Code will be deployed to enable functionality that will be available in later releases of the app.

When a new release occurs, the existing deployment will remain active to minimize recovery time if a return to the previous version is required. Which strategy should you choose for each scenario? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 41 87037 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 41 87037 10022024015257000

Explanation:

Box 1: Progressive exposure

Continuous Delivery may sequence multiple deployment “rings” for progressive exposure (also known as “controlling the blast radius”). Progressive exposure groups users who get to try new releases to monitor their experience in “rings.” The first deployment ring is often a “canary” used to test new versions in production before a broader rollout. CD automates deployment from one ring to the next and may optionally depend on an approval step, in which a decision maker signs off on the changes electronically. CD may create an auditable record of the approval in order to satisfy regulatory procedures or other control objectives.

Microsoft AZ-400 image Question 41 explanation 87037 10022024015257000000

Box 2: Feature flags

Feature flags support a customer-first DevOps mindset, to enable (expose) and disable (hide) features in a solution, even before they are complete and ready for release.

Box 3: Blue/green

Blue/green deployments which means that instead of replacing the previous version (here we refer to this version as blue), we bring up the new version (here referred to as the green version) next to the existing version, but not expose it to the actual users right away. On the condition of having successfully validated that the green version works correctly, we will promote this version to the public version by changing the routing configuration without downtime. If something is wrong with the green version we can revert back without users every noticing interruptions.

Reference:

https://docs.microsoft.com/en-us/azure/devops/learn/what-is-continuous-delivery

https://docs.microsoft.com/en-us/azure/devops/migrate/phase-features-with-feature-flags

https://medium.com/@denniszielke/continuous-kubernetes-blue-green-deployments-on-azure-using-nginx-appgateway-or-trafficmanager-4490bce29cb

asked 02/10/2024
Joshua Paffen
32 questions

Question 42

Report
Export
Collapse

DRAG DROP

You have a project in Azure DevOps.

You need to associate an automated test to a test case.

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


Microsoft AZ-400 image Question 42 87038 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 42 87038 10022024015257000

Explanation:

The process to associate an automated test with a test case is:

1. Create a test project containing your automated test. What types of tests are supported?

2. Check your test project into an Azure DevOps or Team Foundation Server (TFS) repository.

3. Create a build pipeline for your project, ensuring that it contains the automated test. What are the differences if I am still using a XAML build?

4. Use Visual Studio Enterprise or Professional 2017 or a later version to associate the automated test with a test case as shown below. The test case must have been added to a test plan that uses the build you just defined.

Reference:

https://docs.microsoft.com/en-us/azure/devops/test/associate-automated-test-with-test-case

asked 02/10/2024
Richard Drayer Camacho
37 questions

Question 43

Report
Export
Collapse

DRAG DROP

You have an Azure Kubernetes Service (AKS) cluster.

You need to deploy an application to the cluster by using Azure DevOps.

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


Microsoft AZ-400 image Question 43 87039 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 43 87039 10022024015257000

Explanation:

You can set up a CI/CD pipeline to deploy your apps on a Kubernetes cluster with Azure DevOps by leveraging a Linux agent, Docker, and Helm.

Step 1: Create a service principle in Azure Active Directory (Azure AD)

We need to assign 3 specific service principals with specific Azure Roles that need to interact with our ACR and our AKS. Create a specific Service Principal for our Azure DevOps pipelines to be able to push and pull images and charts of our ACR. Create a specific Service Principal for our Azure DevOps pipelines to be able to deploy our application in our AKS. Step 2: Add a Helm package and deploy a task to the deployment pipeline

This is the DevOps workflow with containers:

Microsoft AZ-400 image Question 43 explanation 87039 10022024015257000000

Step 3: Add a Docker Compose task to the deployment pipeline.

Dockerfile file is a script leveraged by Docker, composed of various commands (instructions) and arguments listed successively to automatically perform actions on a base image in order to create a new Docker image by packaging the app.

Reference:

https://cloudblogs.microsoft.com/opensource/2018/11/27/tutorial-azure-devops-setup-cicd-pipeline-kubernetes-docker-helm/

asked 02/10/2024
Muhammad Imran
41 questions

Question 44

Report
Export
Collapse

DRAG DROP

You are defining release strategies for two applications as shown in the following table.

Microsoft AZ-400 image Question 44 87040 10022024015257000000

Which release strategy should you use for each application? To answer, drag the appropriate release strategies to the correct applications. Each release strategy 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.


Microsoft AZ-400 image Question 44 87040 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 44 87040 10022024015257000
asked 02/10/2024
Victor Avila
29 questions

Question 45

Report
Export
Collapse

DRAG DROP

You have an Azure DevOps organization named Contoso.

You have 10 Azure virtual machines that run Windows Server 2019. The virtual machines host an application that you build and deploy by using Azure Pipelines. Each virtual machine has the Web Server (IIS) role installed and configured.

You need to ensure that the web server configurations on the virtual machines is maintained automatically. The solution must provide centralized management of the configuration settings and minimize management overhead.

Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Microsoft AZ-400 image Question 45 87041 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 45 87041 10022024015257000

Explanation:

Step1: Create an Azure Automation account.

An Azure Automation account is required.

Step 2: Install the custom Desired State Configuration (DSC) extension on the virtual machines

Under the hood, and without an administrator having to remote into a VM, the Azure VM Desired State Configuration extension registers the VM with Azure Automation State Configuration.

Step 3: Onboard the virtual machines to the Azure Automation account.

Step 4: Complete the Desired State Configuration (DSC) configuration.

Create a DSC configuration.

Reference:

https://docs.microsoft.com/en-us/azure/automation/automation-dsc-onboarding

asked 02/10/2024
eddie alvarez
42 questions

Question 46

Report
Export
Collapse

HOTSPOT

You have a project in Azure DevOps.

You plan to create a build pipeline that will deploy resources by using Azure Resource Manager templates. The templates will reference secrets stored in Azure Key Vault.

You need to ensure that you can dynamically generate the resource ID of the key vault during template deployment.

What should you include in the template? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 46 87042 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 46 87042 10022024015257000

Explanation:

Box 1: "Microsoft.Resources/deployments"

Reference a secret with dynamic ID. You need to reference a key vault secret that varies based on the current deployment.

Example:

"resources": [

{

"apiVersion": "2018-05-01",

"name": "dynamicSecret",

"type": "Microsoft.Resources/deployments",

"properties": {

"mode": "Incremental",

"templateLink": {

Box 2: "templateLink"

In your parent template, you add the linked template and pass in a parameter that contains the dynamically generated resource ID.

References: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-keyvault-parameter

asked 02/10/2024
Kong Yew Kuen
38 questions

Question 47

Report
Export
Collapse

You have a project in Azure DevOps.

You plan to deploy a self-hosted agent by using an unattended configuration script.

Which two values should you define in the configuration script? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

authorization credentials
authorization credentials
the project name
the project name
the deployment group name
the deployment group name
the organization URL
the organization URL
the agent pool name
the agent pool name
Suggested answer: C, E

Explanation:


asked 02/10/2024
Felix Bourdier
47 questions

Question 48

Report
Export
Collapse

HOTSPOT

You have an Azure virtual machine named VM1 that runs Linux.

You plan to deploy the Desired State Configuration (DSC) extension to VM1.

You need to grant the Log Analytics agent the appropriate directory permissions.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 48 87044 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 48 87044 10022024015257000

Explanation:

Box 1: rwx

The Log Analytics agent for Linux runs as the omsagent user. To grant >write permission to the omsagent user, run the command setfacl -m u:omsagent:rwx /tmp.

Box 2: /tmp

Deploying DSC to a Linux node uses the /tmp folder.

Reference:

https://docs.microsoft.com/en-us/azure/automation/automation-dsc-onboarding

asked 02/10/2024
Pradap Singh
32 questions

Question 49

Report
Export
Collapse

HOTSPOT

You are using PowerShell to administer Azure Log Analytics workspaces.

You need to list the available workspaces and their properties.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-400 image Question 49 87045 10022024015257000
Correct answer: Microsoft AZ-400 image answer Question 49 87045 10022024015257000

Explanation:

Box 1: Get-AzResource

Use the following command to examine the access control mode for all workspaces in the subscription:

PowerShell

Get-AzResource -ResourceType Microsoft.OperationalInsights/workspaces -ExpandProperties | foreach {$_.Name + ": " + $_.Properties.features.enableLogAccessUsingOnlyResourcePermissions

Box 2: -ResourceType

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/logs/manage-access

asked 02/10/2024
JP Pelovello
48 questions

Question 50

Report
Export
Collapse

You have Azure Pipelines and GitHub integrated as a source code repository.

The build pipeline has continuous integration enabled.

You plan to trigger an automated build whenever code changes are committed to the repository.

You need to ensure that the system will wait until a build completes before queuing another build.

What should you implement?

path filters
path filters
batch changes
batch changes
scheduled builds
scheduled builds
branch filters
branch filters
Suggested answer: B

Explanation:

Batching CI runs

If you have many team members uploading changes often, you may want to reduce the number of runs you start. If you set batch to true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.

Example:

# specific branch build with batching

trigger:

batch: true

branches:

include:

- master

To clarify this example, let us say that a push A to master caused the above pipeline to run. While that pipeline is running, additional pushes B and C occur into the repository. These updates do not start new independent runs immediately. But after the first run is completed, all pushes until that point of time are batched together and a new run is started.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github

asked 02/10/2024
Marco Morsiani
45 questions
Total 489 questions
Go to page: of 49
Search

Related questions