
Answer-first summary for fast verification
Answer: Use the gcloud CLI command `gcloud services enable compute.googleapis.com` to enable Compute Engine, and also use `gcloud services enable storage-api.googleapis.com` to activate the Cloud Storage APIs.
Option A is correct because it specifically enables the Compute Engine service and the Cloud Storage APIs, which are necessary for creating instances, setting firewalls, and storing data in Cloud Storage. This approach aligns with Google's recommended practices of only enabling the necessary resources for a specific task, thereby avoiding unnecessary costs. Options B, C, and D are incorrect as they either do not enable the necessary resources or suggest enabling all APIs/resources, which could lead to increased costs and unnecessary resource usage.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You've been given a blank Google Cloud Project with an attached Billing account to deploy an app using Compute Engine, Firewall, and Cloud Storage. What's the first step you should take in this project?
A
Use the gcloud CLI command gcloud services enable compute.googleapis.com to enable Compute Engine, and also use gcloud services enable storage-api.googleapis.com to activate the Cloud Storage APIs.
B
Launch the Google Cloud console and execute gcloud init --project in a Cloud Shell session.
C
Access the Google Cloud console and activate all available Google Cloud APIs via the API dashboard.
D
Utilize the gcloud CLI command gcloud services enable cloudresourcemanager.googleapis.com to activate all resources.
No comments yet.