Questions and Answers

Question uLTOOBrAK7dQp66XuHUr

Question

A data engineer needs to create a table in Databricks using data from a CSV file at location /path/to/csv.

They run the following command:

//IMG//

Which of the following lines of code fills in the above blank to successfully complete the task?

Choices

  • A: FROM “path/to/csv”
  • B: USING CSV
  • C: FROM CSV
  • D: USING DELTA

Question vumIc5QsMCd9UIUTOlLR

Question

What is a benefit of creating an external table from Parquet rather than CSV when using a CREATE TABLE AS SELECT statement?

Choices

  • A: Parquet files can be partitioned
  • B: Parquet files will become Delta tables
  • C: Parquet files have a well-defined schema
  • D: Parquet files have the ability to be optimized

Question YnGpOY5zOYpCaLyk23o4

Question

A data engineer has left the organization. The data team needs to transfer ownership of the data engineer’s Delta tables to a new data engineer. The new data engineer is the lead engineer on the data team. Assuming the original data engineer no longer has access, which of the following individuals must be the one to transfer ownership of the Delta tables in Data Explorer?

Choices

  • A: Databricks account representative
  • B: This transfer is not possible
  • C: Workspace administrator
  • D: New lead data engineer
  • E: Original data engineer

Question atJgDxkeOF0ABAgxTScG

Question

Which SQL keyword can be used to convert a table from a long format to a wide format?

Choices

  • A: TRANSFORM
  • B: PIVOT
  • C: SUM
  • D: CONVERT

Question D85qbVRf7ccjQB0Qr43C

Question

A data engineer has a Python variable table_name that they would like to use in a SQL query. They want to construct a Python code block that will run the query using table_name.

They have the following incomplete code block:

____(f”SELECT customer_id, spend FROM {table_name}”)

What can be used to fill in the blank to successfully complete the task?

Choices

  • A: spark.delta.sql
  • B: spark.sql
  • C: spark.table
  • D: dbutils.sql