What is the main purpose of a dead letter topic in Google Cloud Pub/Sub?
Think about what happens to messages that cannot be processed properly.
Dead letter topics hold messages that could not be delivered or processed after retries, allowing developers to inspect and handle them separately.
Which configuration snippet correctly sets a dead letter topic for a Pub/Sub subscription using gcloud CLI?
Remember to specify both the dead letter topic and max delivery attempts.
Option A correctly sets the dead letter topic and the maximum delivery attempts, which are required for dead letter handling.
You want to design a Pub/Sub system that processes messages reliably and handles failures gracefully. Which architecture best uses dead letter topics?
Consider how to separate failed messages for special handling.
Option B uses dead letter topics to isolate failed messages, allowing for retries and separate failure handling, improving reliability.
Which IAM role must a Pub/Sub subscription have on the dead letter topic to successfully publish failed messages?
Think about what action the subscription performs on the dead letter topic.
The Pub/Sub service account must have the roles/pubsub.publisher role on the dead letter topic to publish failed messages there.
Consider a Pub/Sub subscription with a dead letter topic configured and max delivery attempts set to 3. What happens when a message fails processing 3 times?
Recall how max delivery attempts relate to dead letter topic delivery.
After the configured max delivery attempts (3), the message is moved to the dead letter topic and no longer retried on the original subscription.