PROFESSIONAL-CLOUD-DEVELOPER · Question #57
PROFESSIONAL-CLOUD-DEVELOPER Question #57: Real Exam Question with Answer & Explanation
The correct answer is B: Perform stale reads using single-read methods.. https://cloud.google.com/spanner/docs/reads A stale read is read at a timestamp in the past. If your application is latency sensitive but tolerant of stale data, then stale reads can provide performance benefits.
Question
Your application takes an input from a user and publishes it to the user's contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency. How should you perform reads from Cloud Spanner for this application?
Options
- APerform Read-Only transactions.
- BPerform stale reads using single-read methods.
- CPerform strong reads using single-read methods.
- DPerform stale reads using read-write transactions.
Explanation
https://cloud.google.com/spanner/docs/reads A stale read is read at a timestamp in the past. If your application is latency sensitive but tolerant of stale data, then stale reads can provide performance benefits.
Topics
Community Discussion
No community discussion yet for this question.