Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Certified Data Engineer Professional topic 1 question 1 discussion

Actual exam question from Databricks's Certified Data Engineer Professional
Question #: 1
Topic #: 1
[All Certified Data Engineer Professional Questions]

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")
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
AziLa
4 weeks, 1 day ago
correct ans is E
upvoted 1 times
...
Sosicha
1 month ago
Are you reading the question? It asks about an upstream system that has been configured to pass the date for a given batch of data to the Databricks Jobs API as a parameter. Upstream system usually don't use widgets. Widgets they are made for humans. Only C and D are correct but D is better so D.
upvoted 1 times
...
hal2401me
2 months ago
Selected Answer: E
dbutils.widget. Just passed the exam with score >80%. examtopics covers about 90% of questions. there were 5 questions I didn't see here in examtopics. But friends, you need to look at the discussions, and do test yourself. many answers provided here, even most voted answer, does NOT exists anymore in the exam - not the question, but the answer. Wish you all good luck, friends!
upvoted 3 times
...
hal2401me
2 months, 3 weeks ago
Selected Answer: E
vote for E dbutils.widget
upvoted 1 times
...
AziLa
3 months, 4 weeks ago
Correct Ans is E
upvoted 1 times
...
Jay_98_11
4 months ago
Selected Answer: E
E is correct
upvoted 2 times
...
RafaelCFC
4 months, 2 weeks ago
Selected Answer: E
In https://docs.databricks.com/en/notebooks/notebook-workflows.html#dbutilsnotebook-api the "run Example" is an equivalent use-case as E.
upvoted 2 times
...
kz_data
4 months, 4 weeks ago
Selected Answer: E
E is correct
upvoted 2 times
...
chokthewa
7 months, 2 weeks ago
I think D is correct answer, refer to https://docs.databricks.com/en/notebooks/notebook-workflows.html#dbutilsnotebook-api
upvoted 1 times
...
ThunderToes18
7 months, 3 weeks ago
Few questions on the exam... 9/29, wait for an update or more iterations...
upvoted 2 times
...
BrianNguyen95
9 months, 1 week ago
E is correct answer
upvoted 3 times
unk1102
8 months ago
Did you take exam? Are these questions valid?
upvoted 2 times
...
...
lokvamsi
9 months, 1 week ago
Selected Answer: E
Correct. Ans: E
upvoted 1 times
...
Happy_Prince
9 months, 2 weeks ago
Correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...