Databricks Data Engineer Associate exam dumps

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

Single answer

A data engineer is tasked with creating a managed Delta table in Databricks to store customer transactions. The data source is located in a Delta format in an external cloud storage location. The engineer wants to ensure that the table is fully managed by Databricks. Which of the following SQL commands should they use to create the managed table?

  1. A

    CREATE TABLE customer_transactions USING DELTA LOCATION '/mnt/external_storage/customer_data';

  2. B

    CREATE TABLE customer_transactions AS SELECT * FROM delta./mnt/external_storage/customer_data;

  3. C

    CREATE OR REPLACE TABLE customer_transactions USING DELTA LOCATION '/mnt/external_storage/customer_data';

  4. D

    CREATE TABLE customer_transactions (id INT, amount DOUBLE) USING DELTA;

Show answer and explanation

Correct answer: D

Explanation

To create a managed table in Databricks, the table must be stored in the Databricks-managed storage. This is achieved by not specifying the LOCATION clause in the CREATE TABLE statement. The correct command is the one that creates the table schema explicitly without referencing external data or a specific storage location.

  • A. Incorrect.

    This command creates an unmanaged table because it explicitly specifies the LOCATION of the data. The table will not be managed by Databricks.

  • B. Incorrect.

    This command creates a managed table, but the data is directly read from the external location and stored in the default Databricks-managed location. However, the question specifies that the table should be created from scratch, not using existing external data.

  • C. Incorrect.

    This command attempts to create a table but specifies an external LOCATION, which makes it unmanaged. Managed tables do not allow specifying external locations.

  • D. Correct.

    This command creates a fully managed Delta table in Databricks, as it does not specify any external location and uses the default Databricks-managed storage for the 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