Certified Data Analyst Associate Exam QuestionsBrowse all questions from this exam

Certified Data Analyst Associate Exam - Question 12


After running DESCRIBE EXTENDED accounts.customers;, the following was returned:

Now, a data analyst runs the following command:

DROP accounts.customers;

Which of the following describes the result of running this command?

Show Answer
Correct Answer: E

The accounts.customers table is an EXTERNAL (also known as unmanaged) table, which means that the metadata for the table is stored in the metastore, but the actual data files are stored externally (in this case, in dbfs:/stakeholders/customers). When an external table is dropped, only the table metadata is removed from the metastore, while the underlying data files remain unchanged in their original location. Therefore, the accounts.customers table will be removed from the metastore, but the underlying data files will remain untouched.

Discussion

3 comments
Sign in to comment
ADVITOption: E
Feb 13, 2024

Answer E

markizOption: B
Mar 27, 2024

Answer: B The drop statement is missing "table" so it will not drop the table will still be valid

THC1138Option: E
Apr 24, 2024

Since this is an external aka unmanaged table, dropping the table only deletes the metadata. The data itself is untouched. This is assuming that "table" is missing from "drop table" due to a transcription error. Now, if the question is written on the test as it is here, then the answer would be B, since the DROP TABLE statement is incorrect and the table would not have been dropped.