professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A data engineering team runs a PySpark batch transformation pipeline on an existing Google Cloud Dataproc cluster. The job reads several terabytes of raw logs stored in Google Cloud Storage and joins this massive dataset with a 15 MB dimension table containing account metadata.
During job execution, the team observes two major performance bottlenecks:
How should the team optimize this pipeline for a specific job submission without altering cluster-wide settings?
This solution combines connector-level transport optimization with Spark execution plan tuning. Enabling the gRPC storage client configures the Cloud Storage connector to use Google's high-performance gRPC API instead of the standard JSON HTTP API for read operations. In parallel, wrapping the small lookup dataset in a broadcast() hint instructs Spark to perform a Broadcast Hash Join (BHJ) instead of a distributed Sort-Merge Join (SMJ).
--properties=spark.hadoop.fs.gs.client.type=STORAGE_CLIENT at job submission enables gRPC read requests on the Cloud Storage connector specifically for this job without requiring cluster recreation or cluster-wide restarts.spark.hadoop. property prefixes during gcloud dataproc jobs submit ensures the configuration applies strictly to this execution without modifying the underlying Dataproc cluster properties.Alternative join strategies like sort-merge or shuffle-hash require partitioning both datasets by join key across all worker nodes. For asymmetric joins between large fact tables and tiny dimension tables, broadcast joins eliminate shuffle entirely. Pairing this with gRPC maximizes end-to-end data throughput from storage ingestion to final processing.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.