A non-Python service must call a custom model endpoint. Which option fits?
- Exam domain
- Model Deployment12% of the exam
- Difficulty
- Easy
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Model Deployment (12% of the exam)
Objective in the exam guide: Query custom models via REST API or MLflow Deployments SDK.
Querying custom models via REST is named.
Why D is the answer
POST JSON to the endpoint's REST invocations URL with a token
The REST API works from any language. The invocations URL accepts JSON inputs and returns predictions.
Remember: REST for any client.
How it works
Endpoints expose language-neutral REST.
In detail
- REST works from any language.
- Token authentication.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Call a notebookWrong
Notebooks are not an API.
B. Install MLflow inside the service and load the registered model directly from Unity Catalog on every requestWrongMost tempting
Loading per request skips serving and is slow.
Why it tempts: Loading the model directly seems simpler.
C. Read the model's Delta tableWrong
Models are not Delta tables.
D. POST JSON to the endpoint's REST invocations URL with a tokenRight
REST for any client.
Use case
An illustrative scenario, not a real incident.
Illustrative: a Go service posts dataframe_records to the endpoint.
See it in different ways
sequenceDiagram participant P0 as Java service participant P1 as Endpoint P0->>P1: POST invocations P1-->>P0: predictions
How to read this chart
- 1. Java service sends "POST invocations" to Endpoint.
- 2. Java service gets a reply from Endpoint: "predictions".
flowchart LR S0["Get token"] --> S1["Build JSON"] --> S2["POST invocations"] --> S3["Parse predictions"]
How to read this chart
- Read it in order: Get token, then Build JSON, then POST invocations, then Parse predictions.