DatabricksProfessional levelPage 2 of 4

Databricks Data Engineer Professional exam dumps: questions 101 to 200 of 312

Page 2 of the free Databricks Data Engineer Professional question bank for the Databricks Certified Data Engineer Professional exam. Questions 101 to 200 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated January 2025

Free Databricks Data Engineer Professional practice questions

Questions 101 to 105 of 312

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

Databricks Data Engineer Professional Question 101

Select 3

You are working on a Delta Lake table that receives frequent updates and deletions. Previously, your data pipeline processed incremental data using a normal Structured Streaming read. To optimize your pipeline, you want to enable Change Data Feed (CDF) on the table and redesign your data processing steps to handle CDC (Change Data Capture) output. Which of the following steps should you take to achieve this?

  1. A

    Enable Change Data Feed (CDF) on the Delta Lake table by setting the table property delta.enableChangeDataFeed to true.

  2. B

    Use the input_file_name() function to identify changed rows in the Delta table.

  3. C

    Replace your Structured Streaming read with a query on the _change_type column available in the CDF output to identify inserted, updated, and deleted rows.

  4. D

    Query the CDC output using the table_changes function with a specific start and end version or timestamp.

  5. E

    Disable schema evolution on the Delta table to prevent schema conflicts when processing CDC data.

Show answer and explanation

Correct answers: A, C, D

Explanation

To redesign your data pipeline to process CDC output after enabling Change Data Feed (CDF) on a Delta Lake table, you must enable CDF by setting the appropriate table property, query the CDC data using the table_changes function, and use the _change_type column to identify the type of changes (insert, update, delete). Other options, such as using input_file_name() or disabling schema evolution, are unrelated to CDC processing and do not contribute to solving the problem.

  • A. Correct.

    This is correct. To enable Change Data Feed on a Delta Lake table, the table property delta.enableChangeDataFeed must be set to true either during table creation or by altering the table properties.

  • B. Incorrect.

    This is incorrect. The input_file_name() function identifies the file origin of a row but does not directly support CDC processing or detect changes like inserts, updates, and deletes.

  • C. Correct.

    This is correct. After enabling CDF, the _change_type column in the CDF output can be used to filter rows based on their change type (e.g., inserts, updates, deletes).

  • D. Correct.

    This is correct. The table_changes function allows you to query the CDC output for a range of versions or timestamps to fetch only the changed data.

  • E. Incorrect.

    This is incorrect. Disabling schema evolution is not related to processing CDC data and could introduce limitations when dealing with schema changes in your pipeline.

Databricks Data Engineer Professional Question 102

Select 3

You are building a data pipeline on Databricks to process change data capture (CDC) data from a Delta Lake table. Previously, the pipeline used incremental reads with Structured Streaming. However, due to a new requirement to track record-level changes (inserts, updates, and deletes), you decide to enable Change Data Feed (CDF) on the Delta table and redesign your processing steps. After enabling CDF on the Delta table, which steps should you implement to correctly process the CDC output?

  1. A

    Use the table_changes function to fetch CDC records and filter by the required version range.

  2. B

    Enable CDF by setting the delta.enableChangeDataFeed property to true for the Delta table.

  3. C

    Use the _change_type column in the CDC output to handle inserts, updates, and deletes appropriately.

  4. D

    Continue using the default Structured Streaming read without any modifications.

  5. E

    Set up a Delta Live Table to automatically process CDC changes without enabling CDF explicitly.

Show answer and explanation

Correct answers: A, B, C

Explanation

To process change data capture (CDC) data from a Delta Lake table, you must enable Change Data Feed (CDF) by setting the delta.enableChangeDataFeed property on the table. Once CDF is enabled, you can use the table_changes function to fetch CDC records for a specific version range. The _change_type column in the CDC output provides the type of change (insert, update, delete), which is critical to handle the data correctly. The default Structured Streaming read does not support CDC, and additional configuration is required to ensure the pipeline processes CDC output.

  • A. Correct.

    Correct: The table_changes function is a key feature of Delta Lake with CDF enabled and must be used to fetch the CDC output for a given version range.

  • B. Correct.

    Correct: Enabling CDF requires setting the delta.enableChangeDataFeed property to true at the table level before CDC data can be generated.

  • C. Correct.

    Correct: The _change_type column in the CDC output is essential to distinguish between inserts, updates, and deletes, and is a critical part of processing CDC data.

  • D. Incorrect.

    Incorrect: The default Structured Streaming read does not process CDC data with record-level change information. You need to use the CDF features to explicitly handle these changes.

  • E. Incorrect.

    Incorrect: Delta Live Tables can process Delta tables, but enabling CDF explicitly is still required to capture record-level changes for your pipeline.

Databricks Data Engineer Professional Question 103

Select 3

You are working on a Delta Lake table that tracks customer orders. The table is frequently updated, and sometimes rows are deleted. You need to propagate these deletes to a downstream system that consumes this table using Change Data Feed (CDF). Which of the following steps are required to ensure that deletes are correctly propagated to the downstream system?

  1. A

    Enable Change Data Feed (CDF) on the Delta table using table properties.

  2. B

    Query the _change_type column in the Change Data Feed to identify deleted rows.

  3. C

    Configure the downstream system to accept updates but ignore deletes.

  4. D

    When reading the Change Data Feed, filter rows where _change_type is 'delete'.

  5. E

    Manually generate delete events in the downstream system based on the Delta table state.

Show answer and explanation

Correct answers: A, B, D

Explanation

To propagate deletes using Change Data Feed (CDF), you must first enable CDF on the Delta table. Then, by querying the _change_type column, you can identify deleted rows. You must explicitly filter for rows where _change_type is 'delete' to ensure those deletions are handled correctly in the downstream system. CDF automates the process of capturing changes, so manual generation of delete events is unnecessary.

  • A. Correct.

    This is correct. Change Data Feed must be enabled on the Delta table to capture row-level changes, including deletes.

  • B. Correct.

    This is correct. The _change_type column in the Change Data Feed helps identify the type of change, such as 'insert', 'update', or 'delete'.

  • C. Incorrect.

    This is incorrect. To propagate deletes, the downstream system must be configured to process deletes rather than ignoring them.

  • D. Correct.

    This is correct. Filtering for rows where _change_type is 'delete' ensures that the deleted rows are correctly identified and propagated to the downstream system.

  • E. Incorrect.

    This is incorrect. Manually generating delete events is not required when using Change Data Feed, as CDF automatically captures and propagates delete operations.

Databricks Data Engineer Professional Question 104

Single answer

You are working on a data engineering project where a source table contains customer data. The source table is being updated using Change Data Feed (CDF), and occasionally, records are deleted from the source table. You need to ensure that these deletions are propagated to a target Delta table that is used for downstream analytics. What is the best approach to implement this functionality?

  1. A

    Use the 'MERGE INTO' operation with a condition to match deleted records using the '_change_type' column from the source CDF data.

  2. B

    Perform an 'INSERT INTO' operation from the source CDF data into the target Delta table to capture deletions.

  3. C

    Filter the CDF data for rows where '_change_type' is 'delete' and use the 'DELETE' statement on the target Delta table.

  4. D

    Replace the entire target Delta table with the source Delta table to ensure deletions are reflected in the target.

Show answer and explanation

Correct answer: A

Explanation

Change Data Feed (CDF) provides the '_change_type' column, which can be used to determine if a record was inserted, updated, or deleted. The 'MERGE INTO' operation is specifically designed to handle all these scenarios in a single atomic operation, making it the most efficient and reliable way to propagate deletes (and other changes) from a source table to a target Delta table. Other approaches either lack the ability to handle all change types or are inefficient.

  • A. Correct.

    Correct: The 'MERGE INTO' operation is the most appropriate way to propagate deletions because it allows you to handle updates, inserts, and deletes in a single transaction. By using the '_change_type' column provided by CDF, you can identify deleted records and apply the necessary changes to the target table.

  • B. Incorrect.

    Incorrect: 'INSERT INTO' only appends data to the target table and does not handle deletions. This approach would not propagate deletions from the source table.

  • C. Incorrect.

    Incorrect: While filtering the CDF data for '_change_type' as 'delete' is correct, the 'DELETE' statement alone cannot handle other changes (e.g., updates or inserts) and is not optimal for comprehensive CDF handling.

  • D. Incorrect.

    Incorrect: Replacing the entire target Delta table with the source table is inefficient and does not leverage the benefits of CDF for incremental updates and deletes. This approach is not recommended in a production setting.

Databricks Data Engineer Professional Question 105

Select 3

You are managing a Delta Lake table in Databricks that tracks customer orders. The table is configured with Change Data Feed (CDF) enabled. Your team is building a downstream application that requires both new and updated records while also ensuring that deleted records are processed and removed correctly from the downstream system. Which of the following steps should you take to propagate the deletes to the downstream system using CDF?

  1. A

    Query the Change Data Feed using the readChangeFeed API and filter for rows where the _change_type column is 'delete'.

  2. B

    Update the downstream target system by removing rows matching the primary key of records with _change_type as 'delete'.

  3. C

    Query the Delta table directly using the read API and filter for rows where the _change_type column is 'delete'.

  4. D

    Ensure that the downstream system supports processing of delete operations based on primary keys.

  5. E

    Write the delete records back to the Delta Lake table to mark them as processed.

Show answer and explanation

Correct answers: A, B, D

Explanation

To propagate deletes using Delta Lake's Change Data Feed (CDF), you should query the table using the readChangeFeed API to filter rows where _change_type is 'delete'. These rows should then be processed by removing them from the downstream system based on their primary keys. Additionally, the downstream system must support handling deletes to ensure proper propagation.

  • A. Correct.

    Correct. The readChangeFeed API is the correct method to query the Change Data Feed and filter for deletes using the _change_type column.

  • B. Correct.

    Correct. To propagate deletes, the downstream system needs to remove records matching the primary key of deleted rows.

  • C. Incorrect.

    Incorrect. The read API does not provide access to change data feed-specific metadata like _change_type. This makes it unsuitable for identifying deletes.

  • D. Correct.

    Correct. The downstream system must handle deletions properly by processing the primary keys of deleted records.

  • E. Incorrect.

    Incorrect. Writing delete records back to the Delta Lake table is unnecessary and does not propagate deletes to downstream systems.

Timed practice exam

Take a Databricks Data Engineer Professional practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

Databricks Data Engineer Professional practice questions 101 to 200 of 312

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 4 pages of up to 100 questions.

  1. 101.You are working on a Delta Lake table that receives frequent updates and deletions. Previously, your data...
  2. 102.You are building a data pipeline on Databricks to process change data capture (CDC) data from a Delta Lake...
  3. 103.You are working on a Delta Lake table that tracks customer orders. The table is frequently updated, and...
  4. 104.You are working on a data engineering project where a source table contains customer data. The source table...
  5. 105.You are managing a Delta Lake table in Databricks that tracks customer orders. The table is configured with...
  6. 106.You are a data engineer working on a Delta Lake table that logs user activity. The table is being used...
  7. 107.You are working on a data pipeline in Databricks using Delta Lake. Your source system generates Change Data...
  8. 108.A company maintains a Delta Lake table that stores customer data. Due to GDPR regulations, customers can...
  9. 109.You are working on a Databricks project where your team needs to maintain a large dataset of customer...
  10. 110.You are working with a large dataset of IoT sensor readings stored in a Delta table. The dataset is...
  11. 111.You are working on a Databricks project where a Delta table is used to store user activity logs. The table...
  12. 112.A data engineering team is tasked with managing a Delta Lake table containing transaction data for a...
  13. 113.You are working with a large Delta table in Databricks that stores logs from IoT devices. The table is...
  14. 114.A data engineering team is working with a large Delta Lake table containing event logs generated by IoT...
  15. 115.You are working on a Spark job that processes large amounts of data stored in a distributed file system. Upon...
  16. 116.A data engineering team is running a Spark job on Databricks to process a large dataset stored in a...
  17. 117.A data engineering team is processing daily log files in a Databricks environment using Spark. The logs are...
  18. 118.You are tasked with optimizing a Spark job that processes a large dataset stored in a cloud data lake. During...
  19. 119.A data engineering team is running a Spark job on a Delta table containing billions of records, but they...
  20. 120.A data engineering team is running a Spark job to process a large dataset stored in a distributed file...
  21. 121.You are designing a data model in Databricks for a retail company that tracks customer orders. The company...
  22. 122.You are designing a data model for a Databricks Lakehouse solution. The data includes sales transactions from...
  23. 123.A data engineering team is tasked with creating a dimensional model in Databricks for a retail company. The...
  24. 124.A data engineering team is designing a Lakehouse architecture for a retail company. They are using Databricks...
  25. 125.You are tasked with designing a data model in Databricks for a retail company. The company has historical...
  26. 126.A data engineering team is tasked with designing a Delta Lake schema for an e-commerce application. The...
  27. 127.During the promotion of data from the Bronze to Silver layer in a Databricks Lakehouse architecture, which of...
  28. 128.You are working on a data engineering pipeline in Databricks, where raw IoT sensor data is ingested into a...
  29. 129.A data engineering team is tasked with promoting data from the Bronze layer to the Silver layer in a Delta...
  30. 130.As a data engineer, you are tasked with processing raw IoT sensor data stored in the bronze layer of your...
  31. 131.While promoting data from the bronze to the silver layer in a Databricks Lakehouse architecture, what is the...
  32. 132.You are working on a data pipeline in Databricks that involves promoting raw IoT sensor data from the bronze...
  33. 133.A data engineering team is working on a Lakehouse architecture to manage a large dataset stored in Delta...
  34. 134.You are managing a Delta Lake table in a Lakehouse architecture that requires regular updates and deletes to...
  35. 135.A data engineering team is implementing a Lakehouse architecture to manage a Delta table where data is...
  36. 136.How does the Change Data Feed (CDF) in Delta Lake address past challenges in propagating updates and deletes...
  37. 137.A data engineering team has been tasked with implementing a Lakehouse architecture for their organization's...
  38. 138.A data engineering team is tasked with building a Lakehouse-based pipeline that processes transactional data...
  39. 139.You are working on a Delta Lake table named salesdata and need to create a clone of this table for testing...
  40. 140.You are working on a Delta Lake table named 'transactions' and need to create a clone of this table for...
  41. 141.A data engineering team is working on a Delta Lake table named 'transactions' in their production...
  42. 142.You are working on a Databricks project where you have a Delta Lake table named 'salesdata'. You need to...
  43. 143.A data engineering team is using Delta Lake to manage their data lake. They want to use Delta Lake cloning to...
  44. 144.You are managing a Delta Lake table in Databricks called 'salesdata'. You need to create a clone of the table...
  45. 145.You are designing a bronze table to ingest streaming data from multiple sources, such as IoT devices, web...
  46. 146.You are designing a multiplex bronze table to support multiple streaming sources in a Delta Lake...
  47. 147.You are designing a multiplex bronze table to handle multiple streaming workloads in a Databricks Lakehouse...
  48. 148.You are tasked with designing a bronze table in Databricks to handle streaming data from multiple sources...
  49. 149.You are designing a multiplex bronze table to handle production-grade streaming workloads in Databricks....
  50. 150.You are tasked with designing a multiplex bronze table in Databricks to process streaming data from multiple...
  51. 151.You are tasked with designing a streaming pipeline in Databricks to process data from multiple bronze tables...
  52. 152.You are designing a real-time data pipeline in Databricks to process streaming data from multiple bronze...
  53. 153.You are tasked with designing a streaming pipeline that reads data from multiple bronze tables in a...
  54. 154.You are tasked with implementing a streaming pipeline in Databricks that consumes data from multiple bronze...
  55. 155.You are designing a data pipeline in Databricks to process streaming data from multiple multiplex bronze...
  56. 156.You are building a streaming pipeline in Databricks to process data from multiple bronze tables into a silver...
  57. 157.You are tasked with designing a data pipeline in Databricks to process data from a bronze table to a silver...
  58. 158.You are tasked with designing a pipeline in Databricks to process raw data from a bronze table into a clean,...
  59. 159.You are tasked with transforming a streaming dataset from the bronze layer to the silver layer in Databricks....
  60. 160.You are tasked with designing a data pipeline in Databricks to process data from a bronze table to a silver...
  61. 161.You are tasked with designing a data pipeline in Databricks to process IoT sensor data from a bronze table to...
  62. 162.You are tasked with designing a data pipeline in Databricks to process data from a bronze table into a silver...
  63. 163.A data engineering team is working on a Delta Lake pipeline to ensure data quality for a customer order...
  64. 164.A data engineering team is working on a Delta Lake table to store customer transactions. They need to enforce...
  65. 165.You are designing a Delta Lake pipeline to process sensitive customer data. Ensuring data quality is...
  66. 166.You are designing a Delta Lake pipeline to process customer transaction data. To ensure data quality, you...
  67. 167.You are designing a Delta Lake pipeline to process customer transaction data. The team requires strict...
  68. 168.A data engineering team is designing a Delta Lake pipeline to enforce data quality for a large transactional...
  69. 169.You are designing a data engineering solution in Databricks for a retail company. Their data pipeline ingests...
  70. 170.You are designing a data pipeline in Databricks to process customer orders and their associated items. Due to...
  71. 171.You are designing a data pipeline in Databricks that ingests customer and order data into Delta tables. Since...
  72. 172.You are designing a data engineering solution in Databricks to manage customer orders and their associated...
  73. 173.You are designing a data pipeline in Databricks to handle transactional data for an e-commerce platform. The...
  74. 174.You are designing a Delta Lake-based data warehouse in Databricks. Your architecture includes a fact table...
  75. 175.A data engineering team is working with Delta Lake tables and wants to ensure that only valid data is written...
  76. 176.You are designing a Delta Lake table to store sales transaction data. To ensure data integrity, you want to...
  77. 177.You are tasked with ensuring data quality in a Delta Lake table named 'orders'. Specifically, you want to...
  78. 178.You are working on a Delta Lake table to store customer orders. To ensure data integrity, you want to prevent...
  79. 179.You are working on a Delta Lake table in Databricks that stores customer transaction data. To ensure data...
  80. 180.You are working on a Delta Lake table that stores sales data, and you want to prevent invalid data from being...
  81. 181.A data engineering team is designing a normalized data model for a retail application in Databricks. The team...
  82. 182.You are tasked with designing a data model in Databricks for a customer-facing application. The model needs...
  83. 183.You are designing a Databricks pipeline to process customer transaction data. The source data contains a...
  84. 184.You are designing a data pipeline in Databricks to process customer order data. The pipeline must join the...
  85. 185.A data engineering team is designing a normalized data model for a retail application in Databricks. They...
  86. 186.You are designing a data pipeline in Databricks to process customer orders. The pipeline must include a...
  87. 187.You are implementing a Slowly Changing Dimension (SCD) Type 2 table in Delta Lake to track historical changes...
  88. 188.You are implementing a Slowly Changing Dimension (SCD) Type 2 table using Delta Lake to track historical...
  89. 189.You are implementing a Slowly Changing Dimension (SCD) Type 2 table using Delta Lake for a customer data...
  90. 190.You are tasked with implementing a Slowly Changing Dimension (SCD) Type 2 table in Delta Lake. The table is...
  91. 191.You are tasked with implementing a Slowly Changing Dimension (SCD) Type 2 table to maintain historical...
  92. 192.You are tasked with implementing a Slowly Changing Dimension (SCD) Type 2 table using Delta Lake to track...
  93. 193.You are tasked with implementing a Slowly Changing Dimension (SCD) table to track changes in customer data...
  94. 194.You are tasked with designing a data pipeline in Databricks to handle Slowly Changing Dimensions (SCD) for a...
  95. 195.You are designing a data pipeline in Databricks to manage customer data changes. The requirements are as...
  96. 196.You are tasked with implementing a customer dimension table in Delta Lake to support historical and current...
  97. 197.You are tasked with implementing a data pipeline to manage a customer dimension table in Databricks. The...
  98. 198.You are tasked with implementing a Slowly Changing Dimension (SCD) Type 2 table for a customer data lakehouse...
  99. 199.A data engineering team is tasked with implementing fine-grained access control for a Delta table in...
  100. 200.You are managing a Databricks workspace for a financial institution and need to ensure compliance with...