Certified Data Engineer Associate Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Associate Exam - Question 6


Which of the following code blocks will remove the rows where the value in column age is greater than 25 from the existing Delta table my_table and save the updated table?

Show Answer
Correct Answer: C

To remove rows from an existing Delta table where the value in a specific column meets a condition, you need to use the DELETE statement. In this case, using 'DELETE FROM my_table WHERE age > 25;' will delete all rows where the age is greater than 25, thereby updating the table with only the rows where the age value is 25 or less.

Discussion

16 comments
Sign in to comment
XiltroXOption: C
Apr 1, 2023

C is the correct answer

bettermakemeOption: C
Mar 25, 2024

Answer is C. Just finished exam-got 100% [Databricks Associate Exam Practice Exams] All questions came from Databricks Certified Data Engineer Associate https://www.udemy.com/share/10aEFa3@9M_uT6vrKbnl68tOK96kfy-YWitjwzLTlVCrzPs-0hGUu8fyX8V4Tn_x_y65bwLm/

kniveszOption: C
Apr 3, 2023

C es correcto

prasiosoOption: C
May 12, 2023

C is correct. use DELETE FROM to delete existing records from the table. UPDATE is used to modify existing records. SELECT only creates a view, it does not alter the table records.

DavidRouOption: C
Sep 28, 2023

C is the correct answer as the SELECT statement allows to query a table, the UPDATE statement allows to modify values in columns. If you want to remove rows that don't match a specific condition you must use DELETE

surrabhi_4Option: C
Apr 3, 2023

option c

Varma_SaraswathulaOption: C
Apr 21, 2023

C - is correct answer

nb1000Option: C
Jul 2, 2023

C is correct

vctrhugoOption: C
Sep 3, 2023

C. DELETE FROM my_table WHERE age > 25;

ArindamNathOption: C
Sep 12, 2023

C is correct

KalavathiPOption: C
Sep 26, 2023

C is correct

VijayKulaOption: C
Oct 9, 2023

Answer is C

SerGreyOption: C
Dec 24, 2023

C. DELETE FROM my_table WHERE age > 25;

ItmmaOption: C
Mar 19, 2024

C is correct

SvenganceOption: A
Apr 18, 2024

there is not delete history option just the vacuum with its parameters of time retention.

mascarenhaslucasOption: C
Jun 9, 2024

The answer is C!