Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 228 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 228
Topic #: 1
[All Professional Data Engineer Questions]

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? (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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GCP001
Highly Voted 10 months, 1 week ago
Selected Answer: B
B and E, already tested at cloud console.
upvoted 12 times
...
tibuenoc
Highly Voted 10 months, 1 week ago
Selected Answer: D
DE Another way to replay messages that have been acknowledged is to seek to a timestamp. To seek to a timestamp, you must first configure the subscription to retain acknowledged messages using retain-acked-messages. If retain-acked-messages is set, Pub/Sub retains acknowledged messages for 7 days. You only need to do this step if you intend to seek to a timestamp, not to a snapshot. https://cloud.google.com/pubsub/docs/replay-message
upvoted 11 times
nadavw
3 months ago
this is correct as there are 2 options (timestamp and snapshot) and foreach there are 2 stages. Snapshot - create ('B') and seek Timestamp - configure 'retain' ('D') and seek ('E') as shown 'B' is missing the 'seek' operation
upvoted 1 times
...
joao_01
7 months, 1 week ago
Its BE. By the way, you can seek to a snapshot yes: "Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request" Link:https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/seek
upvoted 2 times
...
...
SamuelTsch
Most Recent 4 weeks ago
Selected Answer: B
After reading https://cloud.google.com/pubsub/docs/replay-overview#snapshot_overview carefully, B and E are correct.
upvoted 1 times
SamuelTsch
4 weeks ago
change my mind. D and E should be correct.
upvoted 1 times
...
...
Preetmehta1234
2 months ago
Selected Answer: D
First, read this document: https://cloud.google.com/pubsub/docs/replay-overview. Key Points: Seek to a Snapshot: Reprocesses only unacknowledged messages. Seek to a Timestamp: Reprocesses all messages (acknowledged and unacknowledged) after that time. Since the question asks for delivering all messages, option E is correct, as it includes both acknowledged and unacknowledged messages. Regarding Option D: Configuring a subscription with the retain_acked_messages property allows replaying previously acknowledged messages retained for up to 31 days. This satisfies the requirement to deliver all messages and retains them longer than the mentioned 2 days.
upvoted 1 times
...
MithunDesai
3 months, 1 week ago
Selected Answer: B
B&D - based on Vertex AI feedback
upvoted 1 times
...
Anudeep58
5 months, 3 weeks ago
Selected Answer: E
BE B. Use Pub/Sub Snapshot capture two days before the deployment. Pub/Sub Snapshot: Creating a snapshot captures the state of the subscription at a specific point in time. You can then seek to this snapshot to replay messages from that point onwards. By capturing a snapshot two days before the deployment, you can ensure that your pipeline reprocesses messages from the past two days. E. Use Pub/Sub Seek with a timestamp. Pub/Sub Seek: This feature allows you to reset the subscription to a specific timestamp. Messages published to the topic after this timestamp are re-delivered. By seeking to the timestamp from two days ago, you can instruct Pub/Sub to start re-delivering messages from that point in time
upvoted 2 times
...
virat_kohli
6 months, 1 week ago
Selected Answer: D
D. Use the Pub/Sub subscription retain-acked-messages flag. E. Use Pub/Sub Seek with a timestamp.
upvoted 2 times
...
Selected Answer: D
E for sure, you need to seek from a timestamp. To accomplish to that you need to "Set the retain-acked-messages flag to true for the subscription." From google documentation: "Note: To seek to a previous time point, your subscription must be configured to retain acknowledged messages. You can change this setting by clicking Edit on the subscription details page, and checking the box for Retain acknowledged messages." https://cloud.google.com/pubsub/docs/replay-message
upvoted 3 times
...
Tryolabs
9 months ago
Selected Answer: E
D and E, https://cloud.google.com/pubsub/docs/replay-message
upvoted 3 times
...
ML6
9 months, 2 weeks ago
Selected Answer: E
B and E: The seek feature extends subscriber capabilities by allowing you to alter the acknowledgement state of messages in bulk. For example, you can replay previously acknowledged messages or purge messages in bulk. In addition, you can copy the acknowledgement state of one subscription to another by using seek in combination with a snapshot. Source: https://cloud.google.com/pubsub/docs/replay-overview
upvoted 3 times
...
Sofiia98
10 months, 2 weeks ago
Selected Answer: B
BE https://cloud.google.com/pubsub/docs/replay-overview
upvoted 3 times
tibuenoc
10 months, 1 week ago
But There is a problem snapshot you shoudl seek by subscriptions not by timestamp
upvoted 1 times
...
...
Matt_108
10 months, 2 weeks ago
Selected Answer: D
Option D and E
upvoted 3 times
...
task_7
10 months, 3 weeks ago
Selected Answer: 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.
upvoted 6 times
...
raaad
10 months, 3 weeks ago
Selected Answer: 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.
upvoted 6 times
datapassionate
10 months, 2 weeks ago
Creating a snapshot of the Pub/Sub subscription two days before the deployment captures the state of unacknowledged messages at that particular point in time, which would include messages from before those two days. If our objective is to reprocess the data from the last two days specifically, then capturing a snapshot two days prior wouldn't directly address this need.
upvoted 3 times
...
datapassionate
10 months, 2 weeks ago
This case is described here. https://cloud.google.com/pubsub/docs/replay-message And according to this D &E would be correct.
upvoted 5 times
datapassionate
10 months, 2 weeks ago
nother way to replay messages that have been acknowledged is to seek to a timestamp. To seek to a timestamp, you must first configure the subscription to retain acknowledged messages using retain-acked-messages. If retain-acked-messages is set, Pub/Sub retains acknowledged messages for 7 days.
upvoted 4 times
...
...
...
e70ea9e
11 months ago
Selected Answer: 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.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...