Noos
PT EN
RAN-DBDEA-00239
Ranvier · DBDEA

Exam DBDEA Topics: jobs Difficulty: medium

A Lakeflow Job starts with a notebook task, `pick_tables`, which scans operational metadata and computes the exact list of bronze tables that need a rebuild — a different list every night: ```python dbutils.jobs.taskValues.set(key = "tables", value = tables) ``` The next step must run the rebuild notebook once for every table in that list. How should the For each task that follows `pick_tables` be configured?

Options (Reading Mode) Click to filter discussion →
  1. A. Point its Inputs field at the task value reference {{tasks.pick_tables.values.tables}}, so the loop follows the list pick_tables produced
  2. B. Copy the table names from last night's run into the Inputs field as a static JSON array, and edit the job whenever the list changes
  3. C. Hardcode a master table list in the job definition, because For each inputs cannot reference values from other tasks
  4. D. Drop the For each task and use a single notebook task that reads the array from pick_tables and loops over the tables with a Python while loop
Reveal answer

Correct answer: Point its Inputs field at the task value reference {{tasks.pick_tables.values.tables}}, so the loop follows the list pick_tables produced

Reference: https://docs.databricks.com/aws/en/jobs/tasks/for-each

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 (A): Point its Inputs field at the task value reference {{tasks.pick_tables.values.tables}}, so the loop follows the list pick_tables produced

⚓ Official Documentation Anchor: https://docs.databricks.com/aws/en/jobs/tasks/for-each
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.