Noos
PT EN
RAN-DBDEA-00225
Ranvier · DBDEA

Exam DBDEA Topics: transformation Difficulty: medium

Marketing asks the data team for a very specific list: every registered customer who did not place a single order in October. The relevant tables are catalog.sales.customers, with one row per customer, and catalog.sales.orders, with many rows per order. The engineer wants a single PySpark join call that returns exactly those customers and nothing else. Which join type should the engineer use?

Options (Reading Mode) Click to filter discussion →
  1. A. 'left_semi', which returns the customers whose key has no match among the orders
  2. B. 'left_anti', which returns the customers whose key has no match among the orders
  3. C. No native join type can do this; it must be emulated with a LEFT JOIN plus a filter for NULLs on the right side
  4. D. 'left_anti', which deletes the matching order rows from the orders table so that the customers appear unmatched
Reveal answer

Correct answer: 'left_anti', which returns the customers whose key has no match among the orders

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

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): 'left_anti', which returns the customers whose key has no match among the orders

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