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 financial organization is designing an automated ingestion and processing architecture to stream high-volume transaction records from Pub/Sub into BigQuery. The architecture must satisfy the following technical requirements:
Which ingestion pathway and processing approach should the organization implement?
STORAGE_WRITE_API method, and invoke getFailedStorageApiInserts on the WriteResult to route invalid rows to a dead-letter sink.The BigQuery Storage Write API is a unified, high-performance streaming and batch ingestion API integrated into Apache Beam's BigQueryIO connector in Dataflow. It provides low-latency streaming directly to BigQuery storage while enforcing strict transactional boundaries.
STORAGE_WRITE_API write method uses stream offset tracking and stream commits to guarantee that records are committed to BigQuery tables exactly once, avoiding duplicate records.PCollection accessed via getFailedStorageApiInserts(). This allows the pipeline to cleanly route bad records to a dead-letter queue or error table without causing the main streaming job to fail.Alternative ingestion approaches either cannot guarantee exactly-once processing (such as at-least-once modes), cause entire batch load failures upon a single row error (such as file loads), or incur extra operational latency. Using STORAGE_WRITE_API in BigQueryIO achieves exact-once reliability and fine-grained error isolation natively within the pipeline.
Transformation Pushdown in Cloud Data Fusion is an optimization mechanism that offloads resource-heavy pipeline stages (such as relational JOIN operations) from Spark on Dataproc to BigQuery's SQL query engine.
WriteResult.The goal was to build a graphical batch integration pipeline where heavy SQL transformations and table joins were causing high memory consumption on a Spark/Dataproc cluster.
Transformation Pushdown operates at the query and stage level, making it unsuitable for solving stream-level record triage and high-throughput real-time streaming ingestion.
FILE_LOADS method, staging intermediate files in Cloud Storage.The FILE_LOADS method buffers incoming data into temporary staging files in Cloud Storage and subsequently executes an asynchronous BigQuery load job to import the files.
PCollection for dead-lettering.FILE_LOADS is intended primarily for bounded batch PCollections and introduces batching latency while writing and loading staging files.You were executing a scheduled, non-latency-sensitive batch ingestion job where staging Parquet or Avro files in Cloud Storage is standard and whole-job retries are acceptable upon failure.
Because BigQuery load jobs fail atomically when an unparseable row is encountered, batch file loading cannot provide continuous streaming error triage.
STORAGE_API_AT_LEAST_ONCE method, and route write retries to an error table.The STORAGE_API_AT_LEAST_ONCE write method in Apache Beam's BigQueryIO uses the BigQuery Storage Write API in a low-latency mode that does not commit streams with transactional offset tracking.
STORAGE_API_AT_LEAST_ONCE explicitly provides at-least-once delivery semantics. In the event of transient network issues, worker restarts, or pipeline retries, duplicate rows can be committed to the target table.The scenario prioritized absolute lowest streaming latency and lowest cost while explicitly tolerating duplicate records or performing deduplication during downstream transformation.
For financial transaction data and strict compliance use cases, duplicate ingestion is unacceptable, making STORAGE_WRITE_API (exactly-once) the required method.
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