Valid Databricks-Certified-Professional-Data-Engineer Dumps shared by EduDump.com for Helping Passing Databricks-Certified-Professional-Data-Engineer Exam! EduDump.com now offer the newest Databricks-Certified-Professional-Data-Engineer exam dumps, the EduDump.com Databricks-Certified-Professional-Data-Engineer exam questions have been updated and answers have been corrected get the newest EduDump.com Databricks-Certified-Professional-Data-Engineer dumps with Test Engine here:
A data engineer is creating a data ingestion pipeline to understand where customers are taking their rented bicycles during use. The engineer noticed that, over time, data being transmitted from the bicycle sensors fail to include key details like latitude and longitude. Downstream analysts need both the clean records and the quarantined records available for separate processing. The data engineer already has this code: import dlt from pyspark.sql.functions import expr rules = { " valid_lat " : " (lat IS NOT NULL) " , " valid_long " : " (long IS NOT NULL) " } quarantine_rules = " NOT({}) " .format( " AND " .join(rules.values())) @dlt.view def raw_trips_data(): return spark.readStream.table( " ride_and_go.telemetry.trips " ) How should the data engineer meet the requirements to capture good and bad data?
Correct Answer: A
The requirement is that both valid (good) and invalid (bad) records must be captured and available separately for downstream processing. Invalid records should not simply be dropped; they must be quarantined in a dedicated table. In Databricks Lakeflow Declarative Pipelines (DLT) , this is achieved by creating separate output tables : * One table for valid records (Silver table) that pass the expectations. * Another quarantine table that explicitly captures records failing the expectations. Option A correctly implements this by: * Declaring a DLT table trips_data_quarantine. * Using .filter(expr(quarantine_rules)) to isolate invalid records (records where latitude or longitude is NULL). * This ensures analysts can query both good records (from the main Silver pipeline table) and bad records (from the quarantine table). Why not the others? * B : Uses @dlt.expect_or_drop, which drops invalid records instead of quarantining them. This violates the requirement that quarantined data should be available. * C : Same as B, but applies expectations in bulk with expect_all_or_drop. Again, bad data is dropped, not quarantined. * D : Adds an is_quarantined flag in the same table. While it marks bad records, it does not separate them into a distinct quarantine table as required by the business use case. Therefore, Option A is the only solution aligned with Databricks documentation for quarantining invalid data into a dedicated table while keeping valid data in the main pipeline.