Which statement about training and inference is correct?
- Exam domain
- OCI AI infrastructure
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
Training learns the weights; inference uses them to answer requests
Training adjusts the weights using data, usually once or periodically and at high cost. Inference runs the trained model with fixed weights to answer each request.
Remember: Training learns; inference applies.
In detail
- Training: learn the weights.
- Inference: use fixed weights to predict.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Inference updates the model weights each time a user sends a requestWrong
Weights stay fixed during inference.
B. Training and inference always need the same hardwareWrong
Inference often runs on smaller or cheaper hardware than training.
C. Training is run once for every user requestWrong
Training happens before serving, not per request.
D. Training learns the weights; inference uses them to answer requestsRight
Training learns; inference applies.
Use case
An illustrative scenario, not a real incident.
Illustrative: a model trains for a day on a GPU cluster, then serves millions of requests from a smaller endpoint.
See it in different ways
stateDiagram-v2 state "Untrained" as s0 state "Trained" as s1 state "Serving" as s2 [*] --> s0 s0 --> s1: training on data s1 --> s2: deploy for inference s2 --> [*]
How to read this chart
- It starts at "Untrained".
- From "Untrained", "training on data" moves it to "Trained".
- From "Trained", "deploy for inference" moves it to "Serving".
- It ends at "Serving".
flowchart LR S0["Request"] --> S1["Model with fixed weights"] --> S2["Response"]
How to read this chart
- Read it in order: Request, then Model with fixed weights, then Response.