A nightly ETL job prepares 2 TB of tabular data with pandas and now takes too long. Which change most directly speeds it up on NVIDIA GPUs?
- Exam domain
- Data Processing and Data Flywheel17% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
Data Processing and Data Flywheel (17% of the exam)
Objective in the exam guide: Data ingestion and ETL components, including distributed processing with Spark, Databricks, Kafka, and NVIDIA RAPIDS.
Ingestion and ETL tools are named directly.
Why D is the answer
Use RAPIDS cuDF, or Spark with the RAPIDS Accelerator
RAPIDS cuDF gives a pandas-like API on GPUs, and the RAPIDS Accelerator for Apache Spark speeds up Spark SQL and DataFrame jobs on GPUs.
Remember: RAPIDS accelerates ETL on GPUs.
How it works
Distributed ETL uses Spark, Databricks, Kafka for streaming and NVIDIA RAPIDS for GPU acceleration.
In detail
- cuDF accelerates DataFrames on GPUs.
- Spark scales across nodes.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Run the job less oftenWrongMost tempting
Less often does not make it faster.
Why it tempts: Running less often reduces load, but the job is no faster.
B. Save the data as plain text instead of ParquetWrong
Columnar Parquet is faster than text.
C. Rewrite the job as a long series of Python loops over each row so it is easier to debugWrong
Row loops are the slowest option.
D. Use RAPIDS cuDF, or Spark with the RAPIDS AcceleratorRight
RAPIDS accelerates ETL on GPUs.
Use case
An illustrative scenario, not a real incident.
Illustrative: moving the join and group-by steps to cuDF cuts the job from 3 hours to 20 minutes.
See it in different ways
flowchart TD
Q{"Data fits on one GPU node?"}
Q -->|"Yes"| A0["cuDF"]
Q -->|"No"| A1["Spark with RAPIDS or Dask-cuDF"]How to read this chart
- At "Data fits on one GPU node?": if "Yes", go to "cuDF"; if "No", go to "Spark with RAPIDS or Dask-cuDF".
mindmap
root(("ETL"))
n1["Batch"]
n2["Spark"]
n3["Databricks"]
n4["RAPIDS"]
n5["Streaming"]
n6["Kafka"]
n7["Formats"]
n8["Parquet"]How to read this chart
- The centre is "ETL".
- "Batch" covers "Spark", "Databricks", "RAPIDS".
- "Streaming" covers "Kafka".
- "Formats" covers "Parquet".
Learn more
- Our lesson: Data processing and the data flywheel
- Practise Data Processing and Data Flywheel questions in the mock exam
- Source: cuDF documentation (RAPIDS)
- Source: Apache Parquet documentation
- cuDF documentation (RAPIDS)
- Apache Parquet documentation
- Common pitfalls and recommended practices (scikit-learn)