Microsoft

AZ-400 Free Practice Questions — Page 26

Question 258

You need to perform the GitHub code migration. The solution must support the planned changes for the DevOps environment. What should you use?

A. git clone
B. GitHub Importer
C. Import repository in Azure Repos
D. git-tfs
Show Answer
Correct Answer: D
Explanation:
For migrating a Team Foundation Version Control (TFVC/TFS) repository to GitHub while preserving history, the recommended migration tool is git-tfs. GitHub Importer has historically supported some TFVC scenarios, but for direct TFVC migrations—especially from typical on-premises TFS environments—git-tfs is the standard migration tool before pushing to GitHub.

Question 259

DRAG DROP - You need to replace the existing DevOps tools to support the planned changes. What should you use? To answer, drag the appropriate tools to the correct targets. Each tool 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. Select and Place:

Illustration for AZ-400 question 259
Show Answer
Correct Answer: Trello: Azure Boards Bamboo: Azure Pipelines BitBucket: GitHub repositories
Explanation:
Replace project tracking with Azure Boards, CI/CD with Azure Pipelines, and source code repositories with GitHub repositories.

Question 260

You need to configure Azure Pipelines to control App2 builds. Which authentication method should you use?

A. Windows NTLM
B. certificate
C. SAML
D. personal access token (PAT)
Show Answer
Correct Answer: D
Explanation:
Azure Pipelines and other Azure DevOps services commonly use Personal Access Tokens (PATs) for authentication by users, scripts, and third-party applications to authorize pipeline operations. NTLM, client certificates, and SAML are not the standard authentication mechanism for controlling Azure Pipelines builds.

Question 261

You are using GitHub as a source code repository. You create a client-side Git hook on the commit-msg event. The hook requires that each commit message contain a custom work item tag. You need to make a commit that does not have a work item tag. Which git commit parameter should you use?

A. --squash
B. --no-verify
C. --message ''
D. --no-post-rewrite
Show Answer
Correct Answer: B
Explanation:
The commit-msg hook is a client-side Git hook that can be bypassed when running git commit with the --no-verify option. This skips execution of the commit-msg hook, allowing a commit message that does not meet the hook's validation rules.

Question 262

You plan to onboard 10 new developers. You need to recommend a development environment that meets the following requirements: ✑ Integrates with GitHub ✑ Provides integrated debugging tools ✑ Supports remote workers and hot-desking environments ✑ Supports developers who use browsers, tablets, and Chromebooks What should you recommend?

A. VS Code
B. Xamarin Studio
C. MonoDevelop
D. Github Codespaces
Show Answer
Correct Answer: D
Explanation:
GitHub Codespaces is a cloud-based development environment that integrates natively with GitHub, includes support for debugging through VS Code in the browser or desktop, and is designed for remote work, hot-desking, and use from browsers, tablets, and Chromebooks. The other options do not satisfy the cloud/browser-centric and remote environment requirements as comprehensively.

Question 263

You use GitHub for source control. A file that contains sensitive data is committed accidentally to the Git repository of a project. You need to delete the file and its history form the repository. Which two tools can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

A. the git filter-branch command
B. BFG Repo-Cleaner
C. the git rebase command
D. GitHub Desktop
Show Answer
Correct Answer: A, B
Explanation:
The correct tools for removing a file and its history from a Git repository are git filter-branch and BFG Repo-Cleaner. Both rewrite repository history to purge sensitive data from all commits. git rebase only rewrites selected commit history and is not intended for repository-wide purging, and GitHub Desktop does not provide this capability.

Question 264

You have an Azure DevOps project that contains a build pipeline. The build pipeline uses approximately 50 open source libraries. You need to ensure that all the open source libraries comply with your company's licensing standards. Which service should you use?

A. Ansible
B. Maven
C. WhiteSource Bolt
D. Helm
Show Answer
Correct Answer: C
Explanation:
WhiteSource Bolt integrates with Azure DevOps to scan open source dependencies, identify license compliance issues, and detect security vulnerabilities. Ansible is for configuration management, Maven is a build/dependency management tool, and Helm is a Kubernetes package manager.

Question 265

DRAG DROP - You need to configure authentication for App1. The solution must support the planned changes. Which three actions should you perform in sequence? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order. Select and Place:

Illustration for AZ-400 question 265
Show Answer
Correct Answer: Create an app. Add a secret. Configure the ID and secret for App1.
Explanation:
To authenticate with a service principal, first register the application, then create a client secret, and finally configure App1 to use the application (client) ID and secret. Managed identity would not require configuring an ID and secret.

Question 266

HOTSPOT - You are using PowerShell to administer Azure Log Analytics workspaces. You need to list the available workspaces and their properties. How should you complete the command? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-400 question 266
Show Answer
Correct Answer: Get-AzResource -ResourceType
Explanation:
Use Get-AzResource filtered by the resource type Microsoft.OperationalInsights/workspaces, then expand properties to list Log Analytics workspaces and their properties.

Question 267

DRAG DROP - You have an on-premises Bitbucket Server with a firewall configured to block inbound Internet traffic. The server is used for Git-based source control. You intend to manage the build and release processes using Azure DevOps. This plan requires you to integrate Azure DevOps and Bitbucket. Which of the following will allow for this integration? Answer by dragging the correct options from the list to the answer area. Select and Place:

Illustration for AZ-400 question 267
Show Answer
Correct Answer: A self-hosted agent An External Git service connection
Explanation:
A self-hosted agent inside the network can access the on-premises Bitbucket server while only requiring outbound connectivity to Azure DevOps. An External Git service connection is used to connect Azure DevOps to the external Bitbucket Git repository. Microsoft-hosted agents cannot reach the blocked server, and Service Hooks are not the required integration mechanism.

$19

Get all 534 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.