Google Cloud Professional Data Engineer (GCP-PDE): 5 Practice Questions on Ingesting and processing the data
This set covers Ingesting and processing the data, one of the domains of the Google Cloud Professional Data Engineer (GCP-PDE) exam. It makes up about 25% of the exam. Try each question first, then open the answer to see why every option is right or wrong.

Google Cloud Professional Data Engineer (GCP-PDE) · Ingesting and processing the data · 5 questions with answers and explanations
🧠Reading Ingesting and processing the data questions
Ingestion questions start from a source such as Pub/Sub, files or a database and a latency target, then ask for the simplest pipeline that meets it. Whether the data needs transformation often decides. Strong options use a direct subscription or managed connector when nothing needs changing, and Dataflow when it does; weaker ones add processing steps the requirement never mentions.
Watch for these while you work
• When messages need no filtering or enrichment, a BigQuery subscription on the Pub/Sub topic is the pipeline with the fewest moving parts.
• Pull subscriptions suit private networks that cannot expose a public push endpoint.
• For troubleshooting, separate delivery problems (acknowledgement, backlog) from processing problems (windowing, late data) before choosing a fix.
Question 1 of 5
A claims team keeps 200,000 scanned PDF claim forms in a Cloud Storage bucket. They need fields such as claimant name, claim date and amount extracted into typed BigQuery columns, with the work done from SQL. Which design fits?
Show answer
✅ Answer: D
Difficulty: advanced
Structured extraction from unstructured files
BigQuery can treat objects in Cloud Storage as ObjectRef values (created with OBJ.MAKE_REF from a URI or taken from an object table). Generative AI functions accept them, so a query can send a PDF or image to Gemini together with a prompt.
• AI.GENERATE with an output schema returns typed fields (strings, numbers, booleans) in a STRUCT that can be stored in columns.
• Single-field cases have helpers such as AI.GENERATE_INT or AI.GENERATE_DOUBLE; AI.GENERATE_TABLE is the table-valued variant over a remote model.
Things that do not extract
A table definition over PDFs exposes only object metadata or raw bytes; regular expressions cannot read scanned images; Bigtable does not parse content.
Current name: BigLake (now Lakehouse) and BigLake metastore (now the Lakehouse runtime catalog) keep their API, CLI and IAM names. The exam guide and this question keep the older names.
Why each option works or fails
• ✗ A. Bigtable rows: Bigtable stores and returns cell values; it has no capability to read or understand document content.
• ✗ B. BigLake table over PDFs: external tables read structured file formats such as Parquet or CSV; they do not interpret PDF layouts into fields.
• ✗ C. BYTES and REGEXP_EXTRACT: regex works on text, and scanned images contain no text for it to match.
• ✓ D. ObjectRef with AI.GENERATE and an output schema (correct): the model reads each document and returns typed values that SQL can insert into columns.
Question 2 of 5
A fleet of delivery vans publishes JSON telemetry to a Pub/Sub topic. The analytics team needs every message stored in a BigQuery table within seconds. No filtering, enrichment or aggregation is needed, and the team wants the fewest components to monitor and the lowest cost. Which design fits?
Show answer
✅ Answer: D
Difficulty: applied
Export subscriptions
Pub/Sub has three subscription families. Pull and push subscriptions hand messages to a subscriber application you run. Export subscriptions (BigQuery, Cloud Storage) make the Pub/Sub service itself write each message to a Google Cloud resource, with automatic flow control and load balancing.
When no processing is needed
Docs state that without an export subscription you need a subscriber such as Dataflow to read and write messages, and that the overhead of a Dataflow job is not necessary when messages need no additional processing before storage. A BigQuery subscription can also use the topic schema, and failed writes can go to a dead-letter topic.
Applying it here
Plain JSON into a table with no transformation is the exact case the export subscription targets: nothing to deploy, scale or monitor.
Current name: Dataproc (now Managed Service for Apache Spark). The exam guide and this question keep the older name.
Why each option works or fails
• ✗ A. Push to Cloud Run: it delivers one message per request and needs custom insert code, retries and scaling that the service would otherwise handle for you.
• ✗ B. Spark Structured Streaming on Dataproc: a cluster must be sized, patched and monitored, which is the heaviest option for a pass-through load.
• ✗ C. Streaming Dataflow job: it works, but a continuously running job with workers adds cost and operations that are unnecessary when nothing is transformed.
• ✓ D. BigQuery subscription (correct): the Pub/Sub service writes directly to the table, so there is no job or service to run, and cost and latency are lower than with a processing pipeline.
Question 3 of 5
A workflow must start a BigQuery query job, wait until it completes, and then continue. The author does not want to write polling loops or manage job IDs by hand. What should the workflow use?
Show answer
✅ Answer: A
Difficulty: applied
Workflows connectors
A connector is a built-in wrapper around a Google Cloud API (BigQuery, Dataflow, Cloud Run, Dataproc and many others). Compared with a raw HTTP call, a connector:
• handles authentication with the workflow's service account,
• applies retry behavior for transient errors,
• and for long-running operations waits for completion automatically, so the author does not write polling logic.
When to use raw HTTP
Use http.get or http.post for APIs that have no connector, such as third-party services, and add your own retry and wait logic there.
Current name: Dataproc (now Managed Service for Apache Spark). The exam guide and this question keep the older name.
Why each option works or fails
• ✓ A. BigQuery connector (correct): it starts the job and waits for the long-running operation to complete, with retries, without custom polling.
• ✗ B. Callback on Compute Engine: Workflows can wait for BigQuery jobs through the connector, so a custom endpoint and VM are unnecessary.
• ✗ C. HTTP plus sleep loop: it works but is the hand-written polling code the author wants to avoid, and mistakes in it cause hung executions.
• ✗ D. Polling Pub/Sub: it adds an extra topic, a publisher and polling steps for something the connector provides natively.
Question 4 of 5
A team must replace a running streaming pipeline with a new version in which two transforms were renamed. They want to keep the job's state and buffered data, and avoid launching a replacement that fails its compatibility check. Which TWO actions should they take? (Select TWO)
Show answer
✅ Answer: A, E
Difficulty: advanced
Replacing a streaming job
Dataflow can update a job in flight for some options, but new pipeline code needs a replacement job. The service runs a compatibility check between the running and replacement job to make sure intermediate state and buffered data can be transferred.
• If transform names changed, provide a transform name mapping (--transformNameMapping in Java, --transform_name_mapping in Python).
• If the replacement uses a later Beam SDK version, set --updateCompatibilityVersion to the version of the *original* job.
• To check validity before launching, add the graph_validate_only service option, then launch again without it.
Why each option works or fails
• ✓ A. Transform name mapping (correct): it tells the service which new transform corresponds to which old one, so state is carried over.
• ✗ B. Turning off autoscaling: the compatibility check does not require a fixed worker count.
• ✗ C. Compatibility version of the new code: it must be the SDK version used in the original job, not the new one.
• ✗ D. Cancelling first: a cancelled job does not preserve buffered state and defeats the purpose of an update.
• ✓ E. Graph validation (correct): the replacement graph is checked before launch, reducing the risk of failure after the update.
Question 5 of 5
A Spark job on Dataproc must read a 4 TB BigQuery fact table, join it with files in Cloud Storage and write the result back to BigQuery. The team wants parallel reads without a manual export step. What should the data engineer use?
Show answer
✅ Answer: C
Difficulty: applied
Reading BigQuery from Spark
BigQuery is not an HDFS-style store, so Spark needs a connector. The Spark BigQuery connector reads through the BigQuery Storage Read API, which splits the table into streams that Spark executors read in parallel, applying column projection and filter pushdown. Writing back uses load jobs or the Storage Write API.
Why exports and drivers lose
• A manual or scheduled export adds a copy, a delay and a cleanup job, and the data is stale.
• A single driver or single result stream becomes a bottleneck at multi-terabyte sizes.
Current name: Dataproc (now Managed Service for Apache Spark). The exam guide and this question keep the older name.
Why each option works or fails
• ✗ A. Nightly export to Cloud Storage: it adds a stale copy and a pipeline stage, which is the manual export step the team wants to avoid.
• ✗ B. JDBC with one long SELECT: a single result stream pages the whole table through one connection and cannot use parallel reads from many executors.
• ✓ C. Spark BigQuery connector (correct): it reads in parallel using the Storage Read API, pushes down column and filter selection, and writes results back to BigQuery, with no export step.
• ✗ D. jobs.getQueryResults on the driver: collecting results on one driver node bottlenecks at 4 TB and defeats the purpose of distributed processing.
🎯 Quick recap
• Combine ObjectRef values with AI.GENERATE and an output schema to turn documents in Cloud Storage into typed BigQuery columns.
• When messages need no processing before storage, an export subscription replaces a Dataflow job.
• Prefer Workflows connectors for Google Cloud APIs because they handle auth, retries and waiting for long-running operations.
• Map renamed transforms and validate the replacement graph before updating a streaming job.
• Use the Spark BigQuery connector so Dataproc jobs read and write BigQuery in parallel through the Storage APIs without exports.
📊 This set at a glance
Exam: GCP-PDE · 45 questions · 120 minutes · the largest of 5 domains
This set: 3 applied, 2 advanced · 3 scenario, 1 comparison, 1 concept check · 1 with more than one answer
🔗 More from this exam
• Google Cloud Professional Data Engineer (GCP-PDE): 5 Practice Questions on Designing data processing systems
• GCP-PDE Study Notes in Questions: Designing data processing systems
• All GCP-PDE practice sets
• Every exam on this blog
📚 Keep studying GCP-PDE
More GCP-PDE questions: https://hyunhp.github.io/cert-bank/#exam=GCP-PDE
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=GCP-PDE
These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.
Original practice questions written for this blog, not exam dumps.
Comments
Post a Comment