
Answer-first summary for fast verification
Answer: Use exponential backoff as the subscription retry policy, and configure dead lettering to a different topic with maximum delivery attempts set to 10.
The correct answer is D. Using exponential backoff as the subscription retry policy ensures that failed messages are retried with increasing time intervals between retries, preventing overload on the consumer app. Configuring dead lettering to a different topic with maximum delivery attempts set to 10 ensures that messages not consumed after 10 retries are stored separately for analysis or processing, addressing temporary downtime and preventing message loss. - **Option A** is incorrect because increasing the acknowledgement deadline does not facilitate gradual retries or store failed messages after maximum retries. - **Option B** is incorrect because immediate redelivery can overload the consumer app during temporary downtime, despite correctly configuring dead lettering. - **Option C** is incorrect because dead lettering to the same source topic may cause infinite retry loops and does not separate processed from failed messages.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are tasked with setting up a messaging system using Google Pub/Sub for processing clickstream data. The system includes an event-driven consumer app that uses a push subscription. Requirements include reliability during the consumer app's temporary downtime, storage of unprocessed messages, gradual retry of failed messages, and storage in a topic after a maximum of 10 retries. How should the Pub/Sub subscription be configured to meet these requirements?
A
Increase the acknowledgement deadline to 10 minutes.
B
Use immediate redelivery as the subscription retry policy, and configure dead lettering to a different topic with maximum delivery attempts set to 10.
C
Use exponential backoff as the subscription retry policy, and configure dead lettering to the same source topic with maximum delivery attempts set to 10.
D
Use exponential backoff as the subscription retry policy, and configure dead lettering to a different topic with maximum delivery attempts set to 10.
No comments yet.