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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
exampanic
Highly Voted 5 years, 1 month 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
Clouddude123
2 weeks, 6 days ago
"globally scaled frontend" means Dataflow is required. If the clients were in 1 region only pushing messages, then Pub/Sub alone would be the solution. Since there are global clients, this requires Dataflow.
upvoted 1 times
...
TiagoM
3 years, 9 months ago
Now Pub/Sub guarantees message order. Until the exam does not change I would pick B.
upvoted 9 times
jask
3 years, 4 months 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 14 times
emirhosseini
2 years, 3 months 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, 3 months ago
https://cloud.google.com/pubsub/docs/exactly-once-delivery reference
upvoted 1 times
...
melono
2 years, 3 months ago
Pub/Sub supports exactly-once delivery, within a cloud region. The question states ¨global¨, so needs Dataflow
upvoted 9 times
CosminCiuc
2 years 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, 10 months ago
the correct is B https://cloud.google.com/pubsub/docs/stream-messages-dataflow
upvoted 1 times
...
...
xhova
Highly Voted 4 years, 9 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
...
neokyle
Most Recent 2 days ago
Selected Answer: B
Answer is still B (Pub/Sub + Dataflow), because https://cloud.google.com/pubsub/docs/exactly-once-delivery#regional_considerations mentions "The exactly-once delivery guarantee only applies when subscribers connect to the service in the same region. If your subscriber application is spread across multiple regions, it can lead to duplicate message delivery, even when exactly-once delivery is enabled." (so the exactly-once delivery only works regionally, but the question says architect for global) The question's constraint of a globally scaled frontend, means you'll have clients in multiple regions.
upvoted 1 times
...
Clouddude123
2 weeks, 6 days ago
Selected Answer: B
"globally scaled frontend" means Dataflow is required. If the clients were in 1 region only pushing messages, then Pub/Sub alone would be the solution. Since there are global clients, this requires Dataflow.
upvoted 1 times
...
plumbig11
1 month ago
Selected Answer: B
Cloud Pub/Sub to Dataflow because the data is streaming.
upvoted 1 times
...
selected
2 months, 3 weeks ago
Selected Answer: B
https://cloud.google.com/pubsub/docs/exactly-once-delivery#regional_considerations
upvoted 2 times
...
awsgcparch
6 months, 2 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 4 times
...
19040e5
8 months, 3 weeks 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 6 times
...
hitmax87
8 months, 3 weeks 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
11 months, 1 week 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
11 months, 3 weeks ago
Selected Answer: B
Dont see a need for SQL here as the answer suggests. Option B is more appropriate
upvoted 1 times
...
Devx198912233
1 year 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 2 times
...
Pime13
1 year 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 4 times
...
theBestStudent
1 year, 3 months 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, 5 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, 5 months ago
Selected Answer: A
It should be A
upvoted 1 times
...
jlambdan
1 year, 7 months ago
Selected Answer: A
https://cloud.google.com/pubsub/docs/exactly-once-delivery
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago