In Snowpark Container Services, what is the difference between a service and a job service?
- Exam domain
- Open-source models: Snowpark Container Services and Model Registry
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
A service is long-running and restarted if it exits; a job service has a finite lifespan
Snowflake documents a service as long-running, with containers restarted if they exit, created with CREATE SERVICE. A job service runs to completion, like a stored procedure, with EXECUTE JOB SERVICE.
Remember: Services stay up; jobs finish.
In detail
- Service: long-running.
- Job service: runs to completion.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A service needs GPUs, while a job service can only run on CPUs in a warehouseWrong
Both run on compute pools, with or without GPUs.
B. A service is long-running and restarted if it exits; a job service has a finite lifespanRight
Services stay up; jobs finish.
C. There is noneWrong
They differ in lifespan and restarts.
D. A service runs once; a job service runs foreverWrong
It is the other way around.
Use case
An illustrative scenario, not a real incident.
Illustrative: a nightly fine-tuning run is a job service, and the model API is a service.
See it in different ways
mindmap
root(("Workloads"))
n1["Service"]
n2["CREATE SERVICE"]
n3["Restarted on exit"]
n4["Job service"]
n5["EXECUTE JOB SERVICE"]
n6["Finite lifespan"]How to read this chart
- The centre is "Workloads".
- "Service" covers "CREATE SERVICE", "Restarted on exit".
- "Job service" covers "EXECUTE JOB SERVICE", "Finite lifespan".
flowchart TD
Q{"Should it keep running?"}
Q -->|"Yes, serve requests"| A0["Service"]
Q -->|"No, run and finish"| A1["Job service"]How to read this chart
- At "Should it keep running?": if "Yes, serve requests", go to "Service"; if "No, run and finish", go to "Job service".