Certified Data Engineer Professional Practice Test
Certified Data Engineer Professional Practice Test practice questions, page 12 of 14, with answer review and explanations.
Question 56
Which statement describes integration testing?
Validates interactions between subsystems of your application
Requires an automated testing framework
Requires manual intervention
Validates an application use case
Validates behavior of individual elements of your application
Question 57
Which REST API call can be used to review the notebooks configured to run as tasks in a multi-task job?
/jobs/runs/list
/jobs/runs/get-output
/jobs/runs/get
/jobs/get
/jobs/list
Question 58
A Databricks job has been configured with 3 tasks, each of which is a Databricks notebook. Task A does not depend on other tasks. Tasks B and C run in parallel, with each having a serial dependency on task A. If tasks A and B complete successfully but task C fails during a scheduled run, which statement describes the resulting state?
All logic expressed in the notebook associated with tasks A and B will have been successfully completed; some operations in task C may have completed successfully.
All logic expressed in the notebook associated with tasks A and B will have been successfully completed; any changes made in task C will be rolled back due to task failure.
All logic expressed in the notebook associated with task A will have been successfully completed; tasks B and C will not commit any changes because of stage failure.
Because all tasks are managed as a dependency graph, no changes will be committed to the Lakehouse until ail tasks have successfully been completed.
Unless all tasks complete successfully, no changes will be committed to the Lakehouse; because task C failed, all commits will be rolled back automatically.
Question 59
A Delta Lake table was created with the below query: Realizing that the original query had a typographical error, the below code was executed: ALTER TABLE prod.sales_by_stor RENAME TO prod.sales_by_store Which result will occur after running the second command?
The table reference in the metastore is updated and no data is changed.
The table name change is recorded in the Delta transaction log.
All related files and metadata are dropped and recreated in a single ACID transaction.
The table reference in the metastore is updated and all data files are moved.
A new Delta transaction log Is created for the renamed table.
Question 60
The data engineering team maintains a table of aggregate statistics through batch nightly updates. This includes total sales for the previous day alongside totals and averages for a variety of time periods including the 7 previous days, year-to-date, and quarter-to-date. This table is named store_saies_summary and the schema is as follows: The table daily_store_sales contains all the information needed to update store_sales_summary. The schema for this table is: store_id INT, sales_date DATE, total_sales FLOAT If daily_store_sales is implemented as a Type 1 table and the total_sales column might be adjusted after manual data auditing, which approach is the safest to generate accurate reports in the store_sales_summary table?
Implement the appropriate aggregate logic as a batch read against the daily_store_sales table and overwrite the store_sales_summary table with each Update.
Implement the appropriate aggregate logic as a batch read against the daily_store_sales table and append new rows nightly to the store_sales_summary table.
Implement the appropriate aggregate logic as a batch read against the daily_store_sales table and use upsert logic to update results in the store_sales_summary table.
Implement the appropriate aggregate logic as a Structured Streaming read against the daily_store_sales table and use upsert logic to update results in the store_sales_summary table.
Use Structured Streaming to subscribe to the change data feed for daily_store_sales and apply changes to the aggregates in the store_sales_summary table with each update.