Databricks Certified Data Engineer Professional · Free Practice Question Medium

Question 9

A data engineer has added a CHECK constraint to the sales table using the following command:



In addition, they have added a comment on the item_date column using the following command:



Which of the following commands allows the data engineer to verify that both the constraint and the column comment have been successfully added on the table ?

  • A

    SHOW TBLPROPERTIES sales

  • B

    DESCRIBE TABLE sales

  • C

    DESCRIBE DETAIL sales

  • D

    DESCRIBE EXTENDED sales

  • E

    SHOW TABLES sales

Reveal correct answer

Correct answer: D

Explanation

DESCRIBE TABLE EXTENDED or simply DESCRIBE EXTENDED allows to show the added tables constraints in the ‘Table Properties’ field. It shows both the name and the actual condition of the check constraints.


In addition, DESCRIBE EXTENDED allows to show the comments on each column, and the comment on the table itself.



Reference:


Study materials from our exam preparation course on Udemy:

Hands-on


Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need