PySpark Certification Practice Test 03
Data Engineer Review Notes
Insightful Saga — Modern Data Engineering Certification Preparation
Question 41
A newly joined Data Engineer reviews the following requirement:
"We have customer data and customer address data.
Only customers existing in both datasets should appear in the output."
Which join type should be recommended?
A. Inner Join
B. Left Join
C. Right Join
D. Full Join
Answer: ✅ A. Inner Join
Explanation:### Review Note
Inner Join returns only matching records from both datasets.
Question 42
Review Requirement:
"All customers must appear in the output.
Address information should appear only when available."
Which join should be chosen?
A. Inner Join
B. Left Join
C. Right Join
D. Cross Join
Answer: ✅ B. Left Join
Question 43
Review Requirement:
"Return all records from both systems even when no matching key exists."
Which join is appropriate?
A. Inner Join
B. Left Join
C. Full Outer Join
D. Semi Join
Answer: ✅ C. Full Outer Join
Question 44
A retail company wants total sales amount by store.
Which operation should be performed first?
A. groupBy()
B. filter()
C. drop()
D. cast()
Answer: ✅ A. groupBy()
Question 45
Review Requirement:
"Calculate total revenue for each product."
Which aggregation function is most appropriate?
A. sum()
B. avg()
C. min()
D. max()
Answer: ✅ A. sum()
Question 46
A banking company wants average account balance by branch.
Which aggregation should be recommended?
A. avg()
B. sum()
C. count()
D. max()
Answer: ✅ A. avg()
Question 47
Review Requirement:
"Determine how many transactions occurred for each customer."
Which aggregation fits best?
A. count()
B. avg()
C. max()
D. first()
Answer: ✅ A. count()
Question 48
A healthcare company wants to know the highest insurance claim amount submitted by each patient.
Which function should be used?
A. max()
B. min()
C. avg()
D. count()
Answer: ✅ A. max()
Question 49
A telecom company wants the lowest monthly usage recorded for each customer.
Which aggregation is appropriate?
A. min()
B. max()
C. sum()
D. count()
Answer: