QuestionQ80

VerifiedMonitoring and Alerting

To identify the top users consuming compute resources, a data engineering team needs to monitor usage in its Databricks workspace to improve resource utilization and cost control. The team chose to use Databricks system tables, available under the System catalog in Unity Catalog, to obtain detailed visibility into workspace activity.

Which SQL query should the team run from the System catalog to accomplish this?

Explanation

system.billing.usage stores billable usage, where usage_quantity is the number of consumed units and identity_metadata.run_as identifies the user or service principal whose credentials ran the workload. Summing usage_quantity by run_as, sorting descending, and returning the first 10 identifies the largest compute consumers. The created_by field applies only to specific products, while counting rows does not total DBUs.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!