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 294 discussion

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

You work for a large ecommerce company. You are using Pub/Sub to ingest the clickstream data to Google Cloud for analytics. You observe that when a new subscriber connects to an existing topic to analyze data, they are unable to subscribe to older data. For an upcoming yearly sale event in two months, you need a solution that, once implemented, will enable any new subscriber to read the last 30 days of data. What should you do?

  • A. Create a new topic, and publish the last 30 days of data each time a new subscriber connects to an existing topic.
  • B. Set the topic retention policy to 30 days.
  • C. Set the subscriber retention policy to 30 days.
  • D. Ask the source system to re-push the data to Pub/Sub, and subscribe to it.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
raaad
Highly Voted 10 months, 2 weeks ago
Selected Answer: B
- Topic Retention Policy: This policy determines how long messages are retained by Pub/Sub after they are published, even if they have not been acknowledged (consumed) by any subscriber. - 30 Days Retention: By setting the retention policy of the topic to 30 days, all messages published to this topic will be available for consumption for 30 days. This means any new subscriber connecting to the topic can access and analyze data from the past 30 days.
upvoted 11 times
...
romain773
Most Recent 3 weeks, 3 days ago
Option B is wrong i think (topic retention) because it only makes unconsumed messages available for 30 days. I propose option A Option A (creating a new topic and republishing the last 30 days of data for each new subscriber) is actually a better solution to ensure that new subscribers have access to the full 30-day history.
upvoted 1 times
...
romain773
4 weeks, 1 day ago
Option B is wrong (topic retention) because it only makes unconsumed messages available for 30 days. Option A (creating a new topic and republishing the last 30 days of data for each new subscriber) is actually a better solution to ensure that new subscribers have access to the full 30-day history.
upvoted 1 times
...
joao_01
7 months, 2 weeks ago
Its B. It could be C as well because subscription has message retention. However, in the subscription there is a maximum value for it: 7 days. Link:https://cloud.google.com/pubsub/docs/subscription-properties
upvoted 1 times
joao_01
7 months, 2 weeks ago
In a topic the maximum value is 31 days. Link: https://cloud.google.com/pubsub/docs/topic-properties
upvoted 1 times
...
...
Matt_108
10 months, 2 weeks ago
Selected Answer: B
Definitely B
upvoted 2 times
...
Sofiia98
10 months, 2 weeks ago
Selected Answer: B
https://cloud.google.com/blog/products/data-analytics/pubsub-gains-topic-retention-feature
upvoted 4 times
...
scaenruy
10 months, 3 weeks ago
Selected Answer: B
B. Set the topic retention policy to 30 days.
upvoted 1 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 ...