
Answer-first summary for fast verification
Answer: Create a pull subscription with both ordering and exactly-once delivery turned off.
The application needs to handle a high volume of stock price updates with low latency. Each message contains a timestamp, allowing the database to check if an update is newer. Ordering is unnecessary because the timestamp ensures only the latest price is used. Exactly-once delivery can be disabled since duplicates with the same timestamp won't affect the database. A pull subscription (option D) is optimal for high throughput as it allows the subscriber to control message retrieval and process in parallel, ensuring timely updates without Pub/Sub overhead from ordering or exactly-once features.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should you configure a Pub/Sub subscription for an application that monitors high-volume stock price updates, where each message contains a stock symbol, price, and timestamp, to ensure an in-memory database stays current for downstream trading services?
A
Create a pull subscription with exactly-once delivery enabled.
B
Create a push subscription with both ordering and exactly-once delivery turned off.
C
Create a push subscription with exactly-once delivery enabled.
D
Create a pull subscription with both ordering and exactly-once delivery turned off.
No comments yet.