Microsoft

AZ-400 Free Practice Questions — Page 10

Question 92

You have the services shown in the following table. You manage a project by using Azure Boards. You need to notify the services of build status changes. Which services can be notified by using a webhook?

A. Service1 only
B. Service2 only
C. Service1 and Service2
Show Answer
Correct Answer: C
Explanation:
Azure DevOps webhooks can send notifications to both HTTP and HTTPS endpoints, so both services can be notified if they are the HTTP and HTTPS services shown in the table. Therefore, both Service1 and Service2 are supported.

Question 93

HOTSPOT - You have a project in Azure DevOps that includes two users named User1 and User2. You plan to use Azure Monitor to manage logs. You need to ensure that the users can perform the actions shown in following the table. The solution must follow the principle of least privilege. Which role should you assign to each user? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-400 question 93 Illustration for AZ-400 question 93
Show Answer
Correct Answer: User1: Log Analytics Reader User2: Monitoring Reader
Explanation:
Log Analytics Reader can search Log Analytics workspace data and create private monitoring dashboards. Monitoring Reader provides read-only access to monitoring features, including viewing autoscale settings and alerts, following least privilege.

Question 94

You have an app named App1 that uses Application Insights to monitor application performance. You need to analyze how often a page in App1 is accessed. Which pane in Application Insights should you use?

A. Events
B. Sessions
C. Impact
D. Users
Show Answer
Correct Answer: A
Explanation:
The Events pane is used to analyze how often specific pages and features are used. Page views are tracked as events, making it the appropriate place to analyze page access frequency. Sessions focuses on user visits, Users on user counts/behavior, and Impact on the effect of issues.

Question 95

You have an Azure subscription that contains a Log Analytics workspace named WS1 and a virtual machine named VM1. You need to install the Microsoft Enterprise Cloud Monitoring extension on VM1. Which two values are required to configure the extension? Each correct answer presents part of the solution. NOTE: Each correct answer is worth one point.

A. the secret key of WS1
B. the ID of the subscription
C. the system-assigned managed identity of VM1
D. the ID of WS1
E. the resource ID of VM1
Show Answer
Correct Answer: A, D
Explanation:
The Microsoft Enterprise Cloud Monitoring (OMS/Log Analytics) extension requires the Log Analytics workspace ID and the workspace key (shared secret) to register the VM with the workspace. Subscription ID, VM resource ID, and the VM's managed identity are not required to configure this extension.

Question 96

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently. You identify that the failures are unrelated to changes in the source code and execution environment. You need to minimize troubleshooting effort for the TestSuite1 failures. Solution: You enable flaky test management. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
Enabling flaky test management meets the goal. Azure DevOps flaky test management identifies and tracks intermittently failing tests that are not caused by code or environment changes, helping isolate flaky tests, reduce noise from unreliable failures, and minimize troubleshooting effort.

Question 97

You have an Azure subscription that contains an Azure pipeline named Pipeline1 and a GitHub repository named Repo1. Repo1 contains Bicep modules. Pipeline1 deploys Azure resources by using the Bicep modules. You need to ensure that all releases comply with Azure Policy before they are deployed to production. What should you do?

A. To Pipeline1, add a step that runs a What if deployment before the deployment step.
B. Configure a deployment gate for Pipeline1 that uses Azure Automation to run a What If deployment.
C. Create an Azure DevOps build that runs on the creation of a pull request and assesses the code for compliance.
D. Configure a deployment gate for Pipeline1 and include the Azure DevOps Security and compliance assessment task.
Show Answer
Correct Answer: D
Explanation:
Deployment gates can enforce pre-deployment checks. Using the Azure DevOps Security and Compliance Assessment gate/task evaluates the release against Azure Policy and other compliance requirements before promotion to production. A What-If deployment previews changes but does not itself enforce Azure Policy compliance, and pull request validation checks code rather than the resulting deployment's policy compliance.

Question 98

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure pipeline that is used to deploy a web app. The pipeline includes a test suite named TestSuite1. TestSuite1 is used to validate the operations of the web app. TestSuite1 fails intermittently. You identify that the failures are unrelated to changes in the source code and execution environment. You need to minimize troubleshooting effort for the TestSuite1 failures. Solution: You implement the Test Results Trend widget. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
The Test Results Trend widget helps visualize historical test outcomes but does not reduce troubleshooting effort for intermittent, unrelated test failures. Azure DevOps provides flaky test management to identify, track, and manage intermittent test failures, which is the appropriate feature for this scenario.

Question 99

You manage projects by using Azure Boards. You have a current work item name itemA that is dependant on a work item named itemB. You need to define the dependency for itemA. What should you do in the web portal for Azure DevOps?

A. From itemA, open the Links tab, and then select Add link. Set Link type to Related and add the ID of itemB.
B. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to Successor and add the ID of item
C. From itemA, open the Links tab, and then select Add link. Set Link type to References and add the ID of itemB.
D. From Queries, open the context menu, select Add link, and then select Existing Item. Set Link type to Affected By and add the ID of itemB.
Show Answer
Correct Answer: B
Explanation:
Azure Boards models dependencies using the Predecessor/Successor link types rather than Related or References. To indicate that itemA depends on itemB, create a dependency link of type Successor/Predecessor from the backlog context so the work items are linked as dependency items. The other options use incorrect link types or unsupported locations.

Question 100

You manage a project by using Azure Boards. You manage the project code by using GitHub. You have three work items that have IDs of 456, 457, and 458. You need to create a pull request that will be linked to all the work items. The solution must set the state of work item 456 to done. What should you add to the commit message?

A. #AB456, #AB457, #AB458 Completed #AB456
B. #456, #457, #458 Completed #456
C. Done #AB456, #AB457, #AB458
D. #AB456, #AB457, #AB458 Verifies #AB456
Show Answer
Correct Answer: A
Explanation:
The current Azure Boards/GitHub integration uses keywords such as 'Fixes AB#456' to both link and complete a work item. None of the options exactly matches the modern syntax, making the question outdated. Among the provided choices, A is the closest because it links all three work items using the Azure Boards reference format and includes a completion keyword for work item 456. The other options either omit the Azure Boards reference format or use an action that does not correspond to completing the work item.

Question 101

You manage projects by using Azure Boards. You have a current work item name itemA that is dependant on a work item named itemB. You need to define the dependency for itemA. What should you do in the web portal for Azure DevOps?

A. Add a Parent link to the user story of item
B. From Backlogs, open the context menu, select Add link, and then select itemA. Set Link type to Successor and add the ID of item
C. From itemA, open the Links tab, and then select Add link. Set Link type to References and add the ID of itemB.
D. From Backlogs, open he context menu, select Add link, and then select itemA. Set Link type to References and add the ID of itemB.
Show Answer
Correct Answer: B
Explanation:
A dependency where itemA depends on itemB is represented by making itemA the Successor of itemB (itemB is the predecessor). In the Azure DevOps web portal, you can add this link from the backlog context menu by selecting Add link, choosing itemA, setting the link type to Successor, and entering the ID of itemB. Parent/Child is for hierarchy, and References does not model dependency.

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