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 using Lakeflow Declarative Pipelines Expectations feature to track the data quality of their incoming sensor data. Periodically, sensors send bad readings that are out of range, and they are currently flagging those rows with a warning and writing them to the silver table along with the good data. They've been given a new requirement - the bad rows need to be quarantined in a separate quarantine table and no longer included in the silver table. This is the existing code for their silver table: @dlt.table @dlt.expect("valid_sensor_reading", "reading < 120") def silver_sensor_readings(): return spark.readStream.table("bronze_sensor_readings") What code will satisfy the requirements?
Correct Answer: A
Comprehensive and Detailed Explanation from Databricks Documentation: Lakeflow Declarative Pipelines (DLT) supports data quality enforcement using @dlt.expect, @dlt.expect_or_drop, and @dlt.expect_all. @dlt.expect applies a rule and records whether rows pass or fail the condition but does not drop failing rows. Instead, failing rows can be written to a quarantine table. @dlt.expect_or_drop enforces that only rows passing the condition flow downstream, dropping bad records automatically. In this case, the requirement is: Good rows (reading < 120) go to the silver table. Bad rows (reading >= 120) go to a quarantine table. Bad rows should not be included in silver. The correct implementation is Option A, where: The silver table uses @dlt.expect to validate reading < 120. These rows flow normally. The quarantine table applies an expectation for reading >= 120, ensuring bad records are captured separately. Other options are incorrect: Option B/D: These either use expect_or_drop incorrectly or apply wrong conditions, leading to dropped rows without quarantining properly. Option C: Uses expect_or_drop for both tables, which would discard bad rows instead of persisting them into a quarantine table. Thus, Option A meets the business requirement to split good and bad data streams while ensuring both are captured for auditing and processing.