nerdexam
Microsoft

DP-300 · Question #99

You are creating a new notebook in Azure Databricks that will support R as the primary language but will also support Scala and SQL. Which switch should you use to switch between languages?

The correct answer is B. %<language>. You can override the default language by specifying the language magic command %<language> at the beginning of a cell. The supported magic commands are: %python, %r, %scala, and %sql. https://docs.microsoft.com/en-us/azure/databricks/notebooks/notebooks-use

Submitted by lars.no· Mar 6, 2026Plan and implement data platform resources

Question

You are creating a new notebook in Azure Databricks that will support R as the primary language but will also support Scala and SQL. Which switch should you use to switch between languages?

Options

  • A\[<language>]
  • B%<language>
  • C\[<language>]
  • D@<language>

How the community answered

(32 responses)
  • A
    9% (3)
  • B
    75% (24)
  • C
    3% (1)
  • D
    13% (4)

Explanation

You can override the default language by specifying the language magic command %<language> at the beginning of a cell. The supported magic commands are: %python, %r, %scala, and %sql. https://docs.microsoft.com/en-us/azure/databricks/notebooks/notebooks-use

Topics

#Azure Databricks#magic commands#multi-language notebooks#language switching

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice