Medium1 markMultiple Choice
GCP ACE · Question 33 · Domain 4.1: Managing Compute Engine resources
You are troubleshooting an issue and need to see a list of all Compute Engine instances currently running in your project, along with their internal and external IP addresses.
Which gcloud command provides this inventory?
You are troubleshooting an issue and need to see a list of all Compute Engine instances currently running in your project, along with their internal and external IP addresses.
Which gcloud command provides this inventory?
Answer options:
A.
gcloud compute instances describe
B.
gcloud compute instances list
C.
gcloud compute inventory show
D.
gcloud instances get-all
How to approach this question
Recall the standard gcloud verb for viewing multiple resources of a specific type.
Full Answer
B.gcloud compute instances list✓ Correct
gcloud compute instances list
The `gcloud compute instances list` command is the standard way to view your current VM inventory. By default, it returns a tabular output showing the instance name, zone, machine type, internal IP, external IP, and current status (e.g., RUNNING, TERMINATED) for all instances in the active project.
Common mistakes
Choosing `describe`, which is used to get deep JSON/YAML details about one specific resource, not a summary of all resources.
Practice the full GCP Associate Cloud Engineer Practice Exam 6
50 questions · hints · full answers · grading
More questions from this exam
Q01What is the primary purpose of a Google Cloud project?EasyQ02Your development team needs to manage Compute Engine instances in a specific project. They need t...MediumQ03You are automating the setup of a new Google Cloud project using a bash script. You need to enabl...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...MediumQ05Your finance team wants to perform granular analysis of your Google Cloud spending using SQL. The...Hard
Expert