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

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 102 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 102
Topic #: 1
[All Professional Cloud Architect Questions]

You are developing a globally scaled frontend for a legacy streaming backend data API. This API expects events in strict chronological order with no repeat data for proper processing.
Which products should you deploy to ensure guaranteed-once FIFO (first-in, first-out) delivery of data?

  • A. Cloud Pub/Sub alone
  • B. Cloud Pub/Sub to Cloud Dataflow
  • C. Cloud Pub/Sub to Stackdriver
  • D. Cloud Pub/Sub to Cloud SQL
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
exampanic
Highly Voted 4 years, 10 months ago
I believe the answer is B. "Pub/Sub doesn't provide guarantees about the order of message delivery. Strict message ordering can be achieved with buffering, often using Dataflow." https://cloud.google.com/solutions/data-lifecycle-cloud-platform
upvoted 68 times
TiagoM
3 years, 7 months ago
Now Pub/Sub guarantees message order. Until the exam does not change I would pick B.
upvoted 9 times
jask
3 years, 1 month ago
Answer is B. The question is talking about guaranteed-once FIFO delivery of data. Although Pub/sub provides data in order (FIFO) but it does 'at-least' once delivery of data. So, we need Dataflow for deduplication of data.
upvoted 13 times
emirhosseini
2 years, 1 month ago
I believe Pub/Sub now also supports exactly once delivery (in preview): https://cloud.google.com/pubsub/docs/exactly-once-delivery
upvoted 9 times
...
...
melono
2 years, 1 month ago
https://cloud.google.com/pubsub/docs/exactly-once-delivery reference
upvoted 1 times
...
melono
2 years, 1 month ago
Pub/Sub supports exactly-once delivery, within a cloud region. The question states ¨global¨, so needs Dataflow
upvoted 9 times
CosminCiuc
1 year, 9 months ago
I believe that only the frontend is scaled globally. The backend API is the one that requires ordered delivery of the messages and guaranteed-once delivery of data. Currently, Pub/Sub supports ordered delivery within the same region (https://cloud.google.com/pubsub/docs/ordering#receiving_messages_in_order) and exactly-once delivery within the same region (https://cloud.google.com/pubsub/docs/exactly-once-delivery#exactly-once_delivery_guarantees). The right answer could be A, Pub/Sub alone.
upvoted 3 times
...
...
...
zanfo
2 years, 8 months ago
the correct is B https://cloud.google.com/pubsub/docs/stream-messages-dataflow
upvoted 1 times
...
...
xhova
Highly Voted 4 years, 6 months ago
B is the answer. CloudSQL is only for storage, to get the messages in order you need timestamp processed in dataflow to arrange them before putting it in any storage volume. The system described is not querying a db it is expecting a stream of messages only dataflow can correct the order. ACID has no value here because the db is not being queried. You'll not find any documentation on pub/sub order being corrected with a db. See notes below on pub/sub and dataflow using timestamps and windows to ensure order https://cloud.google.com/pubsub/docs/pubsub-dataflow
upvoted 28 times
...
selected
Most Recent 1 week, 2 days ago
Selected Answer: B
https://cloud.google.com/pubsub/docs/exactly-once-delivery#regional_considerations
upvoted 1 times
...
awsgcparch
3 months, 4 weeks ago
Selected Answer: A
Google Cloud Pub/Sub now supports message ordering, which ensures that messages with the same ordering key are delivered in the exact order they were published. This feature addresses the requirement for strict chronological order without the need for additional services. Key Features of Cloud Pub/Sub with Message Ordering: Message Ordering: By using ordering keys, Pub/Sub can guarantee that messages are delivered in the order they are published. Exactly-once Delivery: Pub/Sub supports at-least-once delivery and can be configured to handle duplicate messages. Scalability and Reliability: Pub/Sub is a fully managed service that scales automatically and ensures high availability.
upvoted 3 times
...
19040e5
6 months ago
Selected Answer: A
A. Cloud Pub/Sub alone Cloud Pub/Sub Ordered Delivery: Cloud Pub/Sub natively supports ordered delivery when using the same ordering key. This guarantees that messages with the same key are delivered to subscribers in the order they were published, preventing out-of-order events. Exactly-once Delivery: Cloud Pub/Sub also offers exactly-once delivery within a region, ensuring that each message is delivered to a subscriber only once.
upvoted 5 times
...
hitmax87
6 months, 1 week ago
Selected Answer: B
Pub/Sub provide ordered delivery but doesn't ensure deduplication. Cloud SQL is regional resource and it cant perform custom logic. I go with B
upvoted 1 times
...
mesodan
8 months, 3 weeks ago
Selected Answer: A
A is correct. While Cloud Dataflow can be used for data processing, it doesn't guarantee FIFO order on its own. Additionally, introducing another processing layer adds complexity and might not be necessary for this specific requirement.
upvoted 2 times
...
yas_cloud
9 months, 1 week ago
Selected Answer: B
Dont see a need for SQL here as the answer suggests. Option B is more appropriate
upvoted 1 times
...
Devx198912233
10 months ago
Selected Answer: B
B would be correct as pubsub b service might redeliver messages. When you receive messages in order and the Pub/Sub service redelivers a message with an ordering key, Pub/Sub maintains order by also redelivering the subsequent messages with the same ordering key. The Pub/Sub service redelivers these messages in the order that it originally received them.
upvoted 1 times
...
Pime13
10 months ago
Selected Answer: B
b, even if pubsub now have exactly-once-delivery this is within a region. question is for a global app. https://cloud.google.com/pubsub/docs/exactly-once-delivery#exactly-once_delivery_2
upvoted 3 times
...
theBestStudent
1 year, 1 month ago
Answer is B. Key words: globally scaled and ensure delivery only once: Pubsub + Dataflow. If it were only one region, it would be fine to say just pubsub, but it is globally scaled.
upvoted 1 times
...
Frusci
1 year, 2 months ago
Selected Answer: B
B, you need dataflow to deduplicate. Pub/Sub does "at-least" once delivery.
upvoted 2 times
...
AL_everyday
1 year, 3 months ago
Selected Answer: A
It should be A
upvoted 1 times
...
jlambdan
1 year, 5 months ago
Selected Answer: A
https://cloud.google.com/pubsub/docs/exactly-once-delivery
upvoted 2 times
...
AmarReddy
1 year, 5 months ago
Answer: B
upvoted 1 times
...
TheCloudGuruu
1 year, 6 months ago
Selected Answer: B
Pub/Sub and Dataflow
upvoted 1 times
...
Hisayuki
1 year, 7 months ago
Selected Answer: B
Pub/Sub is an at-least-once service. So you need to deduplicate messages with DataFlow as a data pipeline.
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 ...