professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise runs a Dataflow streaming pipeline that ingests audit logs from Pub/Sub, applies in-flight transformations using a JavaScript User-Defined Function (UDF), and exports the events to an external monitoring endpoint (Splunk HEC).
During a system alert triggered by high backlog on the unprocessed dead-letter subscription, a data engineer analyzes Cloud Logging and error attributes attached to failed records:
Splunk write status code: 503 and Read timed out.errorMessage attributes showing Splunk write status code: 403 and ReferenceError: device_id is not defined.How should the data engineer classify these errors and remediate the pipeline to ensure full data recovery?
In enterprise event streaming architectures using Cloud Dataflow and Pub/Sub, errors are categorized into transient errors (temporary server overload or network blips) and persistent/systemic errors (authentication failures or syntax/runtime bugs in transformation code). Transient errors can be resolved with automated retries, while persistent errors require manual code or configuration intervention followed by dead-letter replay.
503 Service Unavailable and network socket Read timed out errors occur due to temporary endpoint throttling or network latency spikes. The pipeline natively applies exponential backoff to re-deliver these without routing them to the dead-letter queue.403 Forbidden indicates an invalid or expired authentication token (HEC token), and ReferenceError: device_id is not defined indicates a breaking syntax or variable scope defect inside the JavaScript User-Defined Function (UDF). Because retrying identical payloads against these errors will never succeed, the pipeline forwards them to the unprocessed topic to prevent blocking pipeline execution.5xx errors are already handled automatically by the underlying runner.This solution correctly diagnoses both error types using structured log properties, avoids unnecessary intervention for self-healing transient errors, and implements the standard dead-letter replay operational pattern recommended for Google Cloud stream processing.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.