Easy1 markMultiple Choice

GCP ACE · Question 19 · Domain 3.1: Deploying and implementing Compute Engine resources

Which gcloud command is used to create a new Compute Engine virtual machine instance named 'web-server-1'?

Answer options:

A.

gcloud compute vms create web-server-1

B.

gcloud compute instances create web-server-1

C.

gcloud instances create web-server-1

D.

gcloud create compute instance web-server-1

How to approach this question

Remember the gcloud command structure: gcloud [service] [resource] [action].

Full Answer

B.gcloud compute instances create web-server-1✓ Correct
gcloud compute instances create web-server-1
The standard structure for gcloud commands is `gcloud <group> <component> <action>`. For Compute Engine VMs, the group is `compute`, the component is `instances`, and the action is `create`.

Common mistakes

Using 'vms' instead of 'instances'.

Practice the full GCP Associate Cloud Engineer Practice Exam 1

50 questions · hints · full answers · grading

More questions from this exam