An e-commerce company uses Cloud SQL for MySQL for transactional data and BigQuery for analytics. They need to replicate order data from Cloud SQL to BigQuery in near real-time with minimal latency. Which Google Cloud service should they use?
Trap 1: Cloud Dataflow
Dataflow is a stream processing service but requires building a pipeline from scratch. Datastream is simpler for this use case.
Trap 2: Cloud Pub/Sub
Pub/Sub is a messaging service; it would need additional components to load into BigQuery.
Trap 3: Database Migration Service (DMS)
DMS is designed for one-time migrations and continuous CDC for migrations, not for ongoing replication to BigQuery.
- A
Cloud Dataflow
Why wrong: Dataflow is a stream processing service but requires building a pipeline from scratch. Datastream is simpler for this use case.
- B
Cloud Pub/Sub
Why wrong: Pub/Sub is a messaging service; it would need additional components to load into BigQuery.
- C
Datastream
Datastream directly replicates CDC data from MySQL to BigQuery with low latency, serverless.
- D
Database Migration Service (DMS)
Why wrong: DMS is designed for one-time migrations and continuous CDC for migrations, not for ongoing replication to BigQuery.