What is the main difference between offline and online feature tables?
- Exam domain
- Databricks Machine Learning36% of the exam
- Difficulty
- Medium
- In this mock
- 18 questions on this domainPractise this domain
Why the exam asks this
Databricks Machine Learning (36% of the exam)
Objective in the exam guide: Describe the differences between online and offline feature tables
Online versus offline feature tables is named.
Why B is the answer
Offline serves training and batch; online serves real-time lookups
Offline feature tables are Delta tables for training and batch. Online stores publish features for millisecond lookups during real-time serving.
Remember: Offline for batch, online for real time.
How it works
Feature serving latency decides offline versus online storage.
In detail
- Offline: training and batch.
- Online: real-time lookups.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. There is no difference; the names are interchangeableWrong
They serve different latency needs.
B. Offline serves training and batch; online serves real-time lookupsRight
Offline for batch, online for real time.
C. Offline tables are stored in CSV files, while online tables use Delta Lake for every readWrong
Offline tables are Delta, not CSV.
D. Online tables are only for training, offline only for servingWrongMost tempting
That reverses their roles.
Why it tempts: The roles are easy to swap.
Use case
An illustrative scenario, not a real incident.
Illustrative: fraud features are published online so a payment endpoint can read them in milliseconds.
See it in different ways
flowchart TD
Q{"How fast must lookups be?"}
Q -->|"Seconds to hours, batch"| A0["Offline Delta table"]
Q -->|"Milliseconds, per request"| A1["Online store"]How to read this chart
- At "How fast must lookups be?": if "Seconds to hours, batch", go to "Offline Delta table"; if "Milliseconds, per request", go to "Online store".
mindmap
root(("Features"))
n1["Offline"]
n2["Delta tables"]
n3["Training"]
n4["Batch"]
n5["Online"]
n6["Low latency"]
n7["Real-time serving"]How to read this chart
- The centre is "Features".
- "Offline" covers "Delta tables", "Training", "Batch".
- "Online" covers "Low latency", "Real-time serving".