Noos
PT EN
RAN-DBDEA-00064
Ranvier · DBDEA

Exam DBDEA Topics: jobs Difficulty: easy

The first task in a Lakeflow Job, named load_raw, ends with: ```python dbutils.jobs.taskValues.set(key = "ingested_rows", value = raw_df.count()) ``` The next task, validate_counts, must use that number as the expected row count in its own parameters. How should validate_counts receive the value?

Options (Reading Mode) Click to filter discussion →
  1. A. Task values become global variables that every subsequent task in the job can read directly
  2. B. Call dbutils.jobs.taskValues.set() again inside validate_counts, using the same key
  3. C. Read the value with spark.conf.get('ingested_rows') in the downstream task
  4. D. Reference it in the task parameters with the dynamic value {{tasks.load_raw.values.ingested_rows}}
Reveal answer

Correct answer: Reference it in the task parameters with the dynamic value {{tasks.load_raw.values.ingested_rows}}

Reference: https://docs.databricks.com/aws/en/jobs/task-values

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 (D): Reference it in the task parameters with the dynamic value {{tasks.load_raw.values.ingested_rows}}

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