Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Data Engineer Professional All Questions

View all questions & answers for the Certified Data Engineer Professional exam

Exam Certified Data Engineer Professional topic 1 question 64 discussion

Actual exam question from Databricks's Certified Data Engineer Professional
Question #: 64
Topic #: 1
[All Certified Data Engineer Professional Questions]

A Delta Lake table was created with the below query:



Consider the following query:


DROP TABLE prod.sales_by_store -

If this statement is executed by a workspace admin, which result will occur?

  • A. Nothing will occur until a COMMIT command is executed.
  • B. The table will be removed from the catalog but the data will remain in storage.
  • C. The table will be removed from the catalog and the data will be deleted.
  • D. An error will occur because Delta Lake prevents the deletion of production data.
  • E. Data will be marked as deleted but still recoverable with Time Travel.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
hal2401me
Highly Voted 8 months, 3 weeks ago
Selected Answer: C
According to the exam courses answer is C, for a managed table dropped. But, as after Nov'23, UNDROP is introduced and I have test it working with UC managed tables. https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-undrop-table.html However, I don't see any official doc says UNDROP related to 'time travel'. So, be aware of the above info; in exam, watch the question carefully if it is updated.
upvoted 6 times
db22
2 months, 1 week ago
Agree that the answer is C - the question is misleading in saying it is Delta Lake table. However, it is managed table b/c there is no USING delta clause.
upvoted 1 times
...
...
Er5
Most Recent 7 months, 3 weeks ago
C. is only correct statement. Though the table can be UNDROP in 7 days https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-ddl-undrop-table E. Time Travel can retrieve versioned records but not tables. https://www.databricks.com/blog/2019/02/04/introducing-delta-time-travel-for-large-scale-data-lakes.html
upvoted 4 times
...
Curious76
9 months ago
Selected Answer: E
I think E is better answer
upvoted 2 times
...
Luv4data
11 months ago
E. Since the table is still recoverable from transaction logs.
upvoted 1 times
...
alexvno
11 months, 1 week ago
Selected Answer: C
C : AS SELECT - Managed table Will remove table and data
upvoted 2 times
...
aragorn_brego
1 year ago
Selected Answer: C
In Delta Lake, when a DROP TABLE command is executed, it removes both the metadata entry for the table from the catalog and the data in storage associated with that table. Workspace administrators typically have the necessary permissions to drop tables, and unless there are additional protections or retention policies in place, the data is not recoverable through normal operations after the table is dropped.
upvoted 3 times
...
60ties
1 year ago
I meant C is correct, not D
upvoted 3 times
...
60ties
1 year ago
Selected Answer: D
D is most correct
upvoted 1 times
...
Dileepvikram
1 year ago
Answer is C as it is a managed table
upvoted 1 times
...
lokvamsi
1 year ago
Selected Answer: C
it is a managed table
upvoted 1 times
...
lokvamsi
1 year ago
Selected Answer: A
its a as it is managed table
upvoted 1 times
...
sturcu
1 year, 1 month ago
Selected Answer: C
it is a managed table. So both table def and data will be deleted
upvoted 1 times
...
jyothsna12496
1 year, 1 month ago
Selected Answer: C
Drop will usually delete the table structure and data if its managed, hence c
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...