You have three GPU-accelerated versions of a feature pipeline. How do you choose one for production?
- Exam domain
- MLOps19% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Performing benchmarking and optimizing different GPU-accelerated workflows
Benchmarking GPU workflows is named.
Why C is the answer
Benchmark each on production-sized data for time, memory and cost
Benchmarking on realistic data shows time, peak memory and cost, the factors that matter in production.
Remember: Benchmark workflows on production-sized data.
How it works
Benchmarking compares GPU-accelerated workflows on time, memory and cost.
In detail
- Benchmark on realistic data.
- Compare time, memory and cost.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Ask which one the team likesWrong
Preference is not evidence.
B. Pick the newest version, since newer code is always faster and more reliableWrongMost tempting
Newer is not proof of faster.
Why it tempts: New code feels improved.
C. Benchmark each on production-sized data for time, memory and costRight
Benchmark workflows on production-sized data.
D. Pick the one with the fewest lines of codeWrong
Code length is not performance.
Use case
An illustrative scenario, not a real incident.
Illustrative: version B is 10% slower but uses half the memory, allowing a cheaper GPU.
See it in different ways
flowchart LR S0["Production-sized data"] --> S1["Run each version"] --> S2["Record time, memory, cost"] --> S3["Pick best"] --> S4["Monitor"]
How to read this chart
- Read it in order: Production-sized data, then Run each version, then Record time, memory, cost, then Pick best, then Monitor.
flowchart TD
Q{"Meets time target?"}
Q -->|"Several do"| A0["Pick lowest cost"]
Q -->|"One does"| A1["Pick it"]How to read this chart
- At "Meets time target?": if "Several do", go to "Pick lowest cost"; if "One does", go to "Pick it".