Noos
PT EN
RAN-DBDEA-00061
Ranvier · DBDEA

Exam DBDEA Topics: jobs Difficulty: medium

The first task in a Lakeflow Job, named qc, ends with `dbutils.jobs.taskValues.set(key = "bad_records", value = bad_count)`. If bad_records is greater than zero, the quarantine notebook must run; otherwise the publish notebook must run. How should the data engineer implement this branching?

Options (Reading Mode) Click to filter discussion →
  1. A. Add a For each task whose inputs are the values true and false, and let a wrapper notebook decide which path to call
  2. B. Add an If/else task with {{tasks.qc.values.bad_records}} > 0, with quarantine on true and publish on false
  3. C. Add quarantine with a run-if condition of All failed and publish with All succeeded, both depending on qc
  4. D. Pass bad_records as a job parameter to both notebooks and let each notebook exit early when it should not run
Reveal answer

Correct answer: Add an If/else task with {{tasks.qc.values.bad_records}} > 0, with quarantine on true and publish on false

Reference: https://docs.databricks.com/aws/en/jobs/tasks/if-else

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 an If/else task with {{tasks.qc.values.bad_records}} > 0, with quarantine on true and publish on false

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