Easy1 markMultiple Choice
GCP ACE · Question 02 · Domain 1.1: Setting up cloud projects and accounts
You need to enable the Compute Engine API in a new project using the command line. Which command should you use?
You need to enable the Compute Engine API in a new project using the command line. Which command should you use?
Answer options:
A.
gcloud compute api enable
B.
gcloud services enable compute.googleapis.com
C.
gcloud api enable compute
D.
gcloud projects enable-api compute.googleapis.com
How to approach this question
Identify the correct gcloud command group for managing APIs, which is 'gcloud services'.
Full Answer
B.gcloud services enable compute.googleapis.com✓ Correct
gcloud services enable compute.googleapis.com
To enable an API via the Cloud SDK, you use the `gcloud services enable` command followed by the service name (e.g., compute.googleapis.com).
Common mistakes
Guessing the command structure without knowing the specific 'gcloud services' group.
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?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...MediumQ06You have just installed the Google Cloud SDK on your local machine. Which command should you run ...Easy
Expert