Google Cloud Associate Cloud Engineer — Question 227
You recently received a new Google Cloud project with an attached billing account where you will work. You need to create instances, set firewalls, and store data in Cloud Storage. You want to follow Google-recommended practices. What should you do?
Answer options
- 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 --projectin a Cloud Shell.
Correct answer: B
Explanation
The correct answer is B because it specifies the precise commands needed to enable the Compute Engine and Cloud Storage APIs, which are essential for the tasks at hand. Option A is incorrect as it attempts to enable all resources indiscriminately, which is not recommended. Option C lacks specificity by suggesting to enable all APIs without focusing on the necessary ones. Option D does not address the enabling of necessary services for instance creation and data storage.