Skip to main content
← Back to PySpark Assessments
🎓 PYSPARK CERTIFICATION LEARNING STUDIO

PySpark Practice Test 03

50 Comprehensive Questions (Questions 101–150)
✓0 / 50 Mastered
Question 1 of 500 of 50 Checked (0%)
Question 101of 50
🤔 Step: Reason & Select

During a code review, a developer submits the following PySpark snippet for an ETL pipeline processing 500 million transaction records:

large_df = spark.read.parquet("s3://lake/transactions/")
result = large_df.collect()
for row in result:
    process_row(row)

What is the BEST code review feedback?

💡
Think Before You Check: Take a moment to reason through the scenario, evaluate architectural trade-offs, and choose your option before checking.
A
A. Add additional inner joins before calling collect()
B
B. Call collect() more frequently after each filter to clear memory
C
C. Avoid collect() on large datasets because pulling 500 million records into Driver memory will cause an immediate Out-Of-Memory (OOM) crash
D
D. Increase the number of columns in the schema before calling collect()
Question 1 of 50
Question Navigator (Test 03)0 / 50 Checked
Mastered (0) Needs Review (0) Unchecked (50) Current