Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can you designate a Python file as a notebook in Databricks?
A
By including the magic command %databricks at the beginning of the file's source code
%databricks
B
By importing the dbutils.notebook module within the file's source code
dbutils.notebook
C
By initiating a Spark session with SparkSession.builder.getOrCreate() in the file's source code
SparkSession.builder.getOrCreate()
D
By adding the comment # Databricks notebook source on the first line of the file's source code
# Databricks notebook source
E
None of the above is accurate. Notebooks are binary files with a .pydb extension
.pydb