The answer is a schema mismatch where the pipeline sends a STRING for a column that BigQuery expects as a TIMESTAMP. This error occurs because Dataflow’s BigQuery sink automatically validates each field’s data type against the target table schema; when the source data provides a string representation of a timestamp instead of a proper TIMESTAMP type, the write operation fails with a mismatch error. On the Google Professional Data Engineer exam, this scenario tests your understanding of Dataflow’s schema enforcement and the importance of explicit type conversion in pipeline code—a common trap is assuming BigQuery will implicitly cast strings to timestamps, which it does not in this context. Remember that BigQuery is strict about column types, so always use functions like `PARSE_TIMESTAMP` or `TIMESTAMP` in your Dataflow transforms before writing. A quick memory tip: “String to TIMESTAMP? That’s a mismatch you can’t dismiss.”
PDE Designing data processing systems Practice Question
This PDE practice question tests your understanding of designing data processing systems. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Refer to the exhibit.
Error log from Dataflow pipeline:
"java.lang.IllegalArgumentException: Unable to convert value '2024-08-15T10:23:45.123Z' for field 'timestamp' from type 'STRING' to type 'TIMESTAMP' at org.apache.beam.sdk.io.gcp.bigquery.BigQueryIO$Write.addRecordToBatch"
What is the most likely cause of this error?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Refer to the exhibit.
Error log from Dataflow pipeline:
"java.lang.IllegalArgumentException: Unable to convert value '2024-08-15T10:23:45.123Z' for field 'timestamp' from type 'STRING' to type 'TIMESTAMP' at org.apache.beam.sdk.io.gcp.bigquery.BigQueryIO$Write.addRecordToBatch"
A
The BigQuery table is not partitioned
Why wrong: Partitioning does not affect type conversion; this error is unrelated to partitioning.
B
The Dataflow worker does not have the correct time zone
Why wrong: Time zone configuration would not cause a type conversion error; it would affect the value interpretation.
C
The pipeline is using a fixed window but the data is out of order
Why wrong: The error is about type conversion, not windowing or ordering.
D
The schema of the BigQuery table expects a TIMESTAMP but the pipeline is sending a STRING
The error clearly shows an attempt to convert a string to a timestamp, indicating a schema mismatch.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The schema of the BigQuery table expects a TIMESTAMP but the pipeline is sending a STRING
Option D is correct because the error message indicates a type mismatch: BigQuery expects a TIMESTAMP column, but the pipeline is sending a STRING. Dataflow's BigQuery sink performs automatic schema validation, and if the source data type (STRING) does not match the target column type (TIMESTAMP), the write operation fails with a mismatch error. This is a common issue when pipeline code or source data formats timestamps as strings without explicit conversion.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The BigQuery table is not partitioned
Why it's wrong here
Partitioning does not affect type conversion; this error is unrelated to partitioning.
✗
The Dataflow worker does not have the correct time zone
Why it's wrong here
Time zone configuration would not cause a type conversion error; it would affect the value interpretation.
✗
The pipeline is using a fixed window but the data is out of order
Why it's wrong here
The error is about type conversion, not windowing or ordering.
✓
The schema of the BigQuery table expects a TIMESTAMP but the pipeline is sending a STRING
Why this is correct
The error clearly shows an attempt to convert a string to a timestamp, indicating a schema mismatch.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the distinction between schema type mismatches and data ordering or partitioning issues, so candidates may confuse a type error with a windowing or time zone problem.
Detailed technical explanation
How to think about this question
Under the hood, Dataflow's BigQueryIO uses the Apache Beam SDK to convert PCollection elements into TableRow objects, which are then serialized to JSON for the BigQuery Streaming API. If the pipeline writes a STRING value into a field defined as TIMESTAMP in the BigQuery schema, the API rejects the row with a 'Invalid schema type' error. A real-world scenario is when a pipeline reads timestamps as strings from a CSV or JSON source and fails to parse them into a Beam DateTime type before writing to BigQuery.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Designing data processing systems — This question tests Designing data processing systems — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The schema of the BigQuery table expects a TIMESTAMP but the pipeline is sending a STRING — Option D is correct because the error message indicates a type mismatch: BigQuery expects a TIMESTAMP column, but the pipeline is sending a STRING. Dataflow's BigQuery sink performs automatic schema validation, and if the source data type (STRING) does not match the target column type (TIMESTAMP), the write operation fails with a mismatch error. This is a common issue when pipeline code or source data formats timestamps as strings without explicit conversion.
What should I do if I get this PDE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This PDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PDE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.