What is the benefit of using Cloud Pub/Sub in an application architecture?
- It enables asynchronous messaging between application components ✓
- It manages user authentication and authorization
- It hosts static websites globally
- It provides a relational database for structured data
Correct answer: It enables asynchronous messaging between application components
Option A is correct because Cloud Pub/Sub is a fully managed messaging service that decouples producers and consumers, enabling asynchronous communication between application components so that services can operate independently without tight coupling or synchronous wait times. Option B is incorrect because user authentication and authorization are handled by services like Identity Platform or Cloud IAM, not Pub/Sub. Option C is incorrect because static website hosting is provided by Cloud Storage with the static website feature or by Firebase Hosting. Option D is incorrect because relational database services such as Cloud SQL or Cloud Spanner provide structured data storage, not Pub/Sub.
Topic: · cloud pub/sub, asynchronous messaging, event-driven architecture, gcp