Google Associate Cloud Engineer Question 24
Single answerGoogle Cloud PlatformYou are tasked with enabling the Cloud Storage API for a new project in Google Cloud Platform. What steps should you take to ensure the API is correctly enabled, allowing your team to start using Cloud Storage resources?
- A
Navigate to the Google Cloud Console, select the project, go to 'APIs & Services', click on 'Library', and enable the Cloud Storage API.
- B
Use the gcloud CLI tool with the command 'gcloud projects add-iam-policy-binding' to enable the API.
- C
Edit the project's configuration file to include 'storage.googleapis.com' under enabled APIs.
- D
Navigate to the billing section of the Google Cloud Console and link a billing account to enable the API.
Show answer and explanation
Correct answer: A
Explanation
To enable an API in Google Cloud Platform, you must navigate to the Google Cloud Console, select the project you are working with, and go to 'APIs & Services'. From there, you can find the API you want to enable in the 'Library' section and enable it. This process allows you to start utilizing the API's services within your project.
- A. Correct.
This option correctly describes the process of enabling an API through the Google Cloud Console, which involves selecting the project, going to 'APIs & Services', and enabling the desired API from the 'Library'.
- B. Incorrect.
This option describes a method for setting IAM policies, not for enabling APIs. It is incorrect for enabling an API.
- C. Incorrect.
There is no configuration file where APIs are enabled by listing their URLs. This is not a valid method on Google Cloud Platform.
- D. Incorrect.
While linking a billing account is important for using Google Cloud services, it is not the method for enabling APIs.