Community Q&A
ADP — frequently asked questions
Community-vetted answers to 12 common questions about this exam, each traced back to a specific practice question.
Questions from real practice questions
Each Q&A comes from a specific question — follow the link for the full analysisCleaning Large Datasets in Google Cloud Using BigQuery SQL
Why is SQL preferred over Python for data cleaning in BigQuery?
SQL in BigQuery is optimized for large-scale, distributed processing. It allows you to clean and analyze data in the same place, reducing data movement and latency compared to external Python scripts.
Can I use Cloud Composer for data cleaning?
Yes, but it is typically reserved for complex, multi-step workflows requiring orchestration. For straightforward cleaning tasks, native BigQuery SQL is simpler and more cost-effective.
Automating Legacy ETL Pipelines with Cloud Composer
Can I use Cloud Composer with existing shell scripts?
Yes. You can use the BashOperator in Apache Airflow to execute existing shell scripts directly within a DAG without needing to rewrite the logic.
Why not use Cloud Scheduler alone for this task?
Cloud Scheduler is good for simple time-based triggers but lacks the advanced orchestration features, dependency management, and detailed observability provided by Airflow in Cloud Composer.
Cloud Storage Bucket Retention Policy for Data Compliance
What is the difference between a bucket retention policy and an object hold?
A bucket retention policy applies to all objects in the bucket and enforces a mandatory minimum retention period globally. An object hold is applied to individual objects and requires manual intervention to remove.
Can I delete data from a bucket with a retention policy before the retention period ends?
No. Once a retention policy is set, no user (including project owners) can delete or overwrite objects in the bucket until the retention period expires.
Monitoring Dataflow Pipelines with Cloud Monitoring
Can I use Cloud Logging to alert on Dataflow errors?
While possible, it is not recommended. Cloud Monitoring is designed for metric-based threshold alerting, which is more reliable and efficient than parsing logs for keywords.
What metrics are available for Dataflow in Cloud Monitoring?
Built-in metrics include worker CPU utilization, job lag, throughput, and error counts, which can be directly used to create alerting policies.
Streaming Data Pipeline Design with Dataflow and Pub/Sub
Why not use Cloud Composer for streaming data?
Cloud Composer is an orchestrator, meaning it schedules and monitors jobs. It does not have built-in capabilities to continuously ingest and process streaming data in real-time. It is best used for batch workflows.
Is Dataproc ever better than Dataflow for streaming?
Dataproc might be chosen if you need to use specific open-source libraries not supported by Dataflow/Beam or if you require tight control over the Spark cluster configuration. However, for most standard streaming ETL tasks, Dataflow is more scalable and easier to manage.
Forecasting Product Demand with BigQueryML Time Series Models
What is the default model type for BigQueryML time series?
The default model type for time series forecasting in BigQuery ML is ARIMA_PLUS, which automatically handles missing values, outliers, holidays, and multiple seasonality.
Can I use linear regression for demand forecasting?
Linear regression can be used for simple forecasting if there are no significant seasonal or temporal trends. However, for most ecommerce demand scenarios with seasonality, ARIMA_PLUS via BigQueryML is more appropriate and accurate.