Microsoft

AZ-400 Free Practice Questions — Page 8

Question 72

You have an Azure pipeline that is used to build and deploy an app named App1. The build job uses a Microsoft-hosted Windows agent. The build job for App1 intermittently returns a timeout error. You need to ensure that the build job completes successfully. The solution must minimize administrative effort. What should you do?

A. Change the configuration of the build agent.
B. Deploy a self-hosted agent.
C. Change to a Microsoft-hosted Linux agent.
D. Purchase more parallel jobs.
Show Answer
Correct Answer: B
Explanation:
A self-hosted agent removes Microsoft-hosted job timeout limitations and is the documented way to eliminate timeout issues caused by hosted agents. Changing agent configuration is not possible for Microsoft-hosted agents, switching to Linux does not address timeout limits, and purchasing parallel jobs mainly increases concurrency (and may extend limits depending on licensing) but does not eliminate timeout issues as reliably as a self-hosted agent.

Question 73

DRAG DROP - You plan to use Azure DevOps in development processes. You identify the following issues with the existing development processes: • Frequent discovery of bugs in production • Increasing detection of bugs by customers • Slow resolution of bugs and slow resumption of production You need to implement Key Performance Indicators (KPIs) to track each issue. Which KPI should you implement for each issue? To answer, drag the appropriate KPIs to the correct issues. Each KPI 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.

Illustration for AZ-400 question 73
Show Answer
Correct Answer: Frequent discovery of bugs in production: Defect escape rate Increasing detection of bugs by customers: Bug report rates Slow resolution of bugs and slow resumption of production: Application failure rates
Explanation:
Defect escape rate measures defects reaching production. Bug report rates reflect customer-reported issues. With the given options, application failure rates best aligns with production incidents affecting restoration; deployment failure rate only measures failed deployments.

Question 74

You use Git for source control. You need to commit a 3-GB ZIP file that contains virtual machines used for testing. The solution must meet the following requirements: • The file must be versioned. • The file must be associated with the corresponding code commits. Which two actions should you include in the solution? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Install the git-fat extension and associate the extension to ZIP files.
B. Install the Git LFS extension and associate the extension to ZIP files.
C. Install the git-stash extension and associate the extension to ZIP files.
D. Use GZip to compress the file before committing the file.
E. Store files in Azure Storage and enable blob versions.
Show Answer
Correct Answer: B, E
Explanation:
Git LFS is the standard Git extension for versioning large binary files while keeping them associated with Git commits by storing pointers in the repository. The large file content must be stored in external storage; using Azure Blob Storage with blob versioning provides versioned storage for the LFS objects. git-stash is unrelated, GZip does not solve large-file versioning, and git-fat is not the Azure DevOps recommended solution.

Question 75

You manage projects by using Azure Boards. You manage project code by using GitHub. You have a work item that has an ID of 123. You need to link work item 123 to a new pull request. What are two ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

A. In the Development section for work item 123, select Add link, and then enter the URL of the pull request.
B. To the description of the pull request, add #AB123.
C. To work item 123 add a comment that includes the URL of the pull request.
D. From work item 123, open the Links tab, select Add link, select Existing item, and then enter the URL of the commit.
Show Answer
Correct Answer: A, D
Explanation:
You can explicitly link a GitHub pull request from the Azure Boards work item's Development section by adding the PR URL. You can also add an existing link to the associated commit from the work item's Links tab, which establishes the development linkage. Option B is incorrect as written because the GitHub work item reference syntax is not '#AB123'; the documented syntax is 'AB#123'. Option C only adds a comment and does not create a development link.

Question 76

You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and an app named App1. Pipeline1 is used to automate the building of App1. You have a Slack channel named App1chat that includes an incoming webhook. You need to ensure that when a successful build of App1 is created, a notification is sent to App1chat by using the webhook. What should you use?

A. a notification
B. an alert rule
C. a subscription
D. an action group
Show Answer
Correct Answer: C
Explanation:
Use an Azure DevOps service hook subscription to send build event notifications (such as a successful pipeline build) to Slack via the configured incoming webhook. Alert rules and action groups are Azure Monitor features, and notifications are not the mechanism used for Slack webhooks in Azure DevOps.

Question 77

You have a project in Azure DevOps named App Project that is used to develop an app named App1. App1Project has an Azure Boards team dashboard that is used to monitor the progress of App1 and track work items. You need to track how long it takes to close a work item once work for the item has commenced. Which type of widget should you add to the dashboard?

A. sprint burndown
B. velocity
C. lead time
D. cycle time
Show Answer
Correct Answer: D
Explanation:
Cycle time measures the time from when work starts (is commenced/activated) on a work item until it is completed/closed. Lead time measures from creation/request to completion, while sprint burndown and velocity track sprint progress and team throughput rather than elapsed time for individual work items.

Question 78

You have a project in Azure DevOps. You need to implement a new branching solution. The solution must ensure that all pull requests meet the following requirements: • Include linked work items. • Pass build validation policies. • Require at least three reviewers. What should you include in the solution?

A. branch policies
B. pull request templates
C. branch security
D. pull request permissions
Show Answer
Correct Answer: A
Explanation:
Branch policies in Azure DevOps can enforce pull request requirements such as requiring linked work items, build validation, and a minimum number of reviewers before completion. Pull request templates only provide guidance, branch security controls permissions rather than PR validation rules, and pull request permissions do not enforce these review and validation requirements.

Question 79

DRAG DROP - You use an Azure pipeline to build a .NET app that has NuGet dependencies. You need to ensure that the pipeline caches required NuGet packages. How should you configure the pipeline? 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.

Illustration for AZ-400 question 79
Show Answer
Correct Answer: Key: $(Build.SourcesDirectory)/**/packages.lock.json Restore key: $(Agent.OS) Path: $(NUGET_PACKAGES)
Explanation:
Azure Pipelines caches NuGet packages using a key composed of the OS and the packages.lock.json files. The cache path should be the NUGET_PACKAGES variable.

Question 80

HOTSPOT - You have an Azure subscription that contains Azure DevOps build pipelines. You need to implement pipeline caching by using the cache task. How should you complete the YAML definition? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-400 question 80
Show Answer
Correct Answer: key path
Explanation:
The Azure Pipelines Cache@2 task uses the 'key' input to define the cache key and the 'path' input to specify the directory to cache. The correct syntax is key: 'yarn | "$(Agent.OS)" | yarn.lock' and path: $(YARN_CACHE_FOLDER).

Question 81

You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and a user named User1. Pipeline1 is used to build and test an app named App1. User1 is assigned the Contributors role for Pipeline1. You plan to test App1 by using an Azure Deployment Environments environment. You need to ensure that User1 can provision the environment. The solution must follow the principle of least privilege. Which role should you assign to User1?

A. DevCenter Project Admin
B. Deployment Environments User
C. Contributors
D. Build Administrators
Show Answer
Correct Answer: B
Explanation:
The least-privilege role that allows a developer to provision and manage their own Azure Deployment Environments is Deployment Environments User. This role permits creating environments and managing the user's own environments without granting broader administrative permissions. DevCenter Project Admin is more privileged than necessary, Contributor is an Azure RBAC role not specific to Deployment Environments provisioning, and Build Administrators relates to Azure Pipelines build management, not Deployment Environments.

$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.