Noos
PT EN
RAN-DBDEA-00038
Ranvier · DBDEA

Exam DBDEA Topics: transformation Difficulty: easy

While validating a silver notebook, an engineer joins two small bronze tables to check key overlap before promoting the pipeline: ```python payments = spark.read.table("catalog.fin.bronze_payments") # 3 rows: txn 101, 202, 303 refunds = spark.read.table("catalog.fin.bronze_refunds") # 4 rows: txn 202, 303, 404, 505 joined = payments.join(refunds, "txn_id", "inner") print(joined.count()) ``` What number is printed, and why?

Options (Reading Mode) Click to filter discussion →
  1. A. 2 — only the txn_id values present in both tables survive the inner join
  2. B. 3 — all payments are preserved because the left table drives an inner join
  3. C. 4 — all refunds are preserved because the right table drives an inner join
  4. D. 7 — an inner join stacks both inputs and removes nothing
Reveal answer

Correct answer: 2 — only the txn_id values present in both tables survive the inner join

Reference: https://docs.databricks.com/aws/en/pyspark/reference/functions

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): 2 — only the txn_id values present in both tables survive the inner join

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.