nerdexam
Google

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…

Submitted by tyler.j· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

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 projects on a daily basis. What should you do?

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)
  • A
    83% (35)
  • B
    10% (4)
  • C
    5% (2)
  • D
    2% (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

#gcloud config#automation#multi-project#compute instances

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice