exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 1 question 4 discussion

Actual exam question from Microsoft's AZ-203
Question #: 4
Topic #: 1
[All AZ-203 Questions]

You are developing a software solution for an autonomous transportation system. The solution uses large data sets and Azure Batch processing to simulate navigation sets for entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?

  • A. In the Azure portal, add a Job to a Batch account.
  • B. In a .NET method, call the method: BatchClient.PoolOperations.CreateJob
  • C. In Python, implement the class: JobAddParameter
  • D. In Azure CLI, run the command: az batch pool create
  • E. In a .NET method, call the method: BatchClient.PoolOperations.CreatePool
  • F. In Python, implement the class: TaskAddParameter
  • G. In the Azure CLI, run the command: az batch account create
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
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.
Note:
Step 1: Create a pool of compute nodes. When you create a pool, you specify the number of compute nodes for the pool, their size, and the operating system.
When each task in your job runs, it's assigned to execute on one of the nodes in your pool.
Step 2: Create a job. A job manages a collection of tasks. You associate each job to a specific pool where that job's tasks will run.
Step 3: Add tasks to the job. Each task runs the application or script that you uploaded to process the data files it downloads from your Storage account. As each task completes, it can upload its output to Azure Storage.
Incorrect Answers:
C, F: To create a Batch pool in Python, the app uses the PoolAddParameter class to set the number of nodes, VM size, and a pool configuration.
E: BatchClient.PoolOperations does not have a CreateJob method.
References:
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet https://docs.microsoft.com/en-us/azure/batch/quick-run-python

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jddjsjdsf
Highly Voted 5 years, 5 months ago
I believe D and E are correct. to create compute nodes, you need to have a pool. and D and e can create a pool
upvoted 19 times
...
James007
Highly Voted 5 years, 2 months ago
B is "incorrect" - there is no BatchClient.PoolOperations.CreateJob. The correct answer is E - BatchClient.PoolOperations.CreatePool.
upvoted 11 times
godsbane
4 years, 11 months ago
True. Just tested this on Microsoft.Azure.Batch SDK 13.0.0.
upvoted 2 times
...
...
Cornholioz
Most Recent 4 years, 4 months ago
Namespace for BatchClient class is Batch. It does have the PoolOperations.CreatePool method. https://csharp.hotexamples.com/examples/-/BatchClient/-/php-batchclient-class-examples.html#0x8180467f32700c3e40f78385dc24d16909fa1afab4b228f42ea4ee64d0e96ab3-16,,43,
upvoted 2 times
...
Larry88
4 years, 7 months ago
tested below code, D, E are correct try { CloudPool pool = batchClient.PoolOperations.CreatePool( poolId: PoolId, targetDedicatedComputeNodes: PoolNodeCount, virtualMachineSize: PoolVMSize, virtualMachineConfiguration: vmConfiguration); pool.CommitAsync(); } az batch account login \ --resource-group batchRG \ --name batchwerviceacc --shared-key-auth az batch pool create
upvoted 6 times
Juanlu
4 years, 1 month ago
I Agree !
upvoted 1 times
...
...
sathish11
4 years, 9 months ago
I think correct answer is E. https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
upvoted 2 times
...
Nick_1
4 years, 9 months ago
"You need to create compute nodes for the solution on Azure Batch" do we have a batch account?
upvoted 1 times
...
niloySubs
4 years, 10 months ago
We have confusions over B, D, E B >> Clearly Wrong Answer. As PoolOperations class do not have any method like "CreateJob" D >> az batch pool create. This creates a Batch Pool to an Account !! E >> PoolOperations.CreatePool() this one creates a Batch Pool too. BUT that is unbound and has NO relationship to any batchService\Account. We must use commitAsyncI() to add the pool to a Batch Account. based on these, D seems to the more-correct answer.
upvoted 3 times
...
Suchismita
4 years, 10 months ago
Both D & E are correct , syntax's will create a pool of compute node in CLI and .net .
upvoted 2 times
...
AK89
4 years, 11 months ago
The Correct Answer is D and E as here you need to create only the pool and not worry of rest of the logic. The link has the off icial code snippets for your reference https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet
upvoted 1 times
...
Nanaboso2
4 years, 11 months ago
You state in your own answer "E: BatchClient.PoolOperations does not have a CreateJob method." Unfortunately "BatchClient.PoolOperations.CreateJob" is associated with B. Please update your solution to mark E as the correct answert
upvoted 2 times
...
barubs
4 years, 11 months ago
In my opinion, the correct answer is D. Why? "...on Azure Batch" means that correct answer should create pool on Azure. Ans. E, is only partially good solution beacuse it does not contain second step: CommitAsync which is required to submit this command to Azure.
upvoted 7 times
...
Iloves73g
4 years, 11 months ago
Answer is D: https://docs.microsoft.com/en-us/cli/azure/batch/pool?view=azure-cli-latest#az-batch-pool-create Why E is not correct? Because : https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.pooloperations?view=azure-dotnet There is a CreateComputeNodeUser(String, String) ...
upvoted 3 times
...
markrobinson
5 years, 1 month ago
Answer is D & E
upvoted 3 times
...
heero
5 years, 1 month ago
I think D and E are correct
upvoted 4 times
...
KK_uniq
5 years, 2 months ago
In a .NET method, call the method: BatchClient.PoolOperations.CreatePool This is the one which will get compute nodes
upvoted 4 times
...
lywwind
5 years, 4 months ago
E https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet Create a pool of compute nodes To create a Batch pool, the app uses the BatchClient.PoolOperations.CreatePool method to set the number of nodes, VM size, and a pool configuration.
upvoted 2 times
...
AzureGC
5 years, 4 months ago
E only, as the scenario is describing a software solution, that runs autonomous; Still need to create a batch job, at some point, but the question is ONLY asking about creating the "pool";
upvoted 5 times
cbn
4 years, 2 months ago
This is a good point. It has to be a software solution I guess and not a manual step.
upvoted 1 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago