Databricks Data Engineer Associate exam dumps

Databricks Data Engineer Associate practice question 256 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 256

Single answer

A data engineer is tasked with creating a managed table in Databricks to store customer transaction data. The table should automatically manage the storage location and metadata. Which of the following SQL commands correctly creates a managed table in Databricks?

  1. A

    CREATE TABLE customer_transactions (id INT, amount DOUBLE) USING PARQUET

  2. B

    CREATE TABLE customer_transactions (id INT, amount DOUBLE) LOCATION '/mnt/data/transactions/'

  3. C

    CREATE EXTERNAL TABLE customer_transactions (id INT, amount DOUBLE) USING DELTA LOCATION '/mnt/data/transactions/'

  4. D

    CREATE TABLE customer_transactions (id INT, amount DOUBLE) OPTIONS ('path' '/mnt/data/transactions/')

Show answer and explanation

Correct answer: A

Explanation

Managed tables in Databricks are created using the CREATE TABLE command without specifying an external location. Databricks automatically handles the storage and metadata for managed tables. Including a LOCATION or OPTIONS('path' ...) parameter creates an external table, where the user is responsible for managing the underlying storage.

  • A. Correct.

    This is correct. In Databricks, using the CREATE TABLE statement without specifying an external location or options creates a managed table where Databricks manages both the metadata and data storage.

  • B. Incorrect.

    This is incorrect because specifying a LOCATION in the CREATE TABLE command creates an external table, not a managed table.

  • C. Incorrect.

    This is incorrect because the CREATE EXTERNAL TABLE syntax explicitly creates an external table, not a managed table.

  • D. Incorrect.

    This is incorrect because specifying the OPTIONS('path' ...) parameter indicates an external path, which makes the table an external table rather than a managed table.

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