Google Associate Cloud Engineer Question 22
Single answerGoogle Cloud PlatformYou have just created a new project in Google Cloud Platform and need to enable the Google Cloud Storage API to start storing data. Which steps should you follow to enable the API for your project?
- A
Navigate to the Google Cloud Console, select your project, go to the 'APIs & Services' section, and enable the Google Cloud Storage API.
- B
Use the gcloud CLI with the command 'gcloud services enable storage.googleapis.com' while specifying your project ID.
- C
Access the Google Cloud Shell, and manually download and install the Cloud Storage API package.
- D
Open the Google Cloud Marketplace, search for the Google Cloud Storage API, and click the 'Enable' button.
Show answer and explanation
Correct answer: A
Explanation
To enable an API in Google Cloud Platform, the most user-friendly method is through the Google Cloud Console. By navigating to the 'APIs & Services' section, you can easily enable any API necessary for your project. This method is particularly suitable for those who are new to Google Cloud and prefer using the GUI over command-line tools.
- A. Correct.
This is the correct method. You can enable APIs directly from the Google Cloud Console through the 'APIs & Services' section.
- B. Incorrect.
While this option involves enabling APIs with the gcloud CLI, it is not the most straightforward method for users unfamiliar with the CLI.
- C. Incorrect.
This option is incorrect. Google Cloud APIs do not require manual downloading or installation of packages via Cloud Shell.
- D. Incorrect.
The Google Cloud Marketplace is for deploying solutions and applications, not enabling APIs directly.