Databricks Data Engineer Associate exam dumps

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

Select 2

You are tasked with loading new JSON data from a cloud storage location into an existing Delta table in Databricks. The data should be appended to the table, and you want to ensure that only files that have not already been loaded are processed. Which of the following configurations should you use with the COPY INTO command?

  1. A

    Specify the path to the cloud storage location as the source in the COPY INTO command.

  2. B

    Use the MERGE option in the COPY INTO command to avoid inserting duplicate data.

  3. C

    Enable the cloudFiles.includeExistingFiles option to process all files in the directory including previously loaded ones.

  4. D

    Provide a target Delta table as the destination in the COPY INTO command.

  5. E

    Use the cloudFiles.inferColumnTypes option to automatically infer schema for the new data.

Show answer and explanation

Correct answers: A, D

Explanation

The COPY INTO command is used to efficiently load data into Delta tables, and it can automatically track files to avoid reprocessing. To achieve the task, you must specify the source path in cloud storage and the target Delta table. The other options are either not supported by COPY INTO or irrelevant to the scenario.

  • A. Correct.

    Correct. Specifying the cloud storage path is necessary as it tells the COPY INTO command where to find the source data.

  • B. Incorrect.

    Incorrect. The COPY INTO command does not support a MERGE option. Instead, it relies on tracking file processing to avoid duplicates.

  • C. Incorrect.

    Incorrect. Enabling cloudFiles.includeExistingFiles would process all files, including those that have already been loaded, which is not desired here.

  • D. Correct.

    Correct. Providing a Delta table as the target ensures the new data is appended to the correct location.

  • E. Incorrect.

    Incorrect. The cloudFiles.inferColumnTypes option is used for schema inference in Auto Loader, not for the COPY INTO command.

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