Practice Free AZ-400 Exam Online Questions
You have a project in Azure DevOps named Project that contains a Kanban board named Board1.
You create a Microsoft Teams channel and add the Azure Boards app to the channel.
You need to ensure that users can create work items in Board1 from Microsoft Teams.
Which command should you run?
- A . @azure boards sign in
- B . @azure boards link
- C . @azure boards create
- D . @azure boards subscriptions
You have a project in Azure DevOps named Project that contains a Kanban board named Board1.
You create a Microsoft Teams channel and add the Azure Boards app to the channel.
You need to ensure that users can create work items in Board1 from Microsoft Teams.
Which command should you run?
- A . @azure boards sign in
- B . @azure boards link
- C . @azure boards create
- D . @azure boards subscriptions
Your company has an Azure DevOps project,
The source code for the project is stored in an on-premises repository and uses on an on-premises build
server.
You plan to use Azure DevOps to control the build process on the build server by using a self-hosted agent.
You need to implement the self-hosted agent.
You download and install the agent on the build server.
Which two actions should you perform next? Each correct answer presents part of the solution.
- A . From Azure, create a shared access signature (SAS).
- B . From the build server, create a certificate, and then upload the certificate to Azure Storage.
- C . From the build server, create a certificate, and then upload the certificate to Azure Key Vault.
- D . From DevOps, create a personal access token (PAT).
- E . From the build server, run config.cmd.
DE
Explanation:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops (Get PAT, run config)
Your company has an Azure DevOps project,
The source code for the project is stored in an on-premises repository and uses on an on-premises build
server.
You plan to use Azure DevOps to control the build process on the build server by using a self-hosted agent.
You need to implement the self-hosted agent.
You download and install the agent on the build server.
Which two actions should you perform next? Each correct answer presents part of the solution.
- A . From Azure, create a shared access signature (SAS).
- B . From the build server, create a certificate, and then upload the certificate to Azure Storage.
- C . From the build server, create a certificate, and then upload the certificate to Azure Key Vault.
- D . From DevOps, create a personal access token (PAT).
- E . From the build server, run config.cmd.
DE
Explanation:
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops (Get PAT, run config)
You use Azure Pipelines to manage project builds and deployments.
You plan to use Azure Pipelines for Microsoft Teams to notify the legal team when a new build is ready for release. You need to configure the Organization Settings in Azure DevOps to support Azure Pipelines for Microsoft Teams.
What should you turn on?
- A . Azure Active Directory Conditional Access Policy Validation
- B . Alternate authentication credentials
- C . Third-party application access via OAuth
- D . SSH authentication
C
Explanation:
The Azure Pipelines app uses the OAuth authentication protocol, and requires Third-party application access via OAuth for the organization to be enabled. To enable this setting, navigate to Organization Settings > Security > Policies, and set the Third-party application access via OAuth for the organization setting to On.
Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams
HOTSPOT
You have a project in Azure DevOps that contains a Continuous Integration/Continuous Deployment (CI/CD) pipeline.
You need to enable detailed logging by defining a pipeline variable.
Mow should you configure the variable? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.


You have a GitHub repository named repol.
You commit a change to repol.
You need to update the commit message. The solution must ensure that the version number remains the same.
Which command should you run?
- A . git commit –patch
- B . git commit –amend
- C . git status –renames
- D . git restore –patch
DRAG DROP
You have a web app named App1 that uses Application Insights in Azure Monitor.
You need to compare the hourly CPU usage of App1 from the last 24 hours. The solution must include a graph that has a threshold line at 75 percent
How should you complete the query? To answer, drag the appropriate values to the correct targets. Each value 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.


DRAG DROP
You have a web app named App1 that uses Application Insights in Azure Monitor.
You need to compare the hourly CPU usage of App1 from the last 24 hours. The solution must include a graph that has a threshold line at 75 percent
How should you complete the query? To answer, drag the appropriate values to the correct targets. Each value 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.


DRAG DROP
You manage the Git repository for a large enterprise application.
During the development of the application, you use a file named Config.json.
You need to prevent Config.json from being committed to the source control whenever changes to the application are committed.
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.

Explanation:
Step 1: Delete and recreate the repository.
Step 2: Add Config.json to the .gitignore file
Each line in the .gitignore excludes a file or set of files that match a pattern.
Example:
# ignore a single file Config.json
Step 3: Run the git add .gitignore command
At the initial commit we want basically move from Untracked to Staged, for staging we have to indicate which file we want to move or specify a pattern, as example:
Reference:
http://hermit.no/how-to-find-the-best-gitignore-for-visual-studio-and-azure-devops/
https://geohernandez.net/how-to-add-an-existing-repository-into-azure-devops-repo-with-git/
