Databricks
Databricks-Certified-Professional-Data-Engineer Exam
Databricks Certified Data Engineer Professional Exam
Thank You for Downloading
Databricks-Certified-Professional-Data-Engineer Exam PDF
Demo
You can also try our Databricks-Certified-Professional-Data-Engineer
Premium PDF File
https://dumpsace.com/pdf/Databricks-Certified-Professional-Data-Engineer-exam-dumps/
This study source was downloaded by 1317835 from cliffsnotes.com on 08-30-2025 10:46:23 GMT -05:00
https://www.cliffsnotes.com//study-notes/26716526
, Questions & Answers PDF Page 3
Version: 9.0
Question: 1
An upstream system has been configured to pass the date for a given batch of data to the Databricks
Jobs API as a parameter. The notebook to be scheduled will use this parameter to load data with the
following code:
df = spark.read.format("parquet").load(f"/mnt/source/(date)")
Which code block should be used to create the date Python variable used in the above code block?
A. date = spark.conf.get("date")
B. input_dict = input()
date= input_dict["date"]
C. import sys
date = sys.argv[1]
D. date = dbutils.notebooks.getParam("date")
E. dbutils.widgets.text("date", "null")
date = dbutils.widgets.get("date")
Answer: E
Explanation:
The code block that should be used to create the date Python variable used in the above code block
is:
dbutils.widgets.text(“date”, “null”) date = dbutils.widgets.get(“date”)
This code block uses the dbutils.widgets API to create and get a text widget named “date” that can
accept a string value as a parameter1. The default value of the widget is “null”, which means that if
no parameter is passed, the date variable will be “null”. However, if a parameter is passed through
the Databricks Jobs API, the date variable will be assigned the value of the parameter. For example, if
the parameter is “2021-11-01”, the date variable will be “2021-11-01”. This way, the notebook can
use the date variable to load data from the specified path.
The other options are not correct, because:
Option A is incorrect because spark.conf.get(“date”) is not a valid way to get a parameter passed
through the Databricks Jobs API. The spark.conf API is used to get or set Spark configuration
properties, not notebook parameters2.
Option B is incorrect because input() is not a valid way to get a parameter passed through the
Databricks Jobs API. The input() function is used to get user input from the standard input stream,
not from the API request3.
This study source was downloaded by 1317835 from cliffsnotes.com on 08-30-2025 10:46:23 GMT -05:00
https://www.cliffsnotes.com//study-notes/26716526
Databricks-Certified-Professional-Data-Engineer Exam
Databricks Certified Data Engineer Professional Exam
Thank You for Downloading
Databricks-Certified-Professional-Data-Engineer Exam PDF
Demo
You can also try our Databricks-Certified-Professional-Data-Engineer
Premium PDF File
https://dumpsace.com/pdf/Databricks-Certified-Professional-Data-Engineer-exam-dumps/
This study source was downloaded by 1317835 from cliffsnotes.com on 08-30-2025 10:46:23 GMT -05:00
https://www.cliffsnotes.com//study-notes/26716526
, Questions & Answers PDF Page 3
Version: 9.0
Question: 1
An upstream system has been configured to pass the date for a given batch of data to the Databricks
Jobs API as a parameter. The notebook to be scheduled will use this parameter to load data with the
following code:
df = spark.read.format("parquet").load(f"/mnt/source/(date)")
Which code block should be used to create the date Python variable used in the above code block?
A. date = spark.conf.get("date")
B. input_dict = input()
date= input_dict["date"]
C. import sys
date = sys.argv[1]
D. date = dbutils.notebooks.getParam("date")
E. dbutils.widgets.text("date", "null")
date = dbutils.widgets.get("date")
Answer: E
Explanation:
The code block that should be used to create the date Python variable used in the above code block
is:
dbutils.widgets.text(“date”, “null”) date = dbutils.widgets.get(“date”)
This code block uses the dbutils.widgets API to create and get a text widget named “date” that can
accept a string value as a parameter1. The default value of the widget is “null”, which means that if
no parameter is passed, the date variable will be “null”. However, if a parameter is passed through
the Databricks Jobs API, the date variable will be assigned the value of the parameter. For example, if
the parameter is “2021-11-01”, the date variable will be “2021-11-01”. This way, the notebook can
use the date variable to load data from the specified path.
The other options are not correct, because:
Option A is incorrect because spark.conf.get(“date”) is not a valid way to get a parameter passed
through the Databricks Jobs API. The spark.conf API is used to get or set Spark configuration
properties, not notebook parameters2.
Option B is incorrect because input() is not a valid way to get a parameter passed through the
Databricks Jobs API. The input() function is used to get user input from the standard input stream,
not from the API request3.
This study source was downloaded by 1317835 from cliffsnotes.com on 08-30-2025 10:46:23 GMT -05:00
https://www.cliffsnotes.com//study-notes/26716526