ASSOCIATE-CLOUD-ENGINEER · Question #109
You have a Google Cloud Platform account with access to both production and development projects. You need to create an automated process to list all compute instances in development and production…
The correct answer is A. Create two configurations using gcloud config. Write a script that sets configurations as active. gcloud compute instances list - list Google Compute Engine instances gcloud compute instances list displays all Google Compute Engine instances in a project. By default, instances from all zones are listed. The results can be narrowed down using a filter: -- filter="zone:( ZONE…
Question
Options
- ACreate two configurations using gcloud config. Write a script that sets configurations as active,
- BCreate two configurations using gsutil config. Write a script that sets configurations as active,
- CGo to Cloud Shell and export this information to Cloud Storage on a daily basis.
- DGo to GCP Console and export this information to Cloud SQL on a daily basis.
How the community answered
(42 responses)- A83% (35)
- B10% (4)
- C5% (2)
- D2% (1)
Explanation
gcloud compute instances list - list Google Compute Engine instances gcloud compute instances list displays all Google Compute Engine instances in a project. By default, instances from all zones are listed. The results can be narrowed down using a filter: -- filter="zone:( ZONE … )". https://cloud.google.com/sdk/gcloud/reference/compute/instances/list
Topics
Community Discussion
No community discussion yet for this question.