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 59 discussion

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

A Delta Lake table was created with the below query:

Realizing that the original query had a typographical error, the below code was executed:
ALTER TABLE prod.sales_by_stor RENAME TO prod.sales_by_store
Which result will occur after running the second command?

  • A. The table reference in the metastore is updated and no data is changed.
  • B. The table name change is recorded in the Delta transaction log.
  • C. All related files and metadata are dropped and recreated in a single ACID transaction.
  • D. The table reference in the metastore is updated and all data files are moved.
  • E. A new Delta transaction log Is created for the renamed table.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hal2401me
Highly Voted 8 months, 3 weeks ago
Selected Answer: A
did a test. No data is changed. dir & filename not changed. the rename is not recorded in transition log neither.
upvoted 6 times
...
Tamele001
Most Recent 8 months, 3 weeks ago
B is the correct answer. When you alter a table name in Delta Lake, the change is logged in the transaction log that Delta Lake uses to maintain a versioned history of all changes to the table. This is how Delta Lake maintains ACID properties and ensures a consistent view of the data. The transaction log is key to supporting features like time travel, auditing, and rollbacks in Delta Lake. The metadata and the actual data remain intact, and the reference to the table in the metastore is updated to reflect the new name.
upvoted 2 times
...
adenis
10 months ago
Selected Answer: A
A is Correct
upvoted 3 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 ...