A SAS developer automates CI/CD for model retraining by using the SAS Viya REST API to submit a job when new data arrives. Which SAS Viya service endpoint is used to submit a SAS program as a batch job?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you submit the SAS program as a batch job through POST /jobExecution/jobs, because the Job Execution Service takes a job definition and runs it asynchronously. The CAS session endpoint only creates a CAS session, so it doesn't submit a batch job.
Full Explanation
The correct endpoint is POST /jobExecution/jobs because the SAS Job Execution Service accepts job submissions through that path, references a job definition containing the SAS program to execute, and runs it as a batch job asynchronously. The endpoint that creates a CAS session and executes the program is wrong because POST /cas/sessions creates a CAS session, not a batch job. The endpoint that creates a compute session and runs the program interactively is wrong because POST /compute/sessions creates an interactive compute session. The endpoint that triggers model retraining via Model Manager is wrong because PUT /modelRepository/models/{id} updates model metadata, not a retraining job.