PROFESSIONAL-CLOUD-DEVELOPER · Question #288
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 dow
Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #288. The question stem and answer options stay visible for context.
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.
Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer
You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.