SELECT THREE: Your organization is implementing a real-time data pipeline using Pub/Sub, Dataflow, and BigQuery. You need to select THREE of the following considerations to ensure the pipeline is production-ready and cost-effective. Which THREE?
- A. Set up BigQuery slot reservations to guarantee query performance and enable the Storage Write API for efficient batch writes with deduplication.✓ Correct
- B. Use the BigQuery Storage Write API with a 10-second commit interval to balance latency and write efficiency.
- C. Implement comprehensive dead-letter topic handling in Pub/Sub for messages that fail processing in Dataflow, enabling replay and monitoring.✓ Correct
- D. Configure Dataflow autoscaling with a maximum worker limit to prevent runaway costs during traffic spikes.
- E. Enable Dataflow's Streaming Engine to leverage managed state and ensure consistent exactly-once semantics across restarts.✓ Correct
- F. Configure Dataflow to use preemptible worker VMs to reduce compute costs, but accept occasional task interruptions requiring retry logic.
Explanation
The correct answers are options 1, 3, and 5. Option 1 is correct because the Streaming Engine is essential for maintaining state consistency and exactly-once semantics. Option 3 is correct because slot reservations guarantee query performance for analytics workloads, and the Storage Write API is the recommended approach for efficient, deduplicated writes to BigQuery. Option 5 is correct because dead-letter topic handling enables reliable error recovery and observability—critical for production pipelines. Option 2 is incorrect because using preemptible VMs in a critical real-time pipeline introduces unnecessary disruption risk; standard VMs are more appropriate. Option 4 is incorrect because a 10-second commit interval is arbitrary; the optimal interval depends on latency requirements and write volume, and the Storage Write API automatically handles efficient batching. Option 6 is partially correct (autoscaling is good), but it's less critical than the other three considerations for production readiness.