
Answer-first summary for fast verification
Answer: Perform stale reads using single-read methods.
The application's sensitivity to latency over consistency makes stale reads using single-read methods the optimal choice. This approach allows the application to read data that might not be the most current, significantly reducing latency by not waiting for the latest data to be consistent across all replicas. Options A and C, which involve read-only transactions and strong reads respectively, prioritize consistency over latency, making them less suitable for this scenario. Option D, involving read-write transactions, is inappropriate as it inherently requires strong consistency and cannot utilize stale reads. Therefore, option B is the correct answer.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
For an application that publishes user input to contacts (stored in Cloud Spanner) with high latency sensitivity and low consistency sensitivity, what is the optimal read configuration for Cloud Spanner?
A
Perform Read-Only transactions.
B
Perform stale reads using single-read methods.
C
Perform strong reads using single-read methods.
D
Perform stale reads using read-write transactions.
No comments yet.