Your company operates e-commerce sites on three continents. Every customer order must be written to the operational database in under 50 ms and be immediately visible in all regions with 99.999 % availability. Peak traffic reaches 2 million writes per second. Business analysts need to query fresh order data in BigQuery within five minutes of commit without adding complex operations. Which Google Cloud design best satisfies these requirements?
Write orders to Cloud Bigtable and export SSTables nightly to Cloud Storage, then import them into BigQuery with scheduled queries.
Store orders in a multi-region Cloud Spanner instance and use Cloud Spanner change streams processed by Dataflow to write updates to BigQuery in near real time.
Store orders in Cloud SQL for PostgreSQL with cross-region read replicas and schedule hourly BigQuery Data Transfer Service loads from the primary instance.
Stream orders directly into a multi-regional BigQuery table and let analysts query the same table for operational and analytical workloads.
A multi-region Cloud Spanner instance is purpose-built for globally distributed transactional workloads that demand horizontal write scaling, five-nines availability, and synchronous, strongly consistent replication across regions-all of which match the order-processing requirements. Cloud Spanner change streams can capture mutations as they occur and feed them into a Dataflow pipeline that writes to BigQuery, making new records queryable within minutes while keeping administration minimal.
Cloud SQL cannot scale to millions of writes per second and its cross-region replication is asynchronous. Writing orders directly to BigQuery provides a serverless destination but lacks sub-50 ms transactional inserts and strong consistency, and streaming data can take minutes-or longer-to become visible. Bigtable offers high throughput but does not provide multiregion strong consistency, ACID transactions, or SQL support. Therefore, using Cloud Spanner with change streams to Dataflow and BigQuery is the only option that meets all performance, consistency, and operational goals.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Cloud Spanner?
Open an interactive chat with Bash
What are Cloud Spanner change streams?
Open an interactive chat with Bash
How does Dataflow work with Cloud Spanner for real-time analytics?
Open an interactive chat with Bash
What are Cloud Spanner change streams?
Open an interactive chat with Bash
Why does Cloud Spanner offer five-nines availability?
Open an interactive chat with Bash
How does Dataflow interact with BigQuery?
Open an interactive chat with Bash
What is Cloud Spanner, and why is it suitable for globally distributed transactional workloads?
Open an interactive chat with Bash
What are Cloud Spanner change streams, and how do they interact with Dataflow?
Open an interactive chat with Bash
Why are other options like Cloud SQL, BigQuery, and Bigtable unsuitable for this use case?
Open an interactive chat with Bash
GCP Professional Data Engineer
Storing the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .