Recall & Review
beginner
What is Google Cloud Pub/Sub?
Google Cloud Pub/Sub is a messaging service that lets applications send and receive messages asynchronously. It works like a postal system where publishers send messages to topics, and subscribers receive those messages independently.
Click to reveal answer
beginner
What is Google Cloud Tasks used for?
Google Cloud Tasks is a service to manage the execution, dispatch, and delivery of large numbers of distributed tasks. It helps schedule and control when and how tasks run, like a to-do list manager for background work.
Click to reveal answer
intermediate
How does Pub/Sub handle message delivery?
Pub/Sub delivers messages to subscribers asynchronously and supports at-least-once delivery. Subscribers can pull or receive messages pushed to them, and messages are retried until acknowledged.
Click to reveal answer
intermediate
What is a key difference in use cases between Pub/Sub and Cloud Tasks?
Pub/Sub is best for event-driven, real-time messaging between services. Cloud Tasks is better for managing asynchronous, reliable execution of background work with control over timing and retries.
Click to reveal answer
advanced
Can Cloud Tasks guarantee exactly-once execution of tasks?
Cloud Tasks aims for at-least-once execution but provides features like task deduplication and idempotency to help achieve effectively once-only processing.
Click to reveal answer
Which service is best suited for real-time event streaming between microservices?
✗ Incorrect
Pub/Sub is designed for real-time messaging and event streaming between services.
Which service allows scheduling and controlling the timing of background work?
✗ Incorrect
Cloud Tasks manages execution timing and retries for background tasks.
How does Pub/Sub deliver messages to subscribers?
✗ Incorrect
Pub/Sub delivers messages asynchronously and retries until acknowledged, ensuring at-least-once delivery.
Which service is better for managing retries and failures of background jobs?
✗ Incorrect
Cloud Tasks provides built-in retry policies and failure handling for background jobs.
Which statement about Cloud Tasks is true?
✗ Incorrect
Cloud Tasks schedules and dispatches asynchronous tasks and allows control over retries.
Explain the main differences between Google Cloud Pub/Sub and Cloud Tasks.
Think about messaging vs task management roles.
You got /4 concepts.
Describe a scenario where you would choose Cloud Tasks over Pub/Sub.
Consider background job scheduling needs.
You got /4 concepts.