You need to plot ten million sensor readings per day for a month to spot trends. What is a sensible approach?
- Exam domain
- Data Analysis14% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Analysis (14% of the exam)
Objective in the exam guide: Visualizing time-series data
Visualizing time series at scale is named.
Why D is the answer
Resample to a coarser interval on the GPU, then plot the aggregates
Aggregating, for example to hourly means and ranges, keeps the trend visible and the plot responsive. Raw points overload the renderer.
Remember: Aggregate large time series before plotting.
How it works
Time-series visualization at scale relies on resampling and aggregation, with EDA guiding which views to build.
In detail
- Aggregate before plotting big series.
- Keep min and max to show spikes.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Plot every raw point in a single scatter chartWrongMost tempting
Hundreds of millions of points overwhelm plotting tools.
Why it tempts: Raw data feels most honest.
B. Print the readings to the consoleWrong
Console output is unreadable.
C. Plot only the first dayWrong
One day hides the trend.
D. Resample to a coarser interval on the GPU, then plot the aggregatesRight
Aggregate large time series before plotting.
Use case
An illustrative scenario, not a real incident.
Illustrative: hourly aggregates of 300 million points plot in a second and show a weekly cycle.
See it in different ways
flowchart LR S0["Resample with cuDF"] --> S1["Compute mean, min and max"] --> S2["Move small result to CPU"] --> S3["Plot line with band"]
How to read this chart
- Read it in order: Resample with cuDF, then Compute mean, min and max, then Move small result to CPU, then Plot line with band.
flowchart TD
Q{"Points per series?"}
Q -->|"Thousands"| A0["Plot raw"]
Q -->|"Millions or more"| A1["Aggregate first"]How to read this chart
- At "Points per series?": if "Thousands", go to "Plot raw"; if "Millions or more", go to "Aggregate first".