Certified Data Engineer Associate Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Associate Exam - Question 55


A data architect has determined that a table of the following format is necessary:

Which of the following code blocks uses SQL DDL commands to create an empty Delta table in the above format regardless of whether a table already exists with this name?

Show Answer
Correct Answer: E

The correct command to create an empty Delta table in the specified format, regardless of whether a table with the same name already exists, is: CREATE OR REPLACE TABLE table_name (employeeId STRING, startDate DATE, avgRating FLOAT). This command ensures the table is created with the specified columns and data types, and it will replace any existing table with the same name.

Discussion

5 comments
Sign in to comment
meow_akkOption: E
Oct 22, 2023

E is correct you dont need to specify Delta as its the default storage format for tables.

bartftoOption: E
Jan 9, 2024

E. correct

azure_bimonsterOption: E
Jan 20, 2024

E is correct option

StemixOption: E
Jan 26, 2024

A and E have both correct syntax, but the question mentioned "regardless of whether a table already exists with this name". Hence the correct answer is E

benni_aleOption: E
Apr 29, 2024

E is correct