Noos
PT EN
RAN-DBDEA-00041
Ranvier · DBDEA

Exam DBDEA Topics: transformation Difficulty: medium

A marketing engineer needs every combination of customer segment (40 rows) and promo code (5,000 rows) for a campaign evaluation job, and writes: ```python result = segments.crossJoin(promos) ``` The job will score every resulting pair once per night. What does this produce, and what should the engineer keep in mind?

Options (Reading Mode) Click to filter discussion →
  1. A. A 200,000-row Cartesian product (40 x 5,000) — fine here, but cross joins grow as rows-times-rows
  2. B. 5,040 rows — crossJoin stacks both DataFrames the same way a union does
  3. C. An error, because cross joins require setting spark.sql.crossJoin.enabled to true first
  4. D. Only the rows where a segment value also appears in the promos DataFrame — crossJoin applies an implicit equality filter
Reveal answer

Correct answer: A 200,000-row Cartesian product (40 x 5,000) — fine here, but cross joins grow as rows-times-rows

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): A 200,000-row Cartesian product (40 x 5,000) — fine here, but cross joins grow as rows-times-rows

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.