
Answer-first summary for fast verification
Answer: Use the gcloud services enable compute.googleapis.com command to enable Compute Engine and the gcloud services enable storage-api.googleapis.com command to enable the Cloud Storage APIs.
The correct answer is B. Before you can use any Google Cloud services like Compute Engine or Cloud Storage, you need to enable the corresponding APIs. This can be done using the Google Cloud Console or the gcloud command-line interface (CLI). In this case, you specifically need to enable the Compute Engine and Cloud Storage APIs using the commands 'gcloud services enable compute.googleapis.com' and 'gcloud services enable storage-api.googleapis.com', respectively.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have been assigned a new Google Cloud project that includes an associated billing account, where you will be carrying out your tasks. Your objectives are to create virtual machine instances, configure firewall rules, and store data using Cloud Storage. To ensure you are adhering to Google-recommended practices, what steps should you take?
A
Use the gcloud CLI services enable cloudresourcemanager.googleapis.com command to enable all resources.
B
Use the gcloud services enable compute.googleapis.com command to enable Compute Engine and the gcloud services enable storage-api.googleapis.com command to enable the Cloud Storage APIs.
C
Open the Google Cloud console and enable all Google Cloud APIs from the API dashboard.
D
Open the Google Cloud console and run gcloud init --project in a Cloud Shell.
No comments yet.