A data scientist trained a scikit-learn model and wants it governed and callable from SQL in Snowflake. What should they do?
- Exam domain
- Open-source models: Snowpark Container Services and Model Registry
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Log it with Registry.log_model in the Snowflake Model Registry
The Model Registry stores models as schema-level objects. log_model serializes the model, records metadata, and makes it available for inference with role-based access.
Remember: Register with log_model.
In detail
- log_model creates the object.
- Versions per model.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Copy the pickle file into a table columnWrong
A raw pickle in a table is not managed or callable.
B. Upload it to a Cortex Search serviceWrong
Cortex Search is for text retrieval.
C. Log it with Registry.log_model in the Snowflake Model RegistryRight
Register with log_model.
D. Paste it into AI_COMPLETE, which can run any model file it is givenWrong
AI_COMPLETE runs hosted LLMs, not your model files.
Use case
An illustrative scenario, not a real incident.
Illustrative: a churn model is logged as v1 and scored nightly from SQL.
See it in different ways
flowchart LR S0["Train in Python"] --> S1["Registry.log_model"] --> S2["Add metrics"] --> S3["Run inference"]
How to read this chart
- Read it in order: Train in Python, then Registry.log_model, then Add metrics, then Run inference.
mindmap
root(("Model Registry"))
n1["Object"]
n2["Schema-level model"]
n3["Versions"]
n4["Up to 1000 per model"]
n5["Runs on"]
n6["Warehouse"]
n7["Container Services"]How to read this chart
- The centre is "Model Registry".
- "Object" covers "Schema-level model".
- "Versions" covers "Up to 1000 per model".
- "Runs on" covers "Warehouse", "Container Services".