GoogleGoogle
PROFESSIONAL-CLOUD-DEVELOPER · Question #288
PROFESSIONAL-CLOUD-DEVELOPER Question #288: Real Exam Question with Answer & Explanation
The correct answer is A: Create a push subscription with exactly-once delivery enabled.. See the full explanation below for the reasoning.
Implementing messaging solutions with Pub/Sub
Question
You recently developed an application that monitors a large number of stock prices. You need to configure Pub/Sub to receive messages and update the current stock price in an in-memory database. A downstream service needs the most up-to-date prices in the in-memory database to perform stock trading transactions. Each message contains three pieces or information: - Stock symbol - Stock price - Timestamp for the update How should you set up your Pub/Sub subscription?
Options
- ACreate a push subscription with exactly-once delivery enabled.
- BCreate a pull subscription with both ordering and exactly-once delivery turned off.
- CCreate a pull subscription with ordering enabled, using the stock symbol as the ordering key.
- DCreate a push subscription with both ordering and exactly-once delivery turned off.
Topics
#Pub/Sub#Subscription Types#Message Delivery Guarantees#Real-time Data Processing
Community Discussion
No community discussion yet for this question.