Your chain of convenience stores streams point-of-sale transactions to BigQuery for historical reporting. A newly proposed dashboard must display company-wide revenue totals for the last five minutes with sub-100-millisecond response times to thousands of simultaneous mobile users. You want to avoid incurring BigQuery query costs on every dashboard refresh and keep operations fully managed. Which solution best satisfies these requirements?
Write recent aggregates to Cloud Bigtable and query them through the HBase API from the dashboard.
Store aggregated revenue in Cloud SQL for PostgreSQL and serve the dashboard from read replicas.
Enable BigQuery BI Engine and have the dashboard run a SQL query against a materialized view that refreshes every minute.
Use a streaming Dataflow pipeline to continuously aggregate five-minute revenue totals and write the result to Memorystore for Redis; the dashboard reads the value from Redis.
Memorystore for Redis is a fully managed, in-memory data store that delivers sub-millisecond latency at high throughput, making it ideal for frequently updated, low-latency caches. A streaming Dataflow job can compute rolling five-minute revenue totals from the transaction stream and write the single aggregated value to Redis on each update. The dashboard then performs simple key lookups against Redis, achieving the required response time with minimal operational work and no per-query BigQuery charges.
BigQuery BI Engine accelerates SQL queries but still relies on BigQuery execution and is unlikely to guarantee sub-100-ms responses for thousands of concurrent users. Cloud SQL and Bigtable can provide millisecond-level latency but are disk-backed, introduce higher query overhead, and are unnecessary for a single rapidly changing aggregate value. Therefore, publishing the aggregate to Memorystore for Redis best meets the latency, cost, and management constraints.
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 Memorystore for Redis?
Open an interactive chat with Bash
How does Dataflow work for streaming and processing data?
Open an interactive chat with Bash
Why is BigQuery BI Engine not ideal in this scenario?
Open an interactive chat with Bash
What is Memorystore for Redis?
Open an interactive chat with Bash
How does Dataflow aggregate streaming data?
Open an interactive chat with Bash
Why is BigQuery inadequate for sub-100 ms response times?
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 .