Google Cloud (GCP) Data Engineering Interview Questions and Answers: BigQuery, Dataflow, and Pub/Sub

GCP Data Engineering interviews focus heavily on BigQuery optimization, streaming pipelines, and serverless ETL. Here are the most common Google Cloud Data Engineering interview questions and answers.

1. How do Partitioning and Clustering optimize BigQuery cost and performance?

Answer: Partitioning divides a BigQuery table into segments (by date/timestamp or integer range) so queries scan only relevant partitions. Clustering sorts data within each partition by up to four columns, pruning blocks at query time and reducing bytes scanned without extra storage cost.

2. What is the difference between BigQuery On-Demand and Capacity (Editions) pricing?

Answer: On-Demand pricing charges per tebibyte of data scanned by each query. BigQuery Editions (Capacity pricing) allocate dedicated or autoscaling compute slots, making costs predictable for high-volume, steady-state enterprise analytics.

3. How does Cloud Dataflow differ from Cloud Dataproc?

Answer: Cloud Dataflow is a fully managed, serverless service for Apache Beam pipelines supporting unified batch and streaming processing with automatic worker scaling. Cloud Dataproc is a managed Apache Spark and Hadoop cluster service ideal for lifting and shifting existing Spark/Hive workloads.

4. How does Cloud Pub/Sub guarantee message delivery?

Answer: Cloud Pub/Sub provides at-least-once delivery by default across globally distributed topics and subscriptions, and also supports exactly-once delivery within a region and ordered delivery via ordering keys when configured.

5. What is Cloud Composer, and when do you use it?

Answer: Cloud Composer is a managed Apache Airflow service used to author, schedule, and monitor complex multi-step data pipelines (DAGs) orchestrating BigQuery, Dataflow, Dataproc, and external systems.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top