Free Microsoft AZ-400 Exam Actual Questions

The questions for AZ-400 were last updated On Dec 17, 2024

Question No. 1

SIMULATION

You have a GitHub repository that contains the source code for an app.

You need to identify all the changes made between versions 1.4.16 and 1.6.12 of the source code.

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

NOTE: Each correct selection is worth one point.

Git _________ ____________ | helper-script > changes.txt

Show Answer Hide Answer
Correct Answer: A

Answer below

get diff v1.4.16 v1.6.12 | helper-script > changes.txt

This command will compare the changes made between versions 1.4.16 and 1.6.12 of the source code in your GitHub repository, pipe the output through the helper-script and save the result to a file called 'changes.txt' Please note that, this command assumes that you have a helper-script that can handle get diff output as an input and processes it further. It is not a default get command.


Question No. 2

You have a free tier of an Azure DevOps organization named Contoso. Contoso contains 10 private projects. Each project has multiple jobs with no dependencies.

You frequently run the jobs on five self-hosted agents but experience long build times and frequently queued builds.

You need to minimize the number of queued builds and the time it takes to run the builds.

What should you do?

Show Answer Hide Answer
Question No. 3

SIMULATION

You have several apps that use an Azure SQL Database named db1.

You need to ensure that queries to db1 are tuned by Azure over time. The solution must only apply to db1.

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

Show Answer Hide Answer
Correct Answer: A

2. Select the automatic tuning options you want to enable and select Apply.

Note: Individual automatic tuning settings can be separately configured for each database. You can manually configure an individual automatic tuning option, or specify that an option inherits its settings from the server.


https://docs.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable

Question No. 4

You have a project in Azure DevOps named Project1. Project1 contains a build pipeline named Pipe1 that builds an application named Appl.

You have an agent pool named Pool1 that contains a Windows Server 2019-based self-hosted agent. Pipe1 uses Pool1.

You plan to implement another project named Project2. Project2 will have a build pipeline named Pipe2 that builds an application named App2.

App1 and App2 have conflicting dependencies.

You need to minimize the possibility that the two build pipelines will conflict with each other. The solution must minimize infrastructure costs.

What should you do?

Show Answer Hide Answer
Correct Answer: A

Question No. 5

You are developing an open source solution that uses a GitHub repository.

You create a new public project in Azure DevOps.

You plan to use Azure Pipelines for continuous build. The solution will use the GitHub Checks API.

Which authentication type should you use?

Show Answer Hide Answer