Topic 1 Question 228
You have a streaming pipeline that ingests data from Pub/Sub in production. You need to update this streaming pipeline with improved business logic. You need to ensure that the updated pipeline reprocesses the previous two days of delivered Pub/Sub messages. What should you do?
Use the Pub/Sub subscription clear-retry-policy flag
Use Pub/Sub Snapshot capture two days before the deployment.
Create a new Pub/Sub subscription two days before the deployment.
Use the Pub/Sub subscription retain-acked-messages flag.
Use Pub/Sub Seek with a timestamp.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B
BE--> correct Pub/Sub Snapshot: Captures a point-in-time snapshot of the messages in the subscription, ensuring that the previous two days of messages are available for reprocessing even after they've been acknowledged. Retain-Acked-Messages Flag: While this flag prevents acknowledged messages from being deleted, it's not sufficient on its own because it only retains messages going forward from when it's enabled.
👍 2e70ea9e2023/12/30 - 正解だと思う選択肢: D
DE Set the retain-acked-messages flag to true for the subscription. This instructs Pub/Sub to store acknowledged messages for a specified retention period.
E Use Pub/Sub Seek with a timestamp. After deploying the updated pipeline, use the Seek feature to replay messages. Specify a timestamp that's two days before the current time. This rewinds the subscription's message cursor, making it redeliver messages from that point onward.
👍 2task_72024/01/10 - 正解だと思う選択肢: B
- Pub/Sub Snapshots allow you to capture the state of a subscription's unacknowledged messages at a particular point in time.
By creating a snapshot two days before deploying the updated pipeline, you can later use this snapshot to replay the messages from that point.
Option E:- Pub/Sub Seek allows us to alter the acknowledgment state of messages in bulk.
- So we can rewind a subscription to a point in time or a snapshot.
- Using Seek with a timestamp corresponding to two days ago would allow the updated pipeline to reprocess messages from that time.
👍 1raaad2024/01/04
シャッフルモード