- A
Use Beam’s PAssert to validate each element in the pipeline.
Why wrong: PAssert is designed for batch pipeline testing, not for real-time validation in production.
- B
Enable Dataflow’s built-in schema validation on the PCollection.
Why wrong: Beam schemas provide type checking but do not automatically route malformed data; you must still handle errors.
- C
Configure a dead letter queue for unprocessable records.
A dead letter queue stores malformed records for later analysis, ensuring no data is silently lost.
- D
Use Cloud Monitoring alerting on Dataflow system lag metric.
System lag indicates delayed processing; alerting on it helps detect late data issues.
- E
Run a separate batch pipeline to re-process data for validation.
Why wrong: This adds latency and complexity; real-time validation should be inline.
Quick Answer
The answer is implementing a dead letter queue for malformed records and using Cloud Monitoring alerting on the Dataflow system lag metric to detect late data. A dead letter queue isolates unprocessable records—such as malformed sensor data—into a separate storage sink like Pub/Sub or Cloud Storage, preventing pipeline failures while enabling later analysis. The system lag metric measures the time from data ingestion to processing, making it the precise tool for detecting late-arriving data and triggering alerts when latency exceeds acceptable thresholds. On the Google Professional Data Engineer exam, this pairing tests your understanding of streaming data quality detection patterns, where a common trap is confusing system lag with data freshness or throughput. Remember the mnemonic “DLQ for junk, lag for sunk”—dead letter queues catch bad records, while system lag alerts catch data that’s fallen behind schedule.
PDE Ensuring solution quality Practice Question
This PDE practice question tests your understanding of ensuring solution quality. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. 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.
A company is developing a streaming Dataflow pipeline to process real-time sensor data. To ensure data quality, the team wants to detect malformed records and late data. Which two practices should they implement? (Choose two.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Configure a dead letter queue for unprocessable records.
Option C is correct because a dead letter queue (DLQ) is a standard pattern in streaming pipelines for isolating malformed or unprocessable records without blocking the main data flow. In Dataflow, this is typically implemented by writing bad records to a separate output (e.g., a Pub/Sub topic or Cloud Storage bucket) for later analysis or reprocessing. Option D is correct because the Dataflow system lag metric in Cloud Monitoring measures the time between when data enters the pipeline and when it is processed, making it an effective way to detect late data and trigger alerts for SLA violations.
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.
- ✗
Use Beam’s PAssert to validate each element in the pipeline.
Why it's wrong here
PAssert is designed for batch pipeline testing, not for real-time validation in production.
- ✗
Enable Dataflow’s built-in schema validation on the PCollection.
Why it's wrong here
Beam schemas provide type checking but do not automatically route malformed data; you must still handle errors.
- ✓
Configure a dead letter queue for unprocessable records.
Why this is correct
A dead letter queue stores malformed records for later analysis, ensuring no data is silently lost.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Use Cloud Monitoring alerting on Dataflow system lag metric.
Why this is correct
System lag indicates delayed processing; alerting on it helps detect late data issues.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Run a separate batch pipeline to re-process data for validation.
Why it's wrong here
This adds latency and complexity; real-time validation should be inline.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that PAssert can be used in production pipelines, but it is strictly a testing utility, and candidates may also confuse schema validation with Dataflow's built-in type checking, which does not exist for arbitrary record validation.
Detailed technical explanation
How to think about this question
In practice, a dead letter queue is often implemented using a side output in a ParDo transform that writes malformed records to a separate PCollection, which is then written to a dead-letter topic or bucket. The system lag metric is calculated as the difference between the event time and the current processing time, and it is critical for detecting backpressure or slow processing in streaming pipelines. A common real-world scenario is a sensor data pipeline where a spike in malformed JSON can cause the main output to stall if not isolated via a DLQ.
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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
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.
- →
Ensuring solution quality — study guide chapter
Learn the concepts, then practise the questions
- →
Ensuring solution quality practice questions
Targeted practice on this topic area only
- →
All PDE questions
499 questions across all exam domains
- →
Google Professional Data Engineer study guide
Full concept coverage aligned to exam objectives
- →
PDE practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PDE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Designing data processing systems practice questions
Practise PDE questions linked to Designing data processing systems.
Building and operationalizing data processing systems practice questions
Practise PDE questions linked to Building and operationalizing data processing systems.
Operationalizing machine learning models practice questions
Practise PDE questions linked to Operationalizing machine learning models.
Ensuring solution quality practice questions
Practise PDE questions linked to Ensuring solution quality.
PDE fundamentals practice questions
Practise PDE questions linked to PDE fundamentals.
PDE scenario practice questions
Practise PDE questions linked to PDE scenario.
PDE troubleshooting practice questions
Practise PDE questions linked to PDE troubleshooting.
Practice this exam
Start a free PDE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PDE question test?
Ensuring solution quality — This question tests Ensuring solution quality — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Configure a dead letter queue for unprocessable records. — Option C is correct because a dead letter queue (DLQ) is a standard pattern in streaming pipelines for isolating malformed or unprocessable records without blocking the main data flow. In Dataflow, this is typically implemented by writing bad records to a separate output (e.g., a Pub/Sub topic or Cloud Storage bucket) for later analysis or reprocessing. Option D is correct because the Dataflow system lag metric in Cloud Monitoring measures the time between when data enters the pipeline and when it is processed, making it an effective way to detect late data and trigger alerts for SLA violations.
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.
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 →
Last reviewed: Jun 30, 2026
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.