Noos
PT EN
RAN-DBDEA-00065
Ranvier · DBDEA

Exam DBDEA Topics: jobs Difficulty: easy

A notebook task in a Lakeflow Job must receive a processing date and an environment name. The notebook already starts with: ```python batch_date = dbutils.widgets.get("batch_date") env = dbutils.widgets.get("env") ``` How should the data engineer configure the task so the notebook receives these values?

Options (Reading Mode) Click to filter discussion →
  1. A. Declare the two values with dbutils.jobs.taskValues.set() in a task that runs before the notebook
  2. B. Add batch_date and env as key-value Parameters on the notebook task
  3. C. Store the values as environment variables on the job cluster and read them with os.environ
  4. D. Set the values as Spark configurations in the task's advanced options
Reveal answer

Correct answer: Add batch_date and env as key-value Parameters on the notebook task

Reference: https://docs.databricks.com/aws/en/jobs/tasks/notebook

02 — The Myelin Layer · Canonical Discussion

Where the exam tries to trick you — and how those who passed solved it.

0 Passed

contributed to this question

Answer Distractor Matrix Click an option to filter or open its dissection.
✦ Consolidated Synthesis (Wiki) rev. #1 (baseline) · CC BY-SA 4.0
Start synthesis for this question →

No community synthesis consolidated for this question yet. Below is the verifiable official starting point — if you passed the exam, open the option dissection.

Official Answer (B): Add batch_date and env as key-value Parameters on the notebook task

⚓ Official Documentation Anchor: https://docs.databricks.com/aws/en/jobs/tasks/notebook
Ranvier · DBDEA

Contribute to this Question

Your contribution builds your Orbital Sheath

Peer contributions

No public contribution yet. Be the first who passed to explain why the distractors trick candidates — your contribution builds your Orbital Sheath.