Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Databricks Exam Databricks-Certified-Professional-Data-Engineer Topic 3 Question 30 Discussion

Actual exam question for Databricks's Databricks-Certified-Professional-Data-Engineer exam
Question #: 30
Topic #: 3
[All Databricks-Certified-Professional-Data-Engineer 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?

Show Suggested Answer Hide Answer
Suggested Answer: A

The Databricks CLI provides a way to automate interactions with Databricks services. When dealing with pipelines, you can use the databricks pipelines get --pipeline-id command to capture the settings of an existing pipeline in JSON format. This JSON can then be modified by removing the pipeline_id to prevent conflicts and renaming the pipeline to create a new pipeline. The modified JSON file can then be used with the databricks pipelines create command to create a new pipeline with those settings.


Databricks Documentation on CLI for Pipelines: Databricks CLI - Pipelines

Contribute your Thoughts:

Hershel
23 days ago
I'm going with B as well. Seems like the cleanest solution that preserves the data and maintains the ACID properties of Delta Lake. Wouldn't want to accidentally drop and recreate the table, that would be a disaster!
upvoted 0 times
...
Alease
24 days ago
Option B makes the most sense to me. Updating the metadata in the transaction log is the most efficient way to handle a table rename without disrupting the data. I'm confident this is the right answer.
upvoted 0 times
...
Avery
1 months ago
Haha, I bet the person who wrote this question had a typo in their original code and had to use the ALTER TABLE command to fix it. Gotta love it when exam questions are relatable!
upvoted 0 times
Lucy
8 days ago
A) The table reference in the metastore is updated and no data is changed.
upvoted 0 times
...
...
Fausto
1 months ago
I think the answer is D. The table reference in the metastore is updated, and all data files are moved to the new location. Seems logical, but let me double-check the documentation.
upvoted 0 times
Otis
2 days ago
I believe it's actually C. All related files and metadata are dropped and recreated in a single ACID transaction. That's what I remember from my experience.
upvoted 0 times
...
Leigha
15 days ago
I think the answer is D. The table reference in the metastore is updated, and all data files are moved to the new location. Seems logical, but let me double-check the documentation.
upvoted 0 times
...
...
Monte
2 months ago
The correct answer is B. The table name change is recorded in the Delta transaction log. This ensures the table metadata is updated without any data loss or recreation of the underlying files.
upvoted 0 times
Antonio
1 months ago
Yes, changing the table name just updates the metadata in the Delta transaction log.
upvoted 0 times
...
Pearly
1 months ago
I thought the answer was C. Good to know it's actually B.
upvoted 0 times
...
...
India
2 months ago
That makes sense too, but I still think B is the most accurate option.
upvoted 0 times
...
Malinda
2 months ago
I disagree, I believe the answer is C because all related files and metadata are dropped and recreated in a single ACID transaction.
upvoted 0 times
...
India
2 months ago
I think the correct answer is B because the table name change is recorded in the Delta transaction log.
upvoted 0 times
...

Save Cancel