Microsoft AZ-400 Practice Test - Questions Answers, Page 42
List of questions
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?
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?
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?
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?
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.
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.
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.
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?
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.
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.
Question