Databricks Certified Data Engineer - Associate

Databricks Certified Data Engineer - Associate

Get started today

Ultimate access to all questions.


A data analyst wants to notify his team via email when the query loading aggregated sales data into the reporting table contains duplicate records, including the count of such duplicates. Which method should he use?





Explanation:

Alerts are designed to notify users when specific conditions are met by a query's results. For custom notifications, especially those requiring detailed information like the count of duplicate records, a custom template is necessary. The QUERY_RESULT_ROWS variable is specifically designed to include details about the rows returned by the query, making it the correct choice for this scenario. Custom templates allow for the inclusion of dynamic data through built-in variables and support HTML formatting for better presentation of the alert details.