QuestionQ111

VerifiedData Transformation, Cleansing, and Quality

A data engineer uses Structured Streaming to ingest transaction data from a bronze Delta table. Data-quality issues have been identified: transaction values can sometimes be negative, and those rows must be routed to a separate quarantine table. Good data has low-latency requirements because downstream systems use it, whereas bad data will be analyzed only periodically and has no production dependencies. The quarantine job must be implemented so it cannot affect the production processes that rely on good data, while minimizing the job's cost.

How should the quarantine process be implemented to meet these requirements?

Explanation

The production stream should exclude negative transaction values and run on dedicated compute so the low-latency good-data path is isolated from quarantine workload contention or failure. A separate stream can select negative values and run only on a small, scheduled cluster because quarantine analysis is periodic and does not have a production latency requirement. Databricks documents that scheduled incremental streaming is appropriate for periodic processing and that compute can be sized independently for streaming tasks.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!