Google Cloud Cost Management monitors compute engine telemetry to identify idle VMs that are candidates for downsizing or termination. Write a SQL query to find all compute instances with `status = 'RUNNING'` that have an average `cpu_utilization_pct < 5.0` AND `memory_utilization_pct < 10.0`. Output the `instance_id`, `instance_name`, `zone`, `cpu_utilization_pct`, and `memory_utilization_pct`. Order the results by `cpu_utilization_pct` in ascending order (most idle first), resolving ties by `instance_id` ascending.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.