AZ-400 Dumps

AZ-400 Free Practice Test

Microsoft AZ-400: Microsoft Azure DevOps Solutions (beta)

QUESTION 186

- (Exam Topic 4)
You provision an Azure Kubernetes Service (AKS) cluster that has RBAC enabled. You have a Helm chart for a client application.
You need to configure Helm and Tiller on the cluster and install the chart.
Which three commands should you recommend be run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
AZ-400 dumps exhibit
Solution:
Step 1: Kubectl create
You can add a service account to Tiller using the --service-account flag while you’re configuring Helm (step 2 below). As a prerequisite, you’ll have to create a role binding which specifies a role and a service account name that have been set up in advance.
Example: Service account with cluster-admin role
$ kubectl create -f rbac-config.yaml serviceaccount "tiller" created clusterrolebinding "tiller" created
$ helm init --service-account tiller Step 2: helm init
To deploy a basic Tiller into an AKS cluster, use the helm init command. Step 3: helm install
To install charts with Helm, use the helm install command and specify the name of the chart to install. References:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-helm https://docs.helm.sh/using_helm/#tiller-namespaces-and-rbac

Does this meet the goal?

Correct Answer: A

QUESTION 187

- (Exam Topic 4)
You have an Azure DevOps project that contains a release pipeline and a Git repository. When a new code revision is committed to the repository, a build and release is triggered.
You need to ensure that release information for the pipeline is added automatically to the work items associated to the Git commit.
What should you do?

Correct Answer: D
Service hooks in Azure DevOps allow you to trigger actions in other tools based on events that occur in your Azure DevOps project. To automatically add release information to work items associated with a Git commit, you would need to configure a service hook that listens for commit events in your Git repository, and then sends the release information to the appropriate work items.
Here's the steps you can follow to set up a service hook for this purpose:
AZ-400 dumps exhibit In your Azure DevOps project, navigate to the project settings by clicking on the gear icon in the top right corner of the page.
AZ-400 dumps exhibit Select "Service Hooks" from the left-hand menu.
AZ-400 dumps exhibit Click on the "New Subscription" button to create a new service hook.
AZ-400 dumps exhibit In the "Event" drop-down menu, select "Code pushed" to trigger the service hook when a new code revision is committed to the repository.
AZ-400 dumps exhibit In the "Actions" section, select the action that you want to take place when the service hook is triggered.
For example, you might use the "Link work items to commits" action to automatically associate work items with the relevant commits.
AZ-400 dumps exhibit Configure the remaining settings as needed, and then click on the "Create" button to create the service hook.
You can find more information on Service hooks in Azure DevOps by following this link https://docs.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops

QUESTION 188

- (Exam Topic 4)
You plan to create an image that will contain a .NET Core application.
You have a Dockerfile file that contains the following code. (Line numbers are included for reference only.)
AZ-400 dumps exhibit
You need to ensure that the image is as small as possible when the image is built. Which line should you modify in the file?

Correct Answer: C
https://github.com/dotnet/dotnet-docker/blob/master/samples/dotnetapp/README.md

QUESTION 189

- (Exam Topic 4)
You have a project in Azure DevOps named Project1.
You need to ensure that all new pipelines in Project1 execute three specific tasks during pipeline execution. What should you create?

Correct Answer: A
A task group in Azure DevOps is a collection of tasks that can be reused across multiple pipelines. You can create a task group that contains the three specific tasks that you need to execute during pipeline execution, and then reference that task group in all new pipelines in Project1. This way, you can ensure that the three specific tasks are executed in all new pipelines without having to manually add them to each pipeline.

QUESTION 190

- (Exam Topic 4)
You have an app named App1. You have a Log Analytics workspace named Workspace 1 that contains two tables named Events and Logs. App1 manages events in multiple locations and writes togs to Workspace1.
You need to query Workspace1 for all log entries related to Asia that occurred during the last two days. In which order should you arrange the query statements? To answer, move all statements from the let of
statements to the answer area and arrange them in the correct order.
AZ-400 dumps exhibit
Solution:
AZ-400 dumps exhibit

Does this meet the goal?

Correct Answer: A