Questions and Answers

Question K8DWLXBn7vvwMZSuEz8N

Question

A data architect has determined that a table of the following format is necessary:

//IMG//

Which of the following code blocks uses SQL DDL commands to create an empty Delta table in the above format regardless of whether a table already exists with this name?

Choices

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

Question K4c2qewORCPg6klLcuze

Question

A data engineer has a Python notebook in Databricks, but they need to use SQL to accomplish a specific task within a cell. They still want all of the other cells to use Python without making any changes to those cells.

Which of the following describes how the data engineer can use SQL within a cell of their Python notebook?

Choices

  • A: It is not possible to use SQL in a Python notebook
  • B: They can attach the cell to a SQL endpoint rather than a Databricks cluster
  • C: They can simply write SQL syntax in the cell
  • D: They can add %sql to the first line of the cell
  • E: They can change the default language of the notebook to SQL

Question OmuUP1e2bQReHd3lMgId

Question

Which of the following SQL keywords can be used to convert a table from a long format to a wide format?

Choices

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

Question JJoRkcfWTPzHbGJYAyL7

Question

Which of the following describes 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: CREATE TABLE AS SELECT statements cannot be used on files
  • C: Parquet files have a well-defined schema
  • D: Parquet files have the ability to be optimized
  • E: Parquet files will become Delta tables

Question uS5NDHw9HyR980QFix1C

Question

A data engineer wants to create a relational object by pulling data from two tables. The relational object does not need to be used by other data engineers in other sessions. In order to save on storage costs, the data engineer wants to avoid copying and storing physical data.

Which of the following relational objects should the data engineer create?

Choices

  • A: Spark SQL Table
  • B: View
  • C: Database
  • D: Temporary view
  • E: Delta Table