Databricks Data Engineer Associate exam dumps

Databricks Data Engineer Associate practice question 282 of 532

Databricks Certified Data Engineer Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Data Engineer Associate Question 282

Single answer

You are working with a Delta table in Databricks named 'sales_data'. A recent update introduced incorrect data into the table. You decide to roll back the table to a previous valid version. Which command should you use to achieve this?

  1. A

    RESTORE TABLE sales_data TO VERSION AS OF 5

  2. B

    ROLLBACK TABLE sales_data TO VERSION 5

  3. C

    ALTER TABLE sales_data RESET TO VERSION 5

  4. D

    SET TABLE sales_data VERSION 5

Show answer and explanation

Correct answer: A

Explanation

In Databricks, you can use the 'RESTORE TABLE' command to revert a Delta table to a specific version by specifying the version number using 'TO VERSION AS OF'. This is a common operation when you need to undo incorrect changes or recover previous table states.

  • A. Correct.

    This is the correct syntax for rolling back a Delta table to a previous version. The 'RESTORE TABLE' command allows you to revert the table to a specific version using 'TO VERSION AS OF'.

  • B. Incorrect.

    This is incorrect because 'ROLLBACK TABLE' is not a valid Databricks SQL or Delta Lake command.

  • C. Incorrect.

    This is incorrect because 'ALTER TABLE ... RESET TO VERSION' is not a valid command for Delta tables.

  • D. Incorrect.

    This is incorrect because 'SET TABLE ... VERSION' is not a valid Databricks or Delta Lake command.

Timed practice exam

Take a Databricks Data Engineer Associate practice test under exam conditions

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

Start timed exam