Question 1

A nightly job ingests data into a Delta Lake table using the following code:

The next step in the pipeline requires a function that returns an object that can be used to manipulate new records that have not yet been processed to the next table in the pipeline.
Which code snippet completes this function definition?
def new_records():
  • Question 2

    You noticed a colleague is manually copying the data to the backup folder prior to running an up-date command, incase if the update command did not provide the expected outcome so he can use the backup copy to replace table, which Delta Lake feature would you recommend simplifying the process?
  • Question 3

    A data engineer needs to dynamically create a table name string using three Python varia-bles: region, store,
    and year. An example of a table name is below when region = "nyc", store = "100", and year = "2021":
    nyc100_sales_2021
    Which of the following commands should the data engineer use to construct the table name in Py-thon?
  • Question 4

    The data governance team is reviewing code used for deleting records for compliance with GDPR. They note the following logic is used to delete records from the Delta Lake table namedusers.

    Assuming thatuser_idis a unique identifying key and thatdelete_requestscontains all users that have requested deletion, which statement describes whether successfully executing the above logic guarantees that the records to be deleted are no longer accessible and why?
  • Question 5

    The downstream consumers of a Delta Lake table have been complaining about data quality issues impacting performance in their applications. Specifically, they have complained that invalid latitude and longitude values in the activity_details table have been breaking their ability to use other geolocation processes.
    A junior engineer has written the following code to add CHECK constraints to the Delta Lake table:

    A senior engineer has confirmed the above logic is correct and the valid ranges for latitude and longitude are provided, but the code fails when executed.
    Which statement explains the cause of this failure?