Sample question 1 — Ingest and Process Data
A logistics company needs to process daily CSV files stored in Cloud Storage, transform them, and load into BigQuery. The files vary in size and the job must handle failures automatically. Which approach is most appropriate?
- A. Run a cron job on a Compute Engine VM
- B. Use Cloud Functions triggered by file uploads
- C. Use a Dataproc cluster with custom scripts
- D. Use a Dataflow batch pipeline with retries
Answer: D. Option D is correct because Dataflow batch pipelines provide managed, scalable processing with automatic retries and integration with Cloud Storage and BigQuery. Option A is incorrect because a cron job on a VM requires manual scaling and failure handling. Option B is incorrect because Cloud Functions have time and resource limits unsuitable for large batch files. Option C is incorrect because Dataproc requires cluster management and custom scripting.
