You are writing code to create and run an Azure Batch job. You have created a pool of compute nodes. You need to choose the right class and its method to submit a batch job to the Batch service. Which method should you use?
A.
JobOperations.EnableJobAsync(String, IEnumerable<BatchClientBehavior>,CancellationToken)
B.
JobOperations.CreateJob()
C.
CloudJob.Enable(IEnumerable<BatchClientBehavior>)
D.
JobOperations.EnableJob(String,IEnumerable<BatchClientBehavior>)
E.
CloudJob.CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken)
Suggested Answer:E🗳️
A Batch job is a logical grouping of one or more tasks. A job includes settings common to the tasks, such as priority and the pool to run tasks on. The app uses the BatchClient.JobOperations.CreateJob method to create a job on your pool. The Commit method submits the job to the Batch service. Initially the job has no tasks. { CloudJob job = batchClient.JobOperations.CreateJob(); job.Id = JobId; job.PoolInformation = new PoolInformation { PoolId = PoolId }; job.Commit(); } ... References: https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
E is the answer, JobOperations.CreateJob() creates a job that has not been submitted to the Batch service, the question asks for the method that SUBMITS the job to the service.
Answer is E
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.cloudjob.commitasync?view=azure-dotnet
Commits this CloudJob to the Azure Batch service.
E is correct
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.cloudjob.commitasync?view=azure-dotnet
The Commit method submits the job to the Batch service
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
Answer # does NOT match the solution description; The correct answer should be "B".,
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet#review-the-code
upvoted 5 times
...
This section is not available anymore. Please use the main Exam Page.AZ-203 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
justanotherusername
Highly Voted 5 years, 3 months agoJuanlu
4 years, 4 months agolywwind
Highly Voted 5 years, 3 months agoLarry88
Most Recent 4 years, 7 months agoLarry88
4 years, 7 months agonavaneeth
4 years, 8 months agosathish11
4 years, 9 months agotim291
4 years, 9 months agogssicftohbcrcsgtjg
5 years, 2 months agoJohnyT
5 years, 3 months agoNagarajan
5 years, 3 months agoPraPat
5 years, 3 months agoAzureGC
5 years, 3 months ago