Google Professional Cloud Developer Question 427
Select 3Google Cloud PlatformYou are developing a serverless application on Google Cloud using Cloud Functions and Cloud Storage. The application needs to process files uploaded to a Cloud Storage bucket. However, during testing, the function fails to trigger when files are uploaded. Upon investigating, you realize the required services are not enabled. Which services must you enable to ensure the application works as expected?
- A
Cloud Functions API
- B
Cloud Storage API
- C
Cloud Pub/Sub API
- D
Cloud Monitoring API
- E
Identity and Access Management (IAM) API
Show answer and explanation
Correct answers: A, B, C
Explanation
To ensure the serverless application works as described, you need to enable the Cloud Functions API for deploying and managing functions, the Cloud Storage API for interacting with the storage bucket, and the Cloud Pub/Sub API to trigger the function upon file uploads. These services work together to handle the event-driven architecture described in the scenario.
- A. Correct.
Correct. The Cloud Functions API is required to deploy and manage Cloud Functions, which is essential for your serverless application.
- B. Correct.
Correct. The Cloud Storage API is needed to interact with Cloud Storage buckets, including file uploads and downloads.
- C. Correct.
Correct. Cloud Pub/Sub API is required because Cloud Storage uses Pub/Sub to notify Cloud Functions about events such as file uploads.
- D. Incorrect.
Incorrect. The Cloud Monitoring API is not directly required for the functionality described in the scenario. It is used for monitoring and tracking metrics, which is not relevant to triggering the function.
- E. Incorrect.
Incorrect. The Identity and Access Management (IAM) API is not required for enabling the described application functionality. It is used for managing permissions and roles, but the question focuses on enabling services.