Databricks Data Engineer Associate exam dumps

Databricks Data Engineer Associate practice question 321 of 532

Databricks Certified Data Engineer Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Data Engineer Associate Question 321

Single answer

You are working on a Databricks Lakehouse project where you need to document the purpose of a table called sales_data. How can you add a comment to the table to describe its purpose?

  1. A

    ALTER TABLE sales_data SET COMMENT 'This table stores sales transactions data.'

  2. B

    COMMENT ON TABLE sales_data IS 'This table stores sales transactions data.'

  3. C

    ADD COMMENT TO TABLE sales_data 'This table stores sales transactions data.'

  4. D

    UPDATE TABLE sales_data COMMENT 'This table stores sales transactions data.'

Show answer and explanation

Correct answer: A

Explanation

In Databricks, the correct way to add a comment to a table is by using the ALTER TABLE ... SET COMMENT statement. The other options either use incorrect syntax or commands that are not applicable in Databricks SQL.

  • A. Correct.

    This is the correct syntax in Databricks SQL and Delta Lake for adding a comment to a table.

  • B. Incorrect.

    This syntax is used in some SQL dialects like PostgreSQL but is not valid in Databricks.

  • C. Incorrect.

    This syntax is invalid as it does not follow the correct command structure for adding a comment to a table in Databricks.

  • D. Incorrect.

    This syntax is incorrect because the UPDATE command is not used for adding comments to tables in Databricks.

Timed practice exam

Take a Databricks Data Engineer Associate practice test under exam conditions

45 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam