PROFESSIONAL-CLOUD-ARCHITECT · Question #195
Case Study: 9 - Helicopter Racing League Company overview Helicopter Racing League (HRL) is a global sports league for competitive helicopter racing. Each year HRL holds the world championship and…
The correct answer is C. Use the gcloud recommender command to list the idle virtual machine instances. The gcloud recommender command surfaces GCP's built-in Recommender service findings, including idle VM instance recommendations, without manual inspection or scripting.
Question
Options
- ALog into each Compute Engine instance and collect disk, CPU, memory, and network usage
- BUse the gcloud compute instances list to list the virtual machine instances that have the idle: true
- CUse the gcloud recommender command to list the idle virtual machine instances.
- DFrom the Google Console, identify which Compute Engine instances in the managed instance
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- C94% (30)
Why each option
The gcloud recommender command surfaces GCP's built-in Recommender service findings, including idle VM instance recommendations, without manual inspection or scripting.
Logging into each Compute Engine instance individually to collect metrics is a manual, time-consuming approach that does not scale across a large fleet and is not a GCP best practice.
The `gcloud compute instances list` command does not have an `idle: true` filter flag; VM idleness is not a property exposed in the instances list output.
The `gcloud recommender recommendations list` command queries the GCP Recommender API, which uses machine learning to analyze VM utilization metrics and automatically identifies idle instances; this is the purpose-built, native GCP tool for this task and requires no custom scripting or manual console inspection.
Manually reviewing the Google Cloud Console for idle instances in a managed instance group is a non-programmatic approach that cannot be automated or audited, and does not leverage GCP's Recommender service.
Concept tested: GCP Recommender API for idle VM identification
Source: https://cloud.google.com/recommender/docs/recommenders/compute/idle-vm
Topics
Community Discussion
No community discussion yet for this question.