Question 26

A Data engineer wants to run unit's tests using common Python testing frameworks on python functions defined across several Databricks notebooks currently used in production.
How can the data engineer run unit tests against function that work with data in production?
  • Question 27

    The marketing team is looking to share data in an aggregate table with the sales organization, but the field names used by the teams do not match, and a number of marketing specific fields have not been approval for the sales org.
    Which of the following solutions addresses the situation while emphasizing simplicity?
  • Question 28

    The following code has been migrated to a Databricks notebook from a legacy workload:

    The code executes successfully and provides the logically correct results, however, it takes over 20 minutes to extract and load around 1 GB of data.
    Which statement is a possible explanation for this behavior?
  • Question 29

    A data engineer is attempting to execute the following PySpark code:
    df = spark.read.table("sales")
    result = df.groupBy("region").agg(sum("revenue"))
    However, upon inspecting the execution plan and profiling the Spark job, they observe excessive data shuffling during the aggregation phase.
    Which technique should be applied to reduce shuffling during the groupBy aggregation operation?
  • Question 30

    When scheduling Structured Streaming jobs for production, which configuration automatically recovers from query failures and keeps costs low?