Questions and Answers

Question 8zcDViuerlOgVprgqdt3

Question

A data engineer has created a new database using the following command:

CREATE DATABASE IF NOT EXISTS customer360;

In which of the following locations will the customer360 database be located?

Choices

  • A: dbfs:/user/hive/database/customer360
  • B: dbfs:/user/hive/warehouse
  • C: dbfs:/user/hive/customer360
  • D: More information is needed to determine the correct response
  • E: dbfs:/user/hive/database

Question yG869SCQfkssJEBqHmFe

Question

A data engineer is attempting to drop a Spark SQL table my_table and runs the following command:

DROP TABLE IF EXISTS my_table;

After running this command, the engineer notices that the data files and metadata files have been deleted from the file system.

Which of the following describes why all of these files were deleted?

Choices

  • A: The table was managed
  • B: The table’s data was smaller than 10 GB
  • C: The table’s data was larger than 10 GB
  • D: The table was external
  • E: The table did not have a location

Question Bs9Kd3bUuNyHmHMbOpAr

Question

A data engineer that is new to using Python needs to create a Python function to add two integers together and return the sum?

Which of the following code blocks can the data engineer use to complete this task?

Choices

  • A:
  • B:
  • C:
  • D:
  • E:

Question yLBcudmi1ZWvcki3fynH

Question

In which of the following scenarios should a data engineer use the MERGE INTO command instead of the INSERT INTO command?

Choices

  • A: When the location of the data needs to be changed
  • B: When the target table is an external table
  • C: When the source table can be deleted
  • D: When the target table cannot contain duplicate records
  • E: When the source is not a Delta table

Question L4VuGHOqoQlyrN9K4msA

Question

A data engineer is working with two tables. Each of these tables is displayed below in its entirety.

//IMG//

The data engineer runs the following query to join these tables together:

//IMG//

Which of the following will be returned by the above query?

Choices

  • A:
  • B:
  • C:
  • D:
  • E: