Free Microsoft Azure DP-300 Actual Exam Questions - Question 2 Discussion
Question No. 2
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?
will also support Scala and SQL.
Which switch should you use to switch between languages?
Select one option, then reveal solution.
US
CE
Carlos E.
2026-02-17
B Using % is the standard way to switch languages in a Databricks notebook, like %r for R or %sql for SQL. The other options don’t match how Databricks handles multi-language cells.
0
SB
Sam B.
2026-01-26
Probably B here too since % is used as a magic command prefix to switch between languages, which matches the question about R, Scala, and SQL in one notebook.
0
PU
Peter U.
2026-01-21
It’s B because % is the standard way to switch languages in Databricks notebooks, like %scala or %sql, so that fits perfectly here.
0
PU
Peter U.
2026-01-19
B this one makes most sense for magic commands in databricks
0