Google Associate Cloud Engineer Question 23
Single answerGoogle Cloud PlatformYou are working on a project in Google Cloud Platform and need to use Cloud Storage for storing application data. Before you can start using Cloud Storage in your project, what steps must you take to ensure the service can be utilized?
- A
Enable the Cloud Storage API within the Google Cloud Console for your project.
- B
Create a new IAM role with storage permissions and assign it to your user account.
- C
Activate the Cloud Storage feature using the gcloud command-line tool.
- D
Install the Cloud Storage SDK on your local machine.
Show answer and explanation
Correct answer: A
Explanation
Before using any Google Cloud service, such as Cloud Storage, you must enable its API in your project. This allows your project to access the features and functions of the service. Enabling the API is a critical step and is done via the Google Cloud Console.
- A. Correct.
Enabling the necessary API for a Google Cloud service is required before you can use that service. This is done in the Google Cloud Console.
- B. Incorrect.
While creating IAM roles is important for managing permissions, simply creating a role does not enable the API itself.
- C. Incorrect.
There is no need to 'activate' a service using gcloud; the correct step is to enable the API in the console.
- D. Incorrect.
Installing the SDK is unrelated to enabling the API within a Google Cloud project. The SDK is for local development.