Google Professional Cloud Developer Question 57
Select 3Google Cloud PlatformYou are designing a distributed e-commerce application on Google Cloud where different components, such as order processing, inventory updates, and payment processing, need to communicate in a loosely coupled and asynchronous manner. Which Google Cloud technologies would you use to ensure reliable message delivery and event-driven architecture?
- A
Cloud Pub/Sub for message distribution and delivery
- B
Eventarc for handling event routing and filtering
- C
Cloud Spanner for storing and delivering messages asynchronously
- D
Cloud Functions to process events triggered by Pub/Sub or Eventarc
- E
BigQuery to act as a message broker for asynchronous communication
Show answer and explanation
Correct answers: A, B, D
Explanation
To build a loosely coupled asynchronous application, you can use Cloud Pub/Sub for reliable message distribution, Eventarc for event routing and filtering, and Cloud Functions to process the events. These services together enable an event-driven architecture where components are decoupled and can scale independently. Cloud Spanner and BigQuery, while powerful tools, are not designed for asynchronous messaging or event-driven architectures.
- A. Correct.
Cloud Pub/Sub is a fully-managed messaging service that provides reliable message distribution and delivery, making it a suitable choice for loosely coupled, asynchronous communication.
- B. Correct.
Eventarc allows event routing and filtering for event-driven architectures, making it ideal for connecting components that respond to specific events.
- C. Incorrect.
Cloud Spanner is a globally distributed database and is not designed for message delivery or asynchronous communication. It is used for storing structured data, not for event-driven messaging.
- D. Correct.
Cloud Functions is a serverless compute service that can process events triggered by Pub/Sub or Eventarc, making it a good fit for handling application logic in an event-driven architecture.
- E. Incorrect.
BigQuery is a data warehouse optimized for analytics and querying large datasets. It is not a messaging system and cannot function as a broker for asynchronous communication.