You join a 200-million-row transactions table to a customers table on customer_id and the row count grows unexpectedly. What is the most likely cause?
- Exam domain
- Data Manipulation and Preparation23% of the exam
- Difficulty
- Medium
- In this mock
- 11 questions on this domainPractise this domain
Why the exam asks this
Data Manipulation and Preparation (23% of the exam)
Objective in the exam guide: Data integration, joining, and manipulation using NVIDIA cuDF and pandas
Joins are the most common manipulation task.
Why B is the answer
Duplicate customer_id values in the customers table
If the key is not unique on the lookup side, each matching transaction joins to several customer rows. Check key uniqueness before joining.
Remember: Duplicate keys multiply rows in joins.
How it works
Joins combine tables on keys. Non-unique keys cause row multiplication.
In detail
- Check key uniqueness before joins.
- Validate row counts after joins.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The join used too few columns from the transactions tableWrong
Column choice does not add rows.
B. Duplicate customer_id values in the customers tableRight
Duplicate keys multiply rows in joins.
C. The GPU added rows because of a memory error during the joinWrongMost tempting
Memory errors fail; they do not add rows.
Why it tempts: Blaming the GPU is tempting when results look strange.
D. cuDF always duplicates rows in inner joins on large tablesWrong
cuDF follows normal join semantics.
Use case
An illustrative scenario, not a real incident.
Illustrative: 3% of customers have two records after a CRM merge, inflating revenue by 3%.
See it in different ways
flowchart LR S0["Check key uniqueness"] --> S1["Join"] --> S2["Compare row counts"] --> S3["Investigate differences"]
How to read this chart
- Read it in order: Check key uniqueness, then Join, then Compare row counts, then Investigate differences.
flowchart TD
Q{"Lookup key unique?"}
Q -->|"No"| A0["Deduplicate or fix the key"]
Q -->|"Yes"| A1["Check join type"]How to read this chart
- At "Lookup key unique?": if "No", go to "Deduplicate or fix the key"; if "Yes", go to "Check join type".