Google Associate Cloud Engineer Question 131
Select 2Google Cloud PlatformYou are tasked with setting up an application to receive and process Google Cloud events in real-time. Which combination of services should you use to ensure your application can efficiently handle these events and scale automatically?
- A
A. Cloud Pub/Sub and Cloud Run
- B
B. Cloud Functions and Cloud Storage
- C
C. App Engine and Cloud Monitoring
- D
D. Compute Engine and Cloud SQL
- E
E. Cloud Pub/Sub and Cloud Functions
Show answer and explanation
Correct answers: A, E
Explanation
To efficiently handle Google Cloud events and scale automatically, a combination of Cloud Pub/Sub and either Cloud Run or Cloud Functions is recommended. Cloud Pub/Sub serves as a messaging service for real-time event ingestion, while Cloud Run and Cloud Functions can automatically scale to handle these events without requiring server management.
- A. Correct.
Cloud Pub/Sub and Cloud Run can be used together to receive and process events asynchronously. Cloud Run can scale automatically based on the number of incoming requests or events.
- B. Incorrect.
Cloud Functions and Cloud Storage are not directly related to receiving and processing events in real-time. Cloud Functions could be used, but Cloud Storage is not suitable for event-driven architecture.
- C. Incorrect.
App Engine and Cloud Monitoring are not directly used for event-driven architectures. App Engine can host applications, but it is not specifically designed for event handling.
- D. Incorrect.
Compute Engine and Cloud SQL are infrastructure and database services that do not inherently support event-driven architectures. They would require additional components to handle event ingestion and processing.
- E. Correct.
Cloud Pub/Sub is a messaging service that allows for real-time event ingestion, and Cloud Functions can be triggered by messages from Cloud Pub/Sub, providing a serverless way to process these events.