Analyzing Azure Pipelines Agent Pool Usage via the Historical Graph and TaskAgentPoolSizeSnapshot

Maintain pipelines
Answer Correct answer: A, C — Agent pool usage is analyzed via the pool historical graph and the TaskAgentPoolSizeSnapshot entity; pipeline runs and duration measure execution instead.

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.

  1. Review the historical graph for the agent pools. Correct Answer
  2. Review the Pipeline duration report.
  3. Query the TaskAgentPoolSizeSnapshot/TaskAgentPoolSizeSnapshots endpoint. Correct Answer
  4. Query the PipelineRun/PipelineRuns endpoint.

Community Votes

AC
100%

100% of anonymous learners picked answer AC. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Agent pool consumption can be analyzed either through the historical graph of the agent pools in the interface or by querying the TaskAgentPoolSizeSnapshot entity in Analytics, which is the table that records agent pool size and usage over time.

Agent pool usage needs to be analyzed for an Azure Pipelines organization, and two approaches are available. One is the built-in visual history the interface provides, and the other is querying the analytics data directly, so the answer must combine a UI path with a data path.

Querying the PipelineRun entity or reviewing the Pipeline duration report. Those address how many pipelines and runs executed and how long they took, which is a different measurement from how the agent pool capacity itself was consumed.

Community Discussion (4 comments)

UrbanRellik 👍 1 Selected: AC
https://learn.microsoft.com/en-us/azure/devops/report/analytics/entity-reference-pipelines?view=azure-devops#entity-sets-and-entity-types
MrAZ105 👍 2
AB makes more sense
p2006 👍 1 Selected: AC
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/pool-consumption-report?view=azure-devops
8fc2e85 👍 1
Correct. A & C. Link to the API for C: https://learn.microsoft.com/en-us/azure/devops/report/analytics/entity-reference-pipelines?view=azure-devops#entity-sets-and-entity-types

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Agent pool usage is a distinct measurement from pipeline execution, and Azure DevOps supports two complementary ways to examine it. The first is the historical graph for the agent pools, which visualizes how the pool has been consumed over time without any query writing. The second is querying the TaskAgentPoolSizeSnapshot entity, which is the Analytics entity that records agent pool size and usage, so it supports deeper analysis and filtering beyond the built-in graph. Together they cover both the out-of-the-box reporting path and the data path. The vote was unanimous at 100 for A and C. p2006 linked the pool consumption report documentation, and UrbanRellik plus 8fc2e85 both linked the Analytics entity reference page identifying the TaskAgentPoolSizeSnapshot entity set, which is exactly what option C names.

Why the Other Options Are Wrong

Querying the PipelineRun endpoint (D) or reviewing the Pipeline duration report (B) both measure pipeline activity rather than pool consumption. The Pipeline duration report answers how long pipelines and their stages took to run, and the PipelineRun entity records the individual pipeline runs with their outcomes and timing. Neither captures how many agents were available or how the pool was consumed, which is the specific subject of the question. These are useful reports for a different question, namely where pipeline time is being spent, but they cannot show pool usage.

Community Comment Notes

The community was unanimous at 100 for A and C, and the three substance comments converge on the same two sources. UrbanRellik and 8fc2e85 both cited the Analytics entity reference page and pointed out that TaskAgentPoolSizeSnapshot is the entity set backing the pool size and usage data, which is the documentary basis for option C. p2006 cited the agent pool consumption report page, which is what backs the historical graph in option A. The pairing is therefore not a guess but the two documented access paths to the same measurement.

Official Reference

Related Analysis

Practice All AZ-400 Questions

Access 100 questions with complete answers and detailed explanations.

View Full AZ-400 Practice Test →

← Back to AZ-400 Study Guide