Certified Data Engineer Professional Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Professional Exam - Question 102


What is the first line of a Databricks Python notebook when viewed in a text editor?

Show Answer
Correct Answer: BC

The first line of a Databricks Python notebook when viewed in a text editor is '# Databricks notebook source'. The '#' symbol is used for comments in Python, and this comment line indicates the start of the notebook's source code in the text file.

Discussion

7 comments
Sign in to comment
bacckomOption: C
Jan 11, 2024

Python: # Databricks notebook source SQL: -- Databricks notebook source Scala: // Databricks notebook source R: # Databricks notebook source

aragorn_bregoOption: C
Nov 22, 2023

This is the correct line that you would find at the top of a Databricks notebook when viewed in a text editor, especially for Python notebooks. The # symbol is used for comments in Python, and the comment # Databricks notebook source is used by Databricks to indicate the start of the notebook's source code in the plain text file. These lines are comments in the respective languages (Scala uses // and SQL uses -- for single-line comments) and indicate the beginning of the Databricks notebook content in the text file.

divingbell17Option: C
Jan 2, 2024

https://docs.databricks.com/en/notebooks/notebook-export-import.html#import-a-file-and-convert-it-to-a-notebook

Ati1362Option: C
Jun 25, 2024

c is the answer

60tiesOption: C
Nov 15, 2023

// Databricks notebook source - Scala # Databricks notebook source - Python -- Databricks notebook source - SQL Answer is C

60tiesOption: C
Nov 15, 2023

Answer is C

AWSMaster69Option: C
Nov 20, 2023

The Answer is C, Just downloaded a notebook from Databricks and viewed it in a text editor.