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 designing a Lakeflow Declarative Pipeline to process streaming order data. The pipeline uses Auto Loader to ingest data and must enforce data quality by ensuring customer_id and amount are greater than zero. Invalid records should be dropped. Which Lakeflow Declarative Pipelines configurations implement this requirement using Python?
Correct Answer: A
Lakeflow Declarative Pipelines (LDP), formerly Delta Live Tables (DLT), supports enforcing data quality using expectations . Expectations can either: * Track violations (expect) # records that do not meet conditions are flagged but still included in the pipeline. * Drop violations (expect_or_drop) # records that do not meet conditions are excluded from downstream tables. * Fail pipeline on violations (expect_or_fail) # records that fail conditions stop the pipeline. In this scenario, the requirement explicitly states that invalid records (where customer_id is null or amount # 0) must be dropped . According to the official documentation, the correct method is .expect_or_drop( " expectation_name " , " SQL_predicate " ) applied on the streaming input. * Option A is correct: It uses .expect_or_drop directly within the transformation chain for both rules, ensuring records that fail are removed before writing to the silver table. * Option B incorrectly uses @dlt.expect decorators, which only track violations but do not drop invalid rows. * Option C uses .expect, which also only flags rows, not drop them. * Option D uses @dlt.expect_or_drop decorator syntax, which is not supported in Python API; expect_or_drop must be applied as a method on the DataFrame, not as a decorator. Therefore, the correct solution is Option A , which ensures compliance by enforcing data quality and dropping invalid rows programmatically during ingestion. Reference: Databricks Lakeflow Declarative Pipelines Documentation - Expectations (expect, expect_or_drop, expect_or_fail)