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'?
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
Q01What is the highest level of the Google Cloud resource hierarchy?EasyQ02You need to enable the Compute Engine API in a new project using the command line. Which command ...EasyQ03You are setting up a new GCP environment. You need to grant a group of developers access to view ...MediumQ04You want to receive an email notification when your GCP spending exceeds $1000 this month. What s...EasyQ05You need to analyze your GCP billing data using complex SQL queries to understand cost trends acr...Medium
Expert