Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The Professional Data Engineer practice bank has 1,353 more like it. Try 10 free: instant score, no account.
An enterprise data analytics team is redesigning their batch processing architecture. Every night, multi-terabyte structured datasets from operational databases and Cloud Storage are ingested, requiring complex multi-table joins and analytical aggregations before being delivered to reporting dashboards in BigQuery.
The existing pipeline runs programmatic ETL transformations entirely on Apache Spark within Cloud Dataproc clusters. However, resource-intensive shuffle operations during large-scale joins frequently cause cluster memory bottlenecks and lead to inflated compute costs.
Which architectural approach should the team implement to optimize performance and reduce compute costs?
Cloud Dataflow is a fully managed service running Apache Beam pipelines for unified batch and stream processing. The STORAGE_API_AT_LEAST_ONCE mode is an ingestion setting in the BigQuery Storage Write API designed for high-throughput, low-latency streaming writes where minor record duplication is tolerable.
STORAGE_API_AT_LEAST_ONCE introduces duplicate records into financial or reporting tables, corrupting analytical aggregations.CoGroupByKey), retaining execution complexity.The system required near-real-time streaming analytics from streaming endpoints via Pub/Sub where latency is prioritized over exact deduplication.
Dataflow's FILE_LOADS mode is the standard default for bounded batch collections writing to BigQuery, while STORAGE_WRITE_API provides exactly-once streaming.
This approach maintains the traditional programmatic ETL paradigm by expanding the physical infrastructure of the Cloud Dataproc cluster. It involves provisioning Compute Engine worker instances with larger RAM allocations (such as n2-highmem series) and persisting intermediate Spark resilient distributed datasets or DataFrames across HDFS local disks.
The workload required non-relational, low-level programmatic libraries, specialized machine learning model training in PySpark, or custom binary C++ graph algorithms unsupported natively by BigQuery SQL.
While resizing Dataproc clusters is supported, vertically scaling Spark clusters to solve large relational join bottlenecks is an anti-pattern on Google Cloud when a serverless data warehouse like BigQuery is the target destination.
This approach uses Cloud Spanner, a globally distributed, strongly consistent relational OLTP database, as an intermediate staging and transformation layer. It uses Dataproc Serverless Spanner-to-Cloud Storage batch templates to extract transformed datasets before final loading into BigQuery.
The enterprise required a global, horizontally scalable transactional database to process concurrent ACID OLTP transactions before archiving data to an analytical warehouse.
Dataproc batch templates facilitate point-to-point data movements between storage services, but routing analytical batch workloads through an OLTP database violates Google Cloud architectural best practices.
An Extract, Load, Transform (ELT) architecture shifts data transformation from external compute engines (such as Spark on Cloud Dataproc) to the target data warehouse engine (BigQuery). Instead of transforming multi-terabyte datasets in memory before loading, raw structured records are ingested directly into BigQuery staging tables, where transformations and analytical joins execute natively using BigQuery SQL.
OutOfMemory exceptions and cluster tuning overhead.When workloads consist primarily of SQL-expressible transformations and joins on structured datasets, declarative ELT in BigQuery offers superior throughput and lower total cost of ownership compared to programmatic ETL on Dataproc, directly removing Spark shuffle bottlenecks.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated