ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











You have an app named App1 that you release by using Azure Pipelines. App1 has the versions shown in the following table.

You complete a code change to fix a bug that was introduced in version 3.4.3.

Which version number should you assign to the release?

A.
3.4.4
A.
3.4.4
Answers
B.
3.4.8
B.
3.4.8
Answers
C.
3.5.0
C.
3.5.0
Answers
D.
4.0.1
D.
4.0.1
Answers
Suggested answer: D

You plan to publish build artifacts by using an Azure pipeline.

You need to create an. artifactignore file that meets the following requirements:

* Includes all files in the build output folder and all subfolders

* Excludes files that have the .dll extension

What should you include in the file?

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: B

You have a project in Azure DevOps named Project1 that contains two environments named environment1 and envkonment2.

When a new version of Project1 is released, the latest version is deployed to environment2, and the previous version is redeployed to environments

You need to distribute users across the environments. The solution must meet the following requirements:

* New releases must be available to only a subset of the users.

* You must gradually increase the number of users that can access environment2.

What should you use?

A.
web app deployment slots
A.
web app deployment slots
Answers
B.
Azure Traffic Manager
B.
Azure Traffic Manager
Answers
C.
VIP swapping
C.
VIP swapping
Answers
D.
Azure Load Balancer
D.
Azure Load Balancer
Answers
Suggested answer: A

You plan to use Azure DevOps to build and deploy an app that will be hosted in a Kubernetes cluster.

You need to scan the app image for vulnerabilities before the image is deployed to the cluster.

What should you include in the solution?

A.
Microsoft Defender for DevOps
A.
Microsoft Defender for DevOps
Answers
B.
Microsoft Defender for Storage
B.
Microsoft Defender for Storage
Answers
C.
Microsoft Defender for Containers
C.
Microsoft Defender for Containers
Answers
D.
Microsoft Defender for App Service
D.
Microsoft Defender for App Service
Answers
Suggested answer: C

DRAG DROP

You have an Azure Key Vault that contains an encryption key named key1.

You plan to create a Log Analytics workspace that will store logging data.

You need to encrypt the workspace by using key1.

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.

Question 415
Correct answer: Question 415

Explanation:

Enable soft delete for the key vault.

Create a Log Analytics cluster.

Grant permissioins to the key vault.

Link the workspace.


HOTSPOT

You have a project in Azure DevOps that includes two users named User1 and User2.

You plan to use Azure Monitor to manage logs.

You need to ensure that the users can perform the actions shown in following the table.

The solution must follow the principle of least privilege.

Which role should you assign to each user? To answer select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 416
Correct answer: Question 416

DRAG DROP

You have an Azure Pipeline.

You need to store configuration values as variables.

At which four scopes can the variables be defined, and what is the precedence of the variables from the highest precedence to lowest precedence? To answer, move the appropriate scope from the list of scopes to the answer area and arrange them in the correct order.

Question 417
Correct answer: Question 417

Explanation:

job

stage

pipeline root

pipeline settings UI


Your company has a project in Azure DevOps for a new application. The application will be deployed to several Azure virtual machines that run Windows Server 2022. You need to recommend a deployment strategy for the virtual machines. The strategy must meet the following requirements:

* Ensure that the virtual machines maintain a consistent configuration.

* Minimize administrative effort to configure the virtual machines.

What should you include in the recommendation?

A.
Azure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows
A.
Azure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows
Answers
B.
Deployment YAML and Azure pipeline deployment groups
B.
Deployment YAML and Azure pipeline deployment groups
Answers
C.
Azure Resource Manager templates and the Custom Script Extension for Windows
C.
Azure Resource Manager templates and the Custom Script Extension for Windows
Answers
D.
Deployment YAML and Azure pipeline stage templates
D.
Deployment YAML and Azure pipeline stage templates
Answers
Suggested answer: C

You use Azure Pipelines to build and test code projects.

You notice an increase in cycle times.

You need to identify whether agent pool exhaustion is causing the issue.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.
View the Pipeline duration report.
A.
View the Pipeline duration report.
Answers
B.
Query the PipelineRun/PipelineRuns endpoint.
B.
Query the PipelineRun/PipelineRuns endpoint.
Answers
C.
View the pool consumption report at the organization level.
C.
View the pool consumption report at the organization level.
Answers
D.
Query the TaskAgentPoolSizeSnapshots endpoint
D.
Query the TaskAgentPoolSizeSnapshots endpoint
Answers
Suggested answer: C, D

You use GitHub for source control

You are evaluating whether to use proxying to add a private upstream MyGet package feed to your MyGet feed. What are two possible advantages of this approach? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.
minimizes latency when accessing the package
A.
minimizes latency when accessing the package
Answers
B.
provides automatic authentication
B.
provides automatic authentication
Answers
C.
minimizes the impact on your storage quota
C.
minimizes the impact on your storage quota
Answers
D.
minimizes the impact of upstream source availability issues
D.
minimizes the impact of upstream source availability issues
Answers
Suggested answer: B, C
Total 482 questions
Go to page: of 49