A smart-city analytics team ingests billions of JSON sensor readings each day through Pub/Sub and immediately writes them to a raw staging location. Compliance rules require that the unmodified records be retained for five years, with older data automatically moved to colder, less expensive storage classes. Engineers will later run Dataflow jobs that cleanse the data and load curated subsets into BigQuery on demand. Which sink best satisfies the retention, cost, and future-processing requirements for the raw data layer?
Persist the records in a wide-column Cloud Bigtable instance
Insert the records into a partitioned BigQuery table using streaming inserts
Store the records as objects in a Cloud Storage bucket with lifecycle rules
Load the records into a Cloud SQL PostgreSQL database and enable point-in-time recovery
Cloud Storage is designed for data-lake use cases where raw, unstructured, or semi-structured files must be kept for long periods at low cost. Bucket lifecycle policies can automatically transition objects from Standard to Nearline, Coldline, or Archive classes to meet five-year retention at minimal expense. Dataflow can natively read from and write to Cloud Storage, allowing downstream cleansing and loading into BigQuery without relocating the data. BigQuery is an analytics warehouse optimized for SQL query performance; loading every raw record would incur storage and streaming-insert costs and prevents tiered lifecycle storage. Cloud Bigtable provides low-latency key/value serving but lacks object lifecycle tiering and is cost-inefficient for write-once archival data. Cloud SQL is a managed relational OLTP service with size limits, higher per-GB cost, and no automated tiering, making it unsuitable for petabyte-scale, append-only raw data.
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 Storage's bucket lifecycle policy?
Open an interactive chat with Bash
How does Dataflow integrate with Cloud Storage for processing?
Open an interactive chat with Bash
Why is Cloud Storage preferred over BigQuery, Bigtable, or Cloud SQL in this scenario?
Open an interactive chat with Bash
What are lifecycle rules in Cloud Storage?
Open an interactive chat with Bash
Why is Cloud Storage better suited for raw data storage compared to BigQuery?
Open an interactive chat with Bash
How does Dataflow integrate with Cloud Storage for data processing?
Open an interactive chat with Bash
GCP Professional Data Engineer
Ingesting and processing 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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .