You use Azure Pipelines to build and test code.
You need to analyze the agent pool usage.
What are two ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Review the historical graph for the agent pools.
B. Review the Pipeline duration report.
C. Query the TaskAgentPoolSizeSnapshot/TaskAgentPoolSizeSnapshots endpoint.
D. Query the PipelineRun/PipelineRuns endpoint.
Show Answer
Correct Answer: A, C
Explanation: Agent pool usage can be analyzed either through built-in visual reporting or via analytics data. Reviewing the historical graph for agent pools directly shows pool utilization over time. Querying the TaskAgentPoolSizeSnapshot/TaskAgentPoolSizeSnapshots analytics endpoint provides detailed, queryable data about agent pool size and usage. Pipeline duration reports and PipelineRuns focus on pipeline execution, not agent pool utilization.
Question 32
DRAG DROP
-
You have an Azure subscription that contains an Azure Traffic Manager profile named ATM1 and a web app named App1. ATM1 manages App1 traffic. ATM1 is configured to route callers to the endpoint that has the lowest latency.
You need to configure ATM1 to route all traffic from Asia to an endpoint in Australia.
Which three actions should you perform in sequence from the Azure portal? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Show Answer
Correct Answer: Delete all the existing endpoints.
Configure geographic routing.
Add new endpoints that have geographic region mapping.
Explanation: Traffic Manager must use Geographic routing to direct traffic by client location. Existing endpoints without region mapping prevent switching routing methods in the portal, so they must be removed first. After enabling Geographic routing, add endpoints and map the Asia region to the Australia endpoint.
Question 33
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 need to use an Azure Pipelines pipeline to test an app. The solution meet the following requirements:
• The pipeline must fail if any tests fail.
• The test results must be published to the pipeline.
• The test for every pipeline run must be triggered unless the pipeline is cancelled.
Solution: You include the following elements in the YAML definition of the pipeline.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: A
Explanation: Yes. Using a test task configured with failTaskOnFailedTests: true ensures the pipeline fails when any test fails. Using PublishTestResults@2 publishes the test results to the pipeline. Applying a condition such as not(canceled()) ensures tests run on every pipeline execution unless the pipeline is explicitly cancelled, which satisfies all stated requirements.
Question 34
SIMULATION
-
You need to write a KQL query that will count the number of inbound requests for each source IP address, for any connection made during the last three months of 2021.
On Azure Data Explorer by using the following link:
https://dataexplorer.azure.corn/clusters/help/databases/SecurityLogs
The requests are contained in a table named InboundBrowsing in the SecurityLogs connection.
The query must return two columns named NumberOfRequests and SourceIP.
Export the query result to C:\Samples.
Show Answer
Correct Answer: InboundBrowsing
| where todatetime(timestamp) between (datetime(2021-10-01) .. datetime(2021-12-31))
| summarize NumberOfRequests = count() by SourceIP = src_ip
| project NumberOfRequests, SourceIP
Explanation: Filters inbound requests to the last three months of 2021, counts requests per source IP, and returns the required two columns. Export the result via Azure Data Explorer UI to C:\Samples.
Question 35
You have a GitHub repository.
You need to ensure that all changes to code are validated by your company’s security department before the main branch is deployed.
Which two actions can you perform? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Require signed commits.
B. Create a branch protection rule for the feature branches.
C. Create a LICENSE file.
D. Create a branch protection rule for the main branch.
E. Create a CODEOWNERS file.
Show Answer
Correct Answer: D, E
Explanation: To ensure all code changes are validated by the security department before deployment, you must control who can approve and merge changes into the main branch. A branch protection rule on the main branch enforces requirements such as pull requests and approvals before merging. A CODEOWNERS file specifies that the security department must review and approve changes, and when combined with branch protection, their approval becomes mandatory. Other options do not enforce mandatory security review before deployment.
Question 36
You have a GitHub repository.
You need to create a tag named v3.0.5 and ensure that the tag is available in the remote repository.
Which two commands should you run? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. git push -force
B. git push origin v3.0.5
C. git tag v3.0.5
D. git commit -m ‘tag v3.0.5’
E. git add ‘tag v3.0.5’
Show Answer
Correct Answer: B, C
Explanation: First create the tag locally with `git tag v3.0.5`. Then push that specific tag to the remote repository using `git push origin v3.0.5`. Other options relate to commits, staging, or force pushing and are not required for creating and sharing a tag.
Question 37
You use GitHub Enterprise for source control repositories. The repositories store C# code.
You need to enable CodeQL scanning for the repositories.
What should you do?
A. Enable Dependabot security updates.
B. Enable Dependabot alerts.
C. Configure a required GitHub Actions workflow for all the repositories.
D. Push a GitHub Actions workflow to all the repositories.
Show Answer
Correct Answer: D
Explanation: CodeQL scanning on GitHub Enterprise is enabled by running the CodeQL analysis via GitHub Actions. This requires adding (pushing) a CodeQL GitHub Actions workflow file to each repository. Dependabot options relate to dependency management, not code analysis, and configuring a required workflow only enforces usage after the workflow exists. Therefore, the correct action is to push a GitHub Actions workflow to all repositories.
Question 38
You are developing an Azure Pipelines pipeline.
You need to configure a check in the pipeline that will query Azure Boards to ensure that there are no active work item issues before the pipeline deploys a build to production.
Which type of check should you implement?
A. post-deployment approvals
B. manual validations
C. pre-deployment gates
D. pre-deployment approvals
Show Answer
Correct Answer: C
Explanation: Querying Azure Boards automatically to validate conditions before a deployment requires an automated check that runs prior to deployment. Pre-deployment gates are designed for this purpose, allowing the pipeline to evaluate external systems such as Azure Boards and block deployment if conditions (for example, active work items) are not met. Approvals and manual validations require human interaction and do not perform automated queries.
Question 39
You have an Azure subscription that includes an app named App1.
You have an Azure DevOps project that contains two environments named Staging and Production.
You use Azure Pipelines to deploy App1.
You need to validate the performance of App1 in the Staging environment before it is deployed to Production. The solution must minimize administrative effort.
What should you do in the Azure DevOps project?
A. In the production branch policy, add a status check to query Azure Monitor Alerts for active alerts.
B. In the Production environment, add a check to query Azure Monitor Alerts for active alerts.
C. In the Production environment stage, add a post-deployment approval for the Azure Monitor Alerts group.
D. In the Staging environment add a check to query Azure Monitor Alerts for active alerts.
Show Answer
Correct Answer: B
Explanation: Environment checks in Azure DevOps are evaluated **before deployment to that environment**. To ensure App1 is validated in Staging before it can be deployed to Production, you must gate the **Production** environment with an Azure Monitor Alerts check. This blocks the Production deployment if there are active performance alerts (for example, from the Staging resources). Adding the check to Staging would only affect the Staging deployment itself and would not prevent promotion to Production. Therefore, option B is the correct and lowest-effort solution.
Question 40
You manage package feeds by using Azure Artifacts.
You plan to create a new package feed that will include the following views:
• @Local
• @Latest
• @Release
• @Prerelease
Which view should you create manually?
A. @Local
B. @Latest
C. @Release
D. @Prerelease
Show Answer
Correct Answer: B
Explanation: By default, a new Azure Artifacts feed already includes three views: @Local, @Prerelease, and @Release. The @Local view is the default and cannot be deleted, while @Prerelease and @Release are automatically created suggested views. The @Latest view is not created by default, so it is the only one that must be created manually.
$19
Get all 531 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.