Question-32: The updates that are provided by streaming APIs are communicated to the customer whenever an event occurs. This is in contrast to REST APIs, which only provide updates when they are explicitly requested. The architecture of REST APIs is based on a client-server model. You are in the process of designing a globally scalable frontend for an existing streaming data API. For the processing to go well, this API requires that the events be presented in exact chronological sequence and without any repetition data. Which solutions should you implement to guarantee that the data will be delivered guaranteed-once and in FIFO (first-in, first-out) order?
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
Correct Answer

Get All 340 Questions and Answer for Google Professional Cloud Architect

: 2 Explanation: Pub/Sub does not provide any promises about the sequence in which messages will be delivered. Buffering, most often Dataflow, is used to accomplish the task of achieving strict message ordering. Pub/Sub now ensures the correct sequence of messages. Within a cloud area, exactly-once delivery is supported via the Pub/Sub protocol. Because the inquiry uses the word global, the answer Dataflow The delivery of data according to guaranteed-once FIFO order is the topic of the inquiry. Despite the fact that Pub/sub delivers data in the order in which it was requested (FIFO), it does so at least once. Therefore, we need Dataflow in order to deduplicate our data. Messages are removed from the queue based on the Pub/Sub message ID while using Dataflow. A broad range of data processing patterns may be carried out with the help of the managed service known as Dataflow. You may install your batch and streaming data processing pipelines using Dataflow by following the instructions provided in the documentation on this site, which also includes guidelines for leveraging service capabilities.