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?
- A.Query the activity log of each subscription in Log Analytics
- B.Run an Azure Resource Graph query across the subscriptions
- C.Run a PowerShell script that calls Get-AzVM in each subscription in turn
- 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
- Pass-through authentication for on-premises policy
- Key Vault key rotation policy
- Queue Storage for large simple backlogs
- API Management multi-region deployment
- Dedicated Host for physical isolation
- Private Link service for SaaS providers
- Event Hubs Kafka endpoint
- Template specs for versioned templates
- Cosmos DB for Apache Cassandra
- Azure Data Explorer for telemetry analytics
- Performance-based sizing in Azure Migrate