A retailer scores 50 million products once a night for next-day pricing. Which serving approach fits?
- Exam domain
- Model Deployment and Monitoring13% of the exam
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Model Deployment and Monitoring (13% of the exam)
Objective in the exam guide: Identify the differences and advantages of model serving approaches: batch, realtime, and streaming
Comparing serving approaches is named.
Why C is the answer
Batch inference in a scheduled job
Large, scheduled scoring with no latency need is batch inference. Real-time endpoints suit per-request, low-latency needs; streaming suits continuous data.
Remember: Batch for bulk scheduled scoring.
How it works
Latency and volume decide the serving approach.
In detail
- Batch for scheduled bulk.
- Real time for per-request.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Streaming inference, even though data arrives once a dayWrong
Data arrives in one daily drop.
B. Manual scoring in a notebook each morningWrong
Manual steps are not reliable.
C. Batch inference in a scheduled jobRight
Batch for bulk scheduled scoring.
D. A real-time endpoint called 50 million times overnightWrongMost tempting
Per-request calls add cost for no benefit.
Why it tempts: Endpoints feel modern.
Use case
An illustrative scenario, not a real incident.
Illustrative: a nightly job scores the catalog with a Spark UDF from the champion model.
See it in different ways
flowchart TD
Q{"How fast are predictions needed?"}
Q -->|"Hours, large volumes"| A0["Batch"]
Q -->|"Seconds, continuous data"| A1["Streaming"]
Q -->|"Milliseconds, per request"| A2["Real-time endpoint"]How to read this chart
- At "How fast are predictions needed?": if "Hours, large volumes", go to "Batch"; if "Seconds, continuous data", go to "Streaming"; if "Milliseconds, per request", go to "Real-time endpoint".
flowchart LR S0["Load champion"] --> S1["Score table"] --> S2["Write results"] --> S3["Alert on failure"]
How to read this chart
- Read it in order: Load champion, then Score table, then Write results, then Alert on failure.