Noos
PT EN
RAN-DBDEA-00062
Ranvier · DBDEA

Exam DBDEA Topics: jobs Difficulty: hard

A Lakeflow Job task named agg ends with: ```python dbutils.jobs.taskValues.set(key = "row_count", value = result_count) ``` result_count is the Python float `12.0`. An If/else condition task evaluates `{{tasks.agg.values.row_count}} == 12`, and the engineer expects the true branch to run — but the condition evaluates to false. Why did this happen, and which comparison behaves numerically?

Options (Reading Mode) Click to filter discussion →
  1. A. Task values lose precision when serialized, so == is unreliable; >= has the same precision problem
  2. B. If/else conditions accept only boolean task values, so numeric conditions silently evaluate to false
  3. C. == and != compare as strings, so 12.0 does not equal 12; >, >=, <, and <= are numeric
  4. D. The If/else task failed to read the value, because task values cannot store numbers
Reveal answer

Correct answer: == and != compare as strings, so 12.0 does not equal 12; >, >=, <, and <= are numeric

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 (C): == and != compare as strings, so 12.0 does not equal 12; >, >=, <, and <= are numeric

⚓ 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.