You received a new Google Cloud project with billing. You must create VMs, configure firewalls, and use Cloud Storage following Google-recommended practices. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Run gcloud services enable compute.googleapis.com and gcloud services enable storage-api.googleapis.com..
Why this is the answer
The correct answer is to enable the Compute Engine and Cloud Storage APIs. Google Cloud projects require specific APIs to be enabled before their services can be used. For creating VMs, the Compute Engine API (compute.googleapis.com) is necessary. For using Cloud Storage, the Cloud Storage API (storage-api.googleapis.com) is required. The gcloud services enable command is the standard way to activate these APIs via the command line. Enabling cloudresourcemanager.googleapis.com alone does not enable Compute Engine or Cloud Storage. While the Cloud Resource Manager API is fundamental for managing projects, it doesn't activate service-specific APIs. Opening the Cloud Console API dashboard and enabling all Google Cloud APIs is inefficient and unnecessary, as it activates many services that may not be used, potentially increasing the attack surface. gcloud init --project initializes the gcloud environment for a specific project but does not enable any APIs.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed