GCP Associate Cloud Engineer Practice Question

Your company has dozens of Compute Engine virtual machines across multiple zones. For a maintenance report, you must quickly display only those VMs that

  1. reside in zone us-central1-b,
  2. have names that start with "web-", and
  3. are currently in the RUNNING state. Which gcloud command meets all of these requirements in a single invocation?
  • gcloud compute instances list --filter="name ('web-*') AND zone=us-central1-b AND status:RUNNING"

  • gcloud compute instances list --filter="labels.name=web-* AND zone~us-central1-b AND status!=TERMINATED"

  • gcloud compute instances list --filter="zone:us-central1-b AND name~'^web-' AND status=RUNNING"

  • gcloud compute instances list --zones us-central1-b --filter="name=web-* AND status=RUNNING"

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot