Google Professional Cloud Developer Question 429
Select 3Google Cloud PlatformYou are developing a serverless application that uses multiple Google Cloud services, including Cloud Pub/Sub, Cloud Functions, and Cloud Storage. You discover that the application is not working as expected because some required APIs are not enabled. What steps should you take to ensure that all necessary Google Cloud services are enabled?
- A
Use the Google Cloud Console to manually enable the required APIs for each service.
- B
Run the
gcloud services enablecommand for each required API. - C
Ensure that the APIs are automatically enabled by deploying the application to App Engine.
- D
Check the documentation for each service to identify and enable the required APIs.
- E
Rely on IAM roles to automatically enable the necessary APIs when accessed.
Show answer and explanation
Correct answers: A, B, D
Explanation
To ensure that all necessary Google Cloud services are enabled, you must explicitly enable the required APIs either through the Google Cloud Console or by using the gcloud services enable command. Additionally, referring to the documentation for each service ensures you identify all required APIs. APIs are not automatically enabled by deploying to App Engine or granted by IAM roles.
- A. Correct.
This is correct. You can use the Google Cloud Console to manually enable APIs by navigating to the API & Services section.
- B. Correct.
This is correct. The
gcloud services enablecommand allows you to programmatically enable APIs for your project. - C. Incorrect.
This is incorrect. APIs are not automatically enabled when deploying applications to App Engine or any other platform. You must explicitly enable them.
- D. Correct.
This is correct. Checking the official documentation for each service helps ensure that you identify all required APIs and enable them.
- E. Incorrect.
This is incorrect. IAM roles control access to resources but do not automatically enable APIs. The APIs must still be explicitly enabled.