CertKeen

Azure Solutions Architect Expert (AZ-305) · Free practice question 10 of 12

Resource Graph for cross-subscription inventory

Jesmond Holdings has more than 200 subscriptions. The governance team needs to list, within seconds, every virtual machine that has no CostCenter tag, across all subscriptions, and export the list on demand. What should you recommend?

  1. A.Query the activity log of each subscription in Log Analytics
  2. B.Run an Azure Resource Graph query across the subscriptions
  3. C.Run a PowerShell script that calls Get-AzVM in each subscription in turn
  4. D.Open Cost Management cost analysis grouped by tag
Show answer and explanation

Correct answer: B. Run an Azure Resource Graph query across the subscriptions

Why: Azure Resource Graph queries resource properties, including tags, across many subscriptions at once with KQL and returns results quickly. Activity logs record operations rather than the current state of resources. Cost analysis shows spending rather than a resource inventory, and looping through subscriptions with PowerShell is slow and needs maintenance.

More free Azure Solutions Architect Expert (AZ-305) questions