Which change most improves end-to-end performance of a data science process already running parts on GPUs?
- Exam domain
- GPU and Cloud Computing16% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
GPU and Cloud Computing (16% of the exam)
Objective in the exam guide: Optimizing performance of the data science process through GPU acceleration
Optimizing the process with GPU acceleration is named.
Why D is the answer
Keep data on the GPU from load through training
End-to-end GPU acceleration avoids host-device copies between steps. Loading, cleaning, features and training all on the GPU removes the slowest transfers.
Remember: Keep the whole pipeline on the GPU.
How it works
GPU acceleration pays off most when data stays resident across steps.
In detail
- Stay on the GPU end to end.
- Measure after each change.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Move every step to the CPU for consistency so the whole process uses a single type of hardwareWrongMost tempting
CPU-only loses acceleration.
Why it tempts: Consistency sounds like good engineering.
B. Add print statements after each stepWrong
Prints add overhead.
C. Increase the logging level to debugWrong
Debug logging slows jobs.
D. Keep data on the GPU from load through trainingRight
Keep the whole pipeline on the GPU.
Use case
An illustrative scenario, not a real incident.
Illustrative: removing two CPU round trips makes the pipeline three times faster.
See it in different ways
flowchart LR S0["cuDF load"] --> S1["cuDF clean"] --> S2["cuDF features"] --> S3["cuML or XGBoost train"] --> S4["Small result to CPU"]
How to read this chart
- Read it in order: cuDF load, then cuDF clean, then cuDF features, then cuML or XGBoost train, then Small result to CPU.
stateDiagram-v2 state "GPU load" as s0 state "GPU transform" as s1 state "GPU train" as s2 state "CPU report" as s3 [*] --> s0 s0 --> s1 s1 --> s2 s2 --> s3: small output only s3 --> [*]
How to read this chart
- It starts at "GPU load".
- From "GPU load", it moves to "GPU transform".
- From "GPU transform", it moves to "GPU train".
- From "GPU train", "small output only" moves it to "CPU report".
- It ends at "CPU report".