0
0
GCPcloud~5 mins

Dead letter topics in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a dead letter topic in Google Cloud Pub/Sub?
A dead letter topic is a special Pub/Sub topic where messages that cannot be successfully processed after multiple attempts are sent. It helps to isolate and analyze problematic messages without losing them.
Click to reveal answer
beginner
Why use a dead letter topic in message processing?
Using a dead letter topic prevents message loss by capturing failed messages separately. This allows developers to investigate and fix issues without blocking the main message flow.
Click to reveal answer
intermediate
How do you configure a dead letter topic in Google Cloud Pub/Sub?
You configure a dead letter topic by setting it on a subscription with a maximum delivery attempt count. After the max attempts, failed messages are sent to the dead letter topic automatically.
Click to reveal answer
beginner
What happens to messages sent to a dead letter topic?
Messages sent to a dead letter topic remain there until manually reviewed or reprocessed. They are not lost and can be used to debug or retry processing later.
Click to reveal answer
intermediate
Can a dead letter topic have its own subscriptions?
Yes, a dead letter topic is a normal Pub/Sub topic and can have subscriptions. This allows teams to process or analyze dead letter messages separately.
Click to reveal answer
What triggers a message to be sent to a dead letter topic in Pub/Sub?
AMessage is published for the first time
BMessage is successfully processed
CMessage fails processing after max delivery attempts
DMessage is deleted manually
Which of the following is true about dead letter topics?
AThey store failed messages for later analysis
BThey automatically delete messages after 1 hour
CThey prevent messages from being published
DThey replace the main topic
How do you specify the maximum delivery attempts before sending to a dead letter topic?
ASet maxDeliveryAttempts in the IAM policy
BSet maxDeliveryAttempts in the topic configuration
CSet maxDeliveryAttempts in the publisher settings
DSet maxDeliveryAttempts in the subscription configuration
Can you reprocess messages from a dead letter topic?
ANo, messages are deleted immediately
BYes, by subscribing and republishing them
CNo, they are archived permanently
DYes, but only with special permissions
What is the main benefit of using dead letter topics?
APrevents message loss and aids debugging
BImproves message delivery speed
CAutomatically fixes message errors
DEncrypts messages for security
Explain what a dead letter topic is and why it is useful in Google Cloud Pub/Sub.
Think about what happens when message processing fails repeatedly.
You got /3 concepts.
    Describe how to configure a dead letter topic for a Pub/Sub subscription and what happens when messages reach the max delivery attempts.
    Focus on subscription settings and message lifecycle.
    You got /3 concepts.