Certified Data Engineer Associate Practice Test

Certified Data Engineer Associate Practice Test practice questions, page 12 of 12, with answer review and explanations.

Question 56

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?

  1. It is not possible to use SQL in a Python notebook
  2. They can attach the cell to a SQL endpoint rather than a Databricks cluster
  3. They can simply write SQL syntax in the cell
  4. They can add %sql to the first line of the cell
  5. They can change the default language of the notebook to SQL