nerdexam
Microsoft

AZ-204 · Question #86

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…

The correct answer is E. CloudJob.CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken). 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…

Submitted by sofia.br· Mar 30, 2026Develop Azure compute solutions

Question

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?

Options

  • AJobOperations.EnableJobAsync(String,
  • BJobOperations.CreateJob()
  • CCloudJob.Enable(IEnumerable<BatchClientBehavior>)
  • DJobOperations.EnableJob(String,IEnumerable<BatchClientBehavior>)
  • ECloudJob.CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken)

How the community answered

(25 responses)
  • A
    16% (4)
  • B
    4% (1)
  • D
    8% (2)
  • E
    72% (18)

Explanation

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.PoolInformation = new PoolInformation { PoolId = PoolId }; job.Commit(); https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet

Topics

#Azure Batch#CloudJob#job submission#batch SDK

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice