Medium1 markMultiple Choice
Domain 4.1: Managing Compute Engine resourcesgcloudCompute EngineInventoryTroubleshooting

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?

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