Google Associate Cloud Engineer Question 133
Single answerGoogle Cloud PlatformYou are tasked with deploying an application that needs to receive and process Google Cloud events, such as changes to Google Cloud Storage buckets and new messages in Pub/Sub topics. Which Google Cloud service is best suited for this requirement?
- A
Cloud Functions
- B
Compute Engine
- C
Cloud Run
- D
Cloud SQL
Show answer and explanation
Correct answer: A
Explanation
Cloud Functions is designed to handle event-driven architectures, making it ideal for applications that need to respond to changes and events in Google Cloud services. It abstracts infrastructure management while providing seamless integration with various Google Cloud event sources, such as Cloud Storage and Pub/Sub.
- A. Correct.
Cloud Functions is a serverless execution environment that allows you to respond to cloud events. It is ideal for triggering functions in response to events from various Google Cloud services.
- B. Incorrect.
Compute Engine provides virtual machines that can be used for a wide range of applications, but it requires management of infrastructure and is not inherently event-driven.
- C. Incorrect.
Cloud Run allows you to run stateless containers which can be event-triggered, but Cloud Functions offers more straightforward integration for event-driven architectures.
- D. Incorrect.
Cloud SQL is a fully managed relational database service and is not designed to directly handle cloud events.