Cloud Spanner is designed for global distribution. What mechanism does it use to ensure strong consistency across regions?
Think about how Spanner achieves external consistency with minimal latency.
Cloud Spanner uses Google's TrueTime API, which provides tightly synchronized clocks with bounded uncertainty. This allows Spanner to assign globally consistent timestamps to transactions, ensuring strong consistency across regions.
You have users in North America, Europe, and Asia. You want low latency reads and writes globally. Which Spanner instance configuration is best?
Consider where your users are and how Spanner distributes data.
A multi-region instance with nodes in all user regions reduces latency by placing data close to users and ensures high availability globally.
Which option correctly describes how Cloud Spanner secures data at rest and in transit globally?
Think about Google Cloud's default encryption and customer control options.
Cloud Spanner encrypts data at rest by default using Google-managed keys but also supports customer-managed encryption keys. All data in transit is encrypted using TLS to protect data globally.
Which schema design practice helps reduce latency and improve performance in a globally distributed Cloud Spanner instance?
Think about how data locality affects distributed database performance.
Interleaved tables store related rows physically close, reducing cross-node communication and improving latency in global instances.
Cloud Spanner uses TrueTime with bounded uncertainty for global consistency. How does increasing TrueTime uncertainty affect transaction commit latency?
Consider why Spanner waits before committing transactions.
Spanner waits out the uncertainty window to guarantee external consistency. Larger uncertainty means longer wait times, increasing commit latency.