
Answer-first summary for fast verification
Answer: Use the Pub/Sub subscription retain-acked-messages flag., Use Pub/Sub Seek with a timestamp.
To reprocess the previous two days of Pub/Sub messages, you can use the combination of retaining acknowledged messages and seeking to a timestamp. Option D, 'Use the Pub/Sub subscription retain-acked-messages flag.', ensures that Pub/Sub retains acknowledged messages, which is necessary for reprocessing. Option E, 'Use Pub/Sub Seek with a timestamp.', allows you to set the subscription's message cursor to a specific point in time, making it possible to reprocess the messages from two days ago. Therefore, the correct answers are D and E.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a data engineer, you oversee managing a streaming data pipeline that collects and processes data from Google Cloud Pub/Sub in a production environment. Recently, there has been a need to enhance this pipeline with updated business logic. In addition to updating the business logic, it is crucial to ensure that the reconfigured pipeline can reprocess the Pub/Sub messages that were delivered over the past two days. What actions should you take to achieve this objective? (Choose two.)
A
Use the Pub/Sub subscription clear-retry-policy flag
B
Use Pub/Sub Snapshot capture two days before the deployment.
C
Create a new Pub/Sub subscription two days before the deployment.
D
Use the Pub/Sub subscription retain-acked-messages flag.
E
Use Pub/Sub Seek with a timestamp.
No comments yet.